Question

Call Salesforce Custom API from Zapier

  • 5 April 2023
  • 4 replies
  • 236 views

I’m trying to call custom API build in salesforce from Zapier but not sure how to do it. 

When I click on API request which is still in beta, I get below error.

Failed to create a http request in Salesforce

HTTPS is required: /services/data/v50.0

 

I’m trying to integrate LeadSquare with salesforce and want to call a custom API I build in salesforce from zapier. I tried to use Webhooks by Zapier but not sure how to do authentication using that.


This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

4 replies

Userlevel 7
Badge +11

Hi @narendraadhikari!

I’m not super familiar with custom APIs in Salesforce, versus using their standard ones that are documented.

Are there API reference docs available for that? Something like this, for example: https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_list.htm

The API Request action is an advanced one that uses your existing authentication (super helpful compared to using Webhooks), but in order to help troubleshoot what to put there, it would be great if you have any reference docs for what the API is expecting :)

Hi @narendraadhikari!

I’m not super familiar with custom APIs in Salesforce, versus using their standard ones that are documented.

Are there API reference docs available for that? Something like this, for example: https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_list.htm

The API Request action is an advanced one that uses your existing authentication (super helpful compared to using Webhooks), but in order to help troubleshoot what to put there, it would be great if you have any reference docs for what the API is expecting :)

Custom APIs are similar to the standard one which are referred in the document. but looks like Zapier is doing HTTP call and salesforce is expecting HTTPS

Put https:// + your SF domain + /service API call into the field. When I first used this, I assumed that the API already knew the SF domain from the connection, but it does not. It wants the full URL.

I’m trying to call custom API build in salesforce from Zapier but not sure how to do it. 

When I click on API request which is still in beta, I get below error.

Failed to create a http request in Salesforce

HTTPS is required: /services/data/v50.0

 

I’m trying to integrate LeadSquare with salesforce and want to call a custom API I build in salesforce from zapier. I tried to use Webhooks by Zapier but not sure how to do authentication using that.

In Zapier, set up a webhooks trigger and configure it to send a POST request to your customer salesforce API endpoint. You’ll need to authenticate the request by including an authorization header or API key, depending on how your customer API is set up for authentication. Consult Salesforce API documentation for the specific authentication requirements.