I have a website where users can unsubcribe from our mailing list. While doing so, their email id will be carried in the URL like

http://somerandomtestwebsite.com/unsubscribe/[email protected]

Now, when they unsubscribe, a custom field on contact record which is called unsubcribed_from_mailing_list should be updated. This contact record will have the exact email id that is carried in the URL above.

Being new to Integration, I'm figuring out which is the right process of doing so. Can anyone please guide me the process of getting this done.

1 Answer 1


If you have access to make an API call from the unsubscribe example above, one solution would be to expose an Apex class as a REST web service. You can find Salesforce's documentation and code examples here

I've also used webhooks to hit a REST web service from an application if thats available to you.

Another option would be to just use the Salesforce API to make the query and update the contact record as needed - again this assumes that you have the ability to do this from within your unsubscribe website.

Not the answer you're looking for? Browse other questions tagged .