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
indranath1.3909869923814219E12indranath1.3909869923814219E12 

Webservice callout to Mulesoft

Hi team,
We have written a Webservice callout using Rest Service using below link.
https://trailhead.salesforce.com/en/content/learn/modules/apex_integration_services/apex_integration_rest_callouts
What we want to do is pass information to Mulesoft in JSON format.

Mulesoft team has provided us below info:
EndPoint URL
Client ID
Client Secret

How do I use the above 3 in my code to connect to Mulesoft.

Regards,
Indra
VinayVinay (Salesforce Developers) 
Hi,

Review below links that can help you with your implementation.

https://www.forcetalks.com/blog/integrate-salesforce-with-mulesoft/
https://dzone.com/articles/salesforce-connector-with-anypoint-mulesoft-1
https://developer.salesforce.com/blogs/2018/08/getting-started-with-mulesoft-a-quick-start-guide-for-salesforce-developers.html
https://www.jitendrazaa.com/blog/tag/mulesoft/
https://salesforce.stackexchange.com/questions/228040/salesforce-integration-with-mulesoft

Hope above information was helpful.

Please mark as Best Answer so that it can help others in the future.

Thanks,
Vinay Kumar
Nikitha V KumarNikitha V Kumar
You could use "Invoke Apex Rest Method" component in Mule 4. This component helps you to consume your web service using REST. After autheticating, You are suppose to enter endpoint, apex class and apex method name to consume.