I need to authenticate Salesforce with Mailchimp. Through quick action, I am calling an aura component which then calls LWC component. I am able to login to Mailchimp from salesforce as per the login flow and get the required parameter 'code' in return. This param is used to get access token. The issue is URL changes after redirecting from Mailchimp to salesforce. As mentioned in this link. Now I cannot pass 'c__' as mentioned in attached link since Mailchimp is passing it. Does anyone know how to solve this issue?

Sample URL return from Mailchimp: https://test-dev-ed.lightning.force.com/lightning/cmp/mailchimpAuthentication?c__code1=123123&code=973d078927935802edbeeb385b03a99b

After landing to lightning tab this is how URL looks like. https://lightcloudcrm2-dev-ed.lightning.force.com/lightning/cmp/mailchimpAuthentication

  • After fetching the c__ from Mailchimp how are you navigating to Lightning tab? FYI: c__ works fine with no issues, we have a production org working with same flow. Nov 27, 2020 at 2:53
  • Mailchimp is redirecting to lightning tab from redirect url. Nov 29, 2020 at 10:42
  • Did you try named credential settings for this? Nov 29, 2020 at 12:11
  • no. it is redirect url. I found the solution though. I used VF page's preview URL as redirect url. There I am able to get parameter. Thanks for your effort Nagendra! Nov 30, 2020 at 8:50


You must log in to answer this question.