Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Integration Builder - Enable Step Logging

Integration Builder - Enable Step Logging

By default, steps are not logged in order to improve flow execution performance. Only the trigger step will be visible as shown below:

So, how do I develop a flow if I can't see the step execution? Good question. Here is how:

  • Create a flow

  • Get the flow ID

  • Go to the platform API Docs (Quick Start -> View our API Docs -> Flows)

  • Find the GET /formulas/{id} method and click Try it out

  • Enter the flow ID and press Execute

  • Copy the response

    A sample response is shown below:

    {
      "id": 30020,
      "name": "Syncp Event Test",
      "userId": 21107,
      "accountId": 18281,
      "createdDate": "2019-09-20T21:08:41Z",
      "steps": [
        {
          "id": 224603,
          "onSuccess": [
            "consoleLog2"
          ],
          "onFailure": [],
          "name": "consoleLog",
          "type": "filter",
          "properties": {
            "body": "console.log(trigger);"
          }
        },
        {
          "id": 224606,
          "onSuccess": [
            "consoleLog2"
          ],
          "onFailure": [],
          "name": "consoleLog1",
          "type": "script",
          "properties": {
            "body": "console.log(trigger);"
          }
        },
        {
          "id": 224604,
          "onSuccess": [],
          "onFailure": [],
          "name": "consoleLog2",
          "type": "script",
          "properties": {
            "body": "console.log('Done!');"
          }
        }
      ],
      "triggers": [
        {
          "id": 26550,
          "onSuccess": [
            "consoleLog1"
          ],
          "onFailure": [],
          "type": "event",
          "async": true,
          "name": "trigger",
          "properties": {
            "elementInstanceId": "${config.sync}"
          }
        }
      ],
      "engine": "v3",
      "active": true,
      "debugLoggingEnabled": false,
      "singleThreaded": false,
      "configuration": [
        {
          "id": 54686,
          "key": "sync",
          "name": "sync",
          "type": "elementInstance",
          "required": true
        }
      ]
    }
  • Go to the PUT /formulas/{id} method and paste in the ID and response above

  • Edit debugLoggingEnabled to true and press Execute

You should now see you flow steps in the execution screen

Note: Remember to disable again for production

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.