Adobe API capabilities | Community
Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Darren_Bowers

Hi @ramaswami  you can use CreateOperationFromModel : https://docs.adobe.com/content/help/en/campaign-classic/technicalresources/api/sm-operation-CreateOperationFromModel.html

Its a fairly complex XML structure to create the Operation and Workflow, so I would try to use the UI in conjunction with a web services capture utility like Fiddler to capture some example requests so you can see how the UI creates a campaign from scratch: https://helpx.adobe.com/campaign/kb/soap-traffic-fiddler.html

Cheers Darren

1 reply

Darren_Bowers
Darren_BowersAccepted solution
Level 9
June 26, 2020

Hi @ramaswami  you can use CreateOperationFromModel : https://docs.adobe.com/content/help/en/campaign-classic/technicalresources/api/sm-operation-CreateOperationFromModel.html

Its a fairly complex XML structure to create the Operation and Workflow, so I would try to use the UI in conjunction with a web services capture utility like Fiddler to capture some example requests so you can see how the UI creates a campaign from scratch: https://helpx.adobe.com/campaign/kb/soap-traffic-fiddler.html

Cheers Darren

RamaswamiAuthor
Level 4
June 30, 2020

Hi Darren,

i am capturing xml through edit> edit source xml and using this xml in the API method.

But our campaign workflow has a script which ties campaigns to delivery so when i am running the method i am getting an error in the javascript which is there in script tag.

 

 

this is the script tag: 

 

 

Error i am getting : 

 

 

Can't we add a javascript in the script tag while creating a campaign through API method. The same javascript is added to workflow when we normally create a campaign manually.

Note: if i remove this javascript i can able to create a campaign without any issues.