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
Livia PimentelLivia Pimentel 

Call Google Cloud Function from Salesforce

Hello, everyone! 

I was wondering if there is a way of calling a Google Cloud Function's result from Salesforce using apex.

Basically, I want to call a cloud function right after creating an Account. So, the calling of the Cloud Function would be inside a trigger.

Thank you. I appreciate any help you can provide.

Best regards,

Lìvia; 
Best Answer chosen by Livia Pimentel
VinayVinay (Salesforce Developers) 
Hi Livia,

Check below reference examples of creating Salesforce data using google cloud function.

https://emiliotaylor.medium.com/creating-salesforce-data-using-google-cloud-functions-secret-manager-and-python-2aab37d1582
https://github.com/GoogleCloudPlatform/salesforce-cloud-functions-crm-tutorial

Please mark as Best Answer if above information was helpful.

Thanks,