{ "name": "Study_Person Source Update", "description": "", "modified": "2022-09-20T09:53:09.647332613Z", "definition": { "start": "Wait", "steps": { "Compare Numbers": { "choiceList": [ { "comparator": "NumericEquals", "nextStep": "Send Email", "variableA.$": "$.hTTPRequest.statusCode", "variableB": 202 } ], "defaultStep": "Wait 1", "description": "Compare the HTTP Call Status code", "type": "choice" }, "Compare Numbers 1": { "choiceList": [ { "comparator": "NumericEquals", "nextStep": "Send Email 1", "variableA.$": "$.hTTPRequest1.statusCode", "variableB": 202 } ], "defaultStep": "Wait 2", "description": "Compare the HTTP Call Status code", "type": "choice" }, "Compare Numbers 2": { "choiceList": [ { "comparator": "NumericEquals", "nextStep": "Send Email 2", "variableA.$": "$.hTTPRequest.statusCode", "variableB": 202 } ], "defaultStep": "Send Email 3", "description": "Compare the HTTP Call Status code", "type": "choice" }, "HTTP Request": { "actionId": "sp:http", "attributes": { "authenticationType": null, "jsonRequestBody.$": "$.trigger.attributes.ppdSnowflakeStudyRoleBody", "method": "put", "requestContentType": "text", "requestHeaders": "x-client-name:iga-dev\nx-client-id:e974f515bd6e4cbaa788dfb039f4692b\nx-client-secret:065aeaa0bAfd4d70AbBFCcEB4AB882e8\nAccept:application/json", "textRequestBody.$": "$.trigger.attributes.SnowflakeStudyTeam", "url": "http://edata-dev-exp-veeva-auth-api-v1.us-e2.cloudhub.io/api/study/teams", "urlParams": null }, "description": "Snowflake gets a PUT call when the \"Veeva Clinical Access\" source account gets updated during aggregation.", "nextStep": "Compare Numbers", "type": "action", "versionNumber": 2 }, "HTTP Request 1": { "actionId": "sp:http", "attributes": { "method": "put", "requestContentType": "text", "requestHeaders": "x-client-name:iga-dev\nx-client-id:e974f515bd6e4cbaa788dfb039f4692b\nx-client-secret:065aeaa0bAfd4d70AbBFCcEB4AB882e8\nAccept:application/json", "textRequestBody.$": "$.trigger.attributes.SnowflakeStudyTeam", "url": "http://edata-dev-exp-veeva-auth-api-v1.us-e2.cloudhub.io/api/study/teams" }, "description": "First Retry", "nextStep": "Compare Numbers 1", "type": "action", "versionNumber": 2 }, "HTTP Request 2": { "actionId": "sp:http", "attributes": { "method": "put", "requestContentType": "text", "requestHeaders": "x-client-name:iga-dev\nx-client-id:e974f515bd6e4cbaa788dfb039f4692b\nx-client-secret:065aeaa0bAfd4d70AbBFCcEB4AB882e8\nAccept:application/json", "textRequestBody.$": "$.trigger.attributes.SnowflakeStudyTeam", "url": "http://edata-dev-exp-veeva-auth-api-v1.us-e2.cloudhub.io/api/study/teams" }, "description": "Second retry", "nextStep": "Compare Numbers 2", "type": "action", "versionNumber": 2 }, "Send Email": { "actionId": "sp:send-email", "attributes": { "body": "