Accenture / sfmc-devtools

Fast-track your developers and devops engineers by allowing them to programmatically copy-paste / deploy changes and work offline
https://www.npmjs.org/package/mcdev
MIT License
137 stars 36 forks source link

Add support for automation-activity 'Wait' / CSCLSROZ-233 #37

Closed SabrinaEspino closed 1 week ago

SabrinaEspino commented 3 years ago

https://help.salesforce.com/articleView?id=mc_as_automation_studio_activities_reference.htm&type=5

possible solution: https://salesforce.stackexchange.com/a/386492/28940

JoernBerkefeld commented 1 week ago

the info on stackoverflow worked, it seems:

POST /automation/v1/automations
Authorization: Bearer ACCESS_TOKEN
Content-Type: application/json

{
  "name": "SSJS_API_Test",
  "key": "SSJS_API_Test_Key",
  "steps": [ 
    {
      "annotation":"",
      "stepNumber":0,
      "activities": [
        {
          "name":"10 Minutes",
          "objectTypeId":467,
          "displayOrder":0,
          "activityObjectId":"00000000-0000-0000-0000-000000000000",
          "serializedObject":"{\"duration\":10,\"durationUnits\":\"Minutes\"}"
        }
      ]
    }
  ],
  "startSource": {
    "typeId":1
  },
  "categoryId":544
}
github-actions[bot] commented 1 week ago

Closed by #1829.