Does anyone know which Adobe API method or function to use to create a campaign? thoughts
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @Ramaswami you can use CreateOperationFromModel : https://docs.adobe.com/content/help/en/campaign-classic/technicalresources/api/sm-operation-CreateOp...
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
Hi @Ramaswami you can use CreateOperationFromModel : https://docs.adobe.com/content/help/en/campaign-classic/technicalresources/api/sm-operation-CreateOp...
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
Hi Darren,
Thanks for the suggestion.
what i understood is to use the function "CreateOperationFromModel" and inside the function we need to provide xml and that xml should be taken from fiddler.
Our Adobe instance is hosted in cloud.
instance url: https://rXXXXXx.com
my ip : XX.XX.XX.XX
I tried using fiddler.I configured this in fiddler using the above details:
if (oSession.HostnameIs("https://XXX.com")) { oSession.host = "XX.XX.XX"}
and i have created a campaign in back end tool using create a campaign through UI but i can't able to see the related soap messages in fiddler while i am creating a campaign at back end. Maybe i am doing some mistake in configuring the fiddler. Can you please help.
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
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.
Views
Replies
Total Likes
Views
Replies
Total Likes