function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
nagalakshminagalakshmi 

how to create the campaign through salesforce

Hi,

 

I am trying to create the mailchimp campaign through saelsforce. When i am creating the campian i am getting error as 'You must specify a options value for the campaignCreate method'. I have specified everything. But still i am facing the same issue. Any body help me please. I have used the endpoint url as

 

req.setEndpoint('http://us5.api.mailchimp.com/1.3/?output=xml&method=campaignCreate&apikey=myapikey&type=regular&list_id=mylistid&subject=test through code&from_email=xxx@xx.com&from_name=lakshmi&to_name=sample&html=hi&text=sample test&url=www.advaanz.com');

 

This is the api document http://apidocs.mailchimp.com/api/1.3/campaigncreate.func.php. Any body please helpme.

 

Thanks,

Lakshmi

 

 

sfdcfoxsfdcfox

Since it's PHP, I'm guessing options look like:

 

options%5Bsubject%5D=My+Subject&options%5Bto_name%5D=Display=Name...

which basically reads as "options[fieldname]=value&options[fieldname2]=value2...".

 

You need to use their docs to determine which fields are relevant to your usage.

ShaTShaT
Hi Lakshmi,

I have similar requirement, I have to create campaign from salesfore to mail chimp, did you got any success regarding the functionality. Please help .!!!

Thanks
ShaT