+ Start a Discussion
SF7SF7 

Add to Campaigns Custom Button

Hi I want to place a custom Add to campaign button on a custom object list page similar to the standard add to campaign button on contact and lead list view.

 

So this is the standrad ADD TO Campaign Button URL on the  Contact List view page 

 

https://cs15.salesforce.com/ui/campaign/MassAddCMFromListingWizard?ent=contact&retURL=%2F003%3Ffcf%3D00B30000006tYyH&wizardRetUrl=%2F003%3Ffcf%3D00B30000006tYyH&macmflw_idSourceType=List&macmflw_memberType=Contact

 

https://cs15.salesforce.com/ui/campaign/MassAddCMFromListingWizard?ent=contact&retURL=%2F003%3Ffcf%3D00B30000006tYyH&wizardRetUrl=%2F003%3Ffcf%3D00B30000006tYyH&macmflw_idSourceType=List&macmflw_memberType=Contact

 

And using this i have wrote a custom Button 

 

https://cs15.salesforce.com/ui/campaign/MassAddCMFromListingWizard?ent=Relationship__c.id&retURL=%2Fa09%3Ffcf%3D00B30000006YRjw&wizardRetUrl=%2Fa09%3Ffcf%3D00B30000006YRjw&macmflw_idSourceType=List&macmflw_memberType=Lead

 

https://cs15.salesforce.com/ui/campaign/MassAddCMFromListingWizard?ent=Relationship__c.id&retURL=%2Fa09%3Ffcf%3D00B30000006YRjw&wizardRetUrl=%2Fa09%3Ffcf%3D00B30000006YRjw&macmflw_idSourceType=List&macmflw_memberType=Lead

 it almost same problem is in the standard contact list page i can select all the contacts and clicl add to campaigns and it takes to the right screen but where as with the custom button it takes to the add campaigns screen once we click the button but if i select some records on the custom object list page and then click on the Add to campaigns button i get an Error saying 

Unable to Access Page

The value of the "ids" parameter contains a character that is not allowed or the value exceeds the maximum allowed length. Remove the character from the parameter value or reduce the value length and resubmit. If the error still persists, report it to our Customer Support team. Provide the URL of the page you were requesting as well as any other related information.

 

 

Any Clue how to make this button work.

 

Thanks 

Akhil

dblazedblaze

Hi Akhil,

Try going to Setup -> Develop -> Pages -> Find your Page and click Security instead of Edit.  This should allow you to enable additional profiles to acess the visualforce page you are redirecting to.

 

Hope this helps!