Salesforce - trigger auto-response rule after creating case through API

0 votes
To create a Case, I'm utilising the Salesforce REST API. I assign the SuppliedEmail field, as well as all other required fields, to the email address of the user who is establishing the case. The case is generated appropriately in Salesforce, but the auto-response rule that was set up for it does not work. I confirmed that the rule is active and working, and that all of the rule's conditions are met, so it's not a case of the rule not matching.

The issue is that after a Case is created via the API, Salesforce does not evaluate or trigger auto-response rules. You can set this using the EmailHeader in the SOAP API, but I can't find a way to do it via the REST API.

I'm making a POST request to the URI /sobjects/Case with the JSON value of the case itself as the request body.

Is there a way to set the EmailHeader.triggerAutoResponseEmail field to true using the REST API, perhaps through some additional field in the request body?
Mar 29 in SalesForce by surbhi
• 3,810 points
310 views

1 answer to this question.

0 votes
Less complexity, on the other hand, generally always entails fewer features. One of them is the loss of API headers. In Java, you may use several different toolkits to consume WSDL, whereas in.NET, WCF is basically worthless because Microsoft doesn't like SOAP headers (standards be damned).

So either use WSDL/SOAP or construct a workflow rule that fires when a Case is created and sends an email to the specified address.
answered Apr 1 by CoolCoder
• 4,360 points

Related Questions In SalesForce

0 votes
0 answers

Salesforce API: How to identify a Case from an email reference code ("[Ref: ... :Ref]")?

1 I'm writing a Windows service that will ...READ MORE

Apr 5 in SalesForce by surbhi
• 3,810 points
228 views
0 votes
0 answers

Cannot login to Salesforce Sandbox via python API

I am using the python3.7.2 module simple-salesforce==0.74.2 and I ...READ MORE

Mar 1 in SalesForce by surbhi
• 3,810 points
493 views
0 votes
0 answers

How to take test.salesforce.com while deployment as salesforce login url for api connection logic app?

In logic app i'm using salesforce connector after deployment ...READ MORE

Mar 1 in SalesForce by surbhi
• 3,810 points
397 views
0 votes
1 answer

How to take test.salesforce.com while deployment as salesforce login url for api connection logic app?

you are not passing the parameterValues, use ...READ MORE

answered Mar 2 in SalesForce by surbhi
• 3,810 points
312 views
+2 votes
2 answers

Salesforce Interview questions

Here are some questions very important for ...READ MORE

answered Jan 11, 2019 in Career Counselling by Suresh
• 720 points
2,021 views
0 votes
1 answer

How to connect to salesforce from tableau?

Hi, follow these steps to connect to Salesforce: 1. ...READ MORE

answered Mar 25, 2019 in Tableau by Cherukuri
• 33,050 points
360 views
0 votes
1 answer

Power BI - Salesforce

Hi, Follow below steps: 1. Go to Data source. 2. ...READ MORE

answered Mar 25, 2019 in Power BI by Cherukuri
• 33,050 points
239 views
0 votes
1 answer

What is the best training for Salesforce ADM-201 Exam?

Hi @Vardhan, I took Edureka's Salesforce Training that covers all ...READ MORE

answered Jun 3, 2021 in Others by Jaya
• 140 points

edited Dec 22, 2021 by Soumya 264 views
0 votes
1 answer

Salesforce Streaming API: Recconnect to Cometd after session expires

I'm responding from the perspective of CometD. Doing ...READ MORE

answered Mar 17 in SalesForce by CoolCoder
• 4,360 points
137 views
0 votes
1 answer

Apex (Salesforce) read json from response and store it in a string variable

String jsonStr = '{ "oktaToken":"eyJraWQiOiIyNlN1NHFMNnVVZTVJX2M5X2Z3WmZvX09ON0dNUHRtQzlEeHFsTGplLS00IiwiYWxnIjoiUlMyNTYifQ.eyJ2ZXIiOjEsImp0aSI6IkFULlVINmdIOF9BcWJ" }'; Map<String, String> ...READ MORE

answered Mar 3 in SalesForce by CoolCoder
• 4,360 points
4,392 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP