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, 2022 in SalesForce by surbhi
• 3,820 points
1,600 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.

Elevate your career as a Salesforce Platform Developer with the industry-leading Salesforce Platform Developer1 Certification.

answered Apr 1, 2022 by CoolCoder
• 4,420 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, 2022 in SalesForce by surbhi
• 3,820 points
799 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, 2022 in SalesForce by surbhi
• 3,820 points
1,062 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, 2022 in SalesForce by surbhi
• 3,820 points
981 views
0 votes
1 answer

Json response to be deserialized in Apex salesforce lightning

Because some fields in Apex Salesforce are ...READ MORE

answered Mar 2, 2022 in SalesForce by surbhi
• 3,820 points
3,558 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
3,393 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,030 points
1,036 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,030 points
753 views
0 votes
2 answers

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

Hi @Vardhan, I took Edureka's Salesforce Online Training, ...READ MORE

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

edited Dec 22, 2021 by Soumya 725 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, 2022 in SalesForce by CoolCoder
• 4,420 points
742 views
0 votes
1 answer

Cannot login to Salesforce Sandbox via python API

Set domain='test' and generate a new token ...READ MORE

answered Mar 1, 2022 in SalesForce by CoolCoder
• 4,420 points
1,841 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