I configured all the salesforce setting just how it was mentioned in apploication integration documentation but when I make any changes in salesforce instance They are not triggering my salesforce trigger. Can you help me.
Hi Rish,
You could follow this tutorial on triggering integration flows based on salesforce trigger: https://cloud.google.com/apigee/docs/api-platform/integration/getting-started-salesforce-updates
-
I assume you are using the salesforce trigger in the flow
-
Ensure your salesforce domain name is correct, it should be something like yourdomain.salesforce.com
-
Ensure your auth profile is set correct - Salesforce trigger support OAuth Resource Owner Password Grant Type- If setup right you will see a green check
-
Configure the channel based on the entity that you are looking to trigger. For example “Case”, “Account”, “Opportunity”
-
Ensure you have enabled CDC inside Salesforce on the entity you are looking to trigger the integration. For example if you want trigger the flow when a new “Case” is created in Salesforce, “Case” entity should be added to the CDC list. For this. go to the “Change Data Capture” section in the setup tab inside Salesforce. When you’re on this tab, select the object for which you want CDC to be enabled.
Hello Pramod,
I implemented everything listed above. I basically followed this link salesforce trigger to capture any updates of my account object in salesforce. And my workflow looks similar to this SFtoBq . I feel there is something missing in the documentation since I created the integration user, permission sets, connected app and platform events and also created auth profile which links to my salesforce, set up auth token and yet if I make any changes to salesforce account object my salesforce trigger doesnt work even after publishing the workflow. Though it is able to fetch data from salesforce when I try to test it by giving record ID of salesforce in salesforce trigger manually. The salesforce trigger instance config dialog box does mention "Your Salesforce instance may require advanced configuration to work with the CDC trigger. Please work with your Salesforce administrator. " even after following and implementing all the details mentioned in the google doc , I am not sure what it means neither does my salesforce admin. If it can elaborate about what is needed it will be helpful. I hope there is a solution for this.
Could you share your Integration flow screen shot here…
Salesforce channel config is supposed to be Account. Since it is for Account object. So it looks like this . Sorry for the previous image
Thank you. Are you primarily looking for “Update” or any event is ok for now?. checking if “Create” in operation scenario worked and isolating the issue to Update?.. also do you see any execution when you click on logs?.. Again to eliminate other dependencies, since we are testing the trigger, is it ok to just have the trigger, possibly followed by an send email task - easier for debugging your flow?
I am specifically looking for update. I am checking the logs once I make any change in salesforce and it doesnt have anything excepts for those I have manually tested. Yeah I just created a new integration to test SF trigger and send email. I was able to test it manually but when I try to trigger from salesforce by changing account record it doesnt trigger anything. Also I did the changes in my salesforce account as integration user
I was able to resolve the issue by adding the all oauth scopes except the below ones to connected app in salesforce: user_registration_Api, interation_Api, cdp_api, sfap_api. And I also added api user only to permission sets and changed my token endpoint to something like https://.my.salesforce.com/services/oauth2/token. Thanks Pramodh for quickly helping me resolve this.
