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

[FEATURE] `execute` automation command to start TRIGGERED automations #1000

Open JoernBerkefeld opened 1 year ago

JoernBerkefeld commented 1 year ago

for TRIGGERED automations:

https://help.salesforce.com/s/articleView?id=sf.mc_as_define_a_file_trigger_automation.htm&type=5 --> https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/automation-studio-create-trigger.html

https://developer.salesforce.com/docs/marketing/marketing-cloud/references/mc_rest_automation_studio_automations?meta=Start%2Ban%2Bautomation%2Busing%2Btrigger%2Bstart%2Bsource

Host: https://YOUR_SUBDOMAIN.rest.marketingcloudapis.com
POST /automation/v1/automations/trigger
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN

{
    "fileTransferLocationKey": "S3_FTL",
    "filename": "new_registrations.csv",
    "relativepath": "marketing/2022_09_15",
    "deduplicationKey": "<Optional Key, such as AWS S3's eTag>"
}
Beryl-18 commented 2 months ago

Hey @JoernBerkefeld , I’m a bit lost in the details here—has this feature already been added in version 5.5.0/7? I have a use case where I need to activate a file drop-based trigger automation activity and was wondering if I can do this directly from Mcdev.

JoernBerkefeld commented 2 months ago

Hi @Beryl-18 - no problem, thank you for asking!

This ticket is still open ==> not done. it's not started yet and I can't give you an ETA on it either because I'm concentrating on things around journeys for the next releases