At last! Flow details are now AVAILABLE in REST API
Happy to see the flow details of a smart campaign is now available in REST API. Much appreciated for considering our enhancement request and implementing it. Thank you very much on behalf of our company Ingram Micro.
Few things to enhance it further. The Wait step details are too lengthy and it’s “bit tricky” to identify which option is the configured one through API. The “value” key can be considered for the identification, however it would have been great if there is any specific key that explicitly denotes which option is configured like “configured: true”, since instead looping through each “value” key, developers can depend on that explicit key.
Sample Response for reference:
{
"success": true,
"errors": [],
"requestId": "1234",
"warnings": [],
"result": [
{
"id": 1234,
"name": "Testing",
"description": "",
"flowId": 1234,
"flow": {
"steps": [
{
"id": 1234,
"activityTypeId": 16,
"activityTypeName": "Wait",
"stepChoice": [
{
"id": 1234,
"attributes": [
{
"id": 1234,
"activityTypeAttribId": 136,
"name": "Date Token",
"value": null,
"format": null,
"dataType": "string",
"primary": false
},
{
"id": 1234,
"activityTypeAttribId": 142,
"name": "Date Operator",
"value": null,
"format": null,
"dataType": "string",
"primary": false
},
{
"id": 1234,
"activityTypeAttribId": 135,
"name": "Type",
"value": "Duration",
"format": null,
"dataType": "string",
"primary": false
},
{
"id": 1234,
"activityTypeAttribId": 141,
"name": "Must End On Hour Date",
"value": null,
"format": "time",
"dataType": "string",
"primary": false
},
{
"id": 1234,
"activityTypeAttribId": 140,
"name": "Timezone",
"value": null,
"format": "timezone",
"dataType": "string",
"primary": false
},
{
"id": 1234,
"activityTypeAttribId": 138,
"name": "Must End On Hour Duration",
"value": null,
"format": "time",
"dataType": "string",
"primary": false
},
{
"id": 1234,
"activityTypeAttribId": 139,
"name": "End On Date",
"value": null,
"format": "flowdate",
"dataType": "string",
"primary": false
},
{
"id": 123469,
"activityTypeAttribId": 145,
"name": "Date Token Time",
"value": null,
"format": "time",
"dataType": "string",
"primary": false
},
{
"id": 123458,
"activityTypeAttribId": 134,
"name": "Duration",
"value": null,
"format": null,
"dataType": "string",
"primary": true
},
{
"id": 123461,
"activityTypeAttribId": 137,
"name": "Must End On Day",
"value": "Any Day",
"format": null,
"dataType": "string",
"primary": false
},
{
"id": 123468,
"activityTypeAttribId": 144,
"name": "Ignore year",
"value": null,
"format": "checkbox",
"dataType": "boolean",
"primary": false
},
{
"id": 123467,
"activityTypeAttribId": 143,
"name": "Date Token Operand2",
"value": null,
"format": null,
"dataType": "string",
"primary": false
}
],
"default": true
}
]
},
{
"id": 1234,
"activityTypeId": 6,
"activityTypeName": "Send Email",
"stepChoice": [
{
"id": 12345,
"rule": {
"name": "ABCD",
"values": [],
"operator": "is",
"ruleTypeId": 1158,
"ruleType": "Attribute"
},
"attributes": [
{
"id": 12344,
"activityTypeAttribId": 44,
"name": "Mailing ID",
"value": "EmailName",
"format": null,
"dataType": "object",
"primary": true
}
],
"default": false
},
{
"id": 1234,
"attributes": [
{
"id": 123471,
"activityTypeAttribId": 44,
"name": "Mailing ID",
"value": null,
"format": null,
"dataType": "object",
"primary": true
}
],
"default": true
}
]
},
{
"id": 1234,
"activityTypeId": 24,
"activityTypeName": "Add to List",
"stepChoice": [
{
"id": 1234,
"attributes": [
{
"id": 123472,
"activityTypeAttribId": 180,
"name": "List ID",
"value": null,
"format": null,
"dataType": "object",
"primary": true
}
],
"default": true
}
]
}
]
},
"dedupByEmail": false
}
]
}