Create Post Action

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://apidocs.zerionsoftware.com/doc/dataflow-automation/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
{
  "Dataflow Automation MCP server": {
    "url": "https://apidocs.zerionsoftware.com/doc/dataflow-automation/mcp"
  }
}

Close
POST /dataflows/{dataflowId}/recordsets/{recordSetId}/postactions

Create a Post Action for the selected RecordSet. Supported variants (see request examples): Email, iForm Record, iForm Option List, RecordSet push, Http Post, PDF, SQL Server, Zoho and Link RecordSet.

Path parameters

  • dataflowId string Required

    id of the Dataflow

  • recordSetId string Required

    id of the RecordSet

application/json

Body

  • entityId string

    Entity Id

  • inputRecordSetId string

    RecordSet Id for this Post Action

  • actionType string

    Post Action Type (email, iform_record, iform_option, pushrs, http_post, pdf, SqlServer, zoho)

  • actionName string

    Name of the Post Action

  • version string

    Version

  • conditions array

    Conditions with conditionHelperCode, conditionExpression and a type-specific action object (see request examples)

  • type string

    Type (POST_ACTION)

  • status number

    Status

Responses

  • 200 application/json

    Successful response

    Hide response attribute Show response attribute object
    • _id string

      the delete Post Action Id

POST /dataflows/{dataflowId}/recordsets/{recordSetId}/postactions
curl \
 --request POST 'https://dataflownode.zerionsoftware.com/zcrypt/v1.0/dataflows/{dataflowId}/recordsets/{recordSetId}/postactions' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{
  "entityId": "5684058f159fffbe29ff9912",
  "inputRecordSetId": "57291f3c788671101a627e27",
  "actionType": "email",
  "actionName": "email_me",
  "version": "2.1",
  "conditions": [
    {
      "conditionHelperCode": "",
      "conditionExpression": "",
      "action": {
        "connectionId": "56f2b34ca70e0243a2d5846e",
        "emailFrom": "support@gnosiz.com",
        "emailTo": "bob@gnosiz.com",
        "emailCc": "",
        "emailBcc": "",
        "emailSubject": "Test Subject",
        "emailTemplate": "This is a test."
      }
    }
  ],
  "type": "POST_ACTION",
  "status": 1
}'
Request examples
{
  "entityId": "5684058f159fffbe29ff9912",
  "inputRecordSetId": "57291f3c788671101a627e27",
  "actionType": "email",
  "actionName": "email_me",
  "version": "2.1",
  "conditions": [
    {
      "conditionHelperCode": "",
      "conditionExpression": "",
      "action": {
        "connectionId": "56f2b34ca70e0243a2d5846e",
        "emailFrom": "support@gnosiz.com",
        "emailTo": "bob@gnosiz.com",
        "emailCc": "",
        "emailBcc": "",
        "emailSubject": "Test Subject",
        "emailTemplate": "This is a test."
      }
    }
  ],
  "type": "POST_ACTION",
  "status": 1
}
{
  "entityId": "5684058f159fffbe29ff9912",
  "inputRecordSetId": "5751fb820d0002b156fd5835",
  "actionType": "iform_record",
  "actionName": "iform_rec_me2",
  "version": "2.1",
  "conditions": [
    {
      "conditionHelperCode": "",
      "conditionExpression": "",
      "action": {
        "dynamicMapping": null,
        "connectionId": "5752018aca435c995dd00abf",
        "profileId": "10845",
        "pageId": "5959",
        "newRecordTemplate": [
          {
            "id": "124154",
            "name": "how_are_you",
            "mapping": "{{"
          },
          {
            "id": "124725",
            "name": "number_of_apps",
            "mapping": ""
          },
          {
            "id": "124726",
            "name": "subform_reference",
            "mapping": ""
          },
          {
            "id": "125775",
            "name": "attachment_widget_again",
            "mapping": ""
          },
          {
            "id": "126264",
            "name": "my_pick_list",
            "mapping": ""
          },
          {
            "id": "126265",
            "name": "my_select",
            "mapping": ""
          },
          {
            "id": "126268",
            "name": "my_email2",
            "mapping": ""
          },
          {
            "id": "126110",
            "name": "question1",
            "mapping": ""
          },
          {
            "id": "126109",
            "name": "question2",
            "mapping": ""
          }
        ],
        "userId": "2520",
        "recordAction": "create_and_assign_record",
        "recordBody": []
      }
    }
  ],
  "type": "POST_ACTION",
  "status": 1
}
{
  "entityId": "5684058f159fffbe29ff9912",
  "inputRecordSetId": "57525d219c4c5d3880995580",
  "actionType": "iform_option",
  "actionName": "iform_optionlist_me2",
  "version": "2.1",
  "conditions": [
    {
      "conditionHelperCode": "",
      "conditionExpression": "",
      "action": {
        "dynamicMapping": true,
        "connectionId": "57579c6d8d278df4714fff41",
        "profileId": "{{record.PROFILE_ID}}",
        "optionlistId": "{{record.OPTION_LIST_ID}}",
        "newOptionTemplate": [
          {
            "name": "key_value",
            "mapping": "{{record.KEY_VALUE}}"
          },
          {
            "name": "label",
            "mapping": "{{record.LABEL}}"
          },
          {
            "name": "sort_order",
            "mapping": ""
          },
          {
            "name": "condition_value",
            "mapping": ""
          },
          {
            "name": "score",
            "mapping": "{{record.SCORE}}"
          }
        ],
        "optionAction": "create_option"
      }
    }
  ],
  "type": "POST_ACTION",
  "status": 1
}
{
  "entityId": "56840873033f978a5c02a041",
  "inputRecordSetId": "5745f2a67c0f452a52db431b",
  "parameters": {
    "conditionHelperCode": "",
    "conditionExpression": "",
    "actionName": "",
    "actionType": "pushrs",
    "actionEmailAddress": "",
    "actionOutputRecordSetId": "576d416372bdf81c69b2a6cb"
  },
  "type": "POST_ACTION",
  "status": 1
}
{
  "entityId": "5684058f159fffbe29ff9912",
  "inputRecordSetId": "574bb20ca1839049a02726f4",
  "actionType": "http_post",
  "actionName": "post_me",
  "version": "2.1",
  "conditions": [
    {
      "conditionHelperCode": "",
      "conditionExpression": "record.make === \"Mazda\"",
      "action": {
        "postUrl": "http://localhost:8081/domain/development/services/webhooks/xxxxxxxx-xxxxxxxx",
        "postFormat": "JSON",
        "postHeader": [],
        "postBody": [
          {
            "name": "make",
            "mapping": "{{record.make}}"
          }
        ]
      }
    }
  ],
  "type": "POST_ACTION",
  "status": 1
}
{
  "entityId": "5684058f159fffbe29ff9912",
  "inputRecordSetId": "57573d2e8d278df4714fff3b",
  "actionType": "pdf",
  "actionName": "pdf_me2",
  "version": "2.1",
  "conditions": [
    {
      "conditionHelperCode": "",
      "conditionExpression": "",
      "action": {
        "filenameFormat": "woody_111.pdf",
        "inputFolder": "development-pdf/demo_5000/Default",
        "pdfTemplate": "Hello World"
      }
    }
  ],
  "type": "POST_ACTION",
  "status": 1
}
{
  "entityId": "5684058f159fffbe29ff9912",
  "inputRecordSetId": "574bb3e4a1839049a02726f9",
  "actionType": "SqlServer",
  "actionName": "sql_server_me",
  "version": "2.1",
  "conditions": [
    {
      "conditionHelperCode": "",
      "conditionExpression": "",
      "action": {
        "connectionId": "56f5ee34dbfeb2ebea4c76dd",
        "sqlServerTable": "TEST_ME_555",
        "autoReplaceSpace": true,
        "autoAddColumn": true
      }
    }
  ],
  "type": "POST_ACTION",
  "status": 1
}
{
  "entityId": "5684058f159fffbe29ff9912",
  "inputRecordSetId": "5769f0fe4de6253256694732",
  "actionType": "zoho",
  "actionName": "zoho_me",
  "version": "2.1",
  "conditions": [
    {
      "conditionHelperCode": "",
      "conditionExpression": "",
      "action": {
        "connectionId": "5727da14d8c2ce159c6422cf",
        "zohoTable": "GnosizCars",
        "zohoAction": "UPDATEORINSERT",
        "zohoBody": [
          {
            "name": "make",
            "mapping": "{{record.make}}"
          },
          {
            "name": "model",
            "mapping": "{{record.model}}"
          },
          {
            "name": "year",
            "mapping": "{{record.year}}"
          },
          {
            "name": "color",
            "mapping": "{{record.color}}"
          }
        ],
        "zohoCriteria": "\"make\" = '{{record.make}}'"
      }
    }
  ],
  "type": "POST_ACTION",
  "status": 1
}
{
  "actionType": "pushrs",
  "actionOutputRecordSetId": "58e3f21c4ad0823f3f419414"
}
Response examples (200)
{
  "_id": "574bcd24d96535adaf730a63"
}