Hello All,
I am sending a request to salesforce and in return, I am getting HTTP error code 400 I.e Bad request.
How can I catch this fault using fault rule and the best way to tackle this.
Thank you in advance.
Hello All,
I am sending a request to salesforce and in return, I am getting HTTP error code 400 I.e Bad request.
How can I catch this fault using fault rule and the best way to tackle this.
Thank you in advance.
There are multiple ways to do that.
1: Use raise fault policy and set the condition based on the sales force error.
2: Set some fault rules in default proxy or target end point and provide a generic error message for the same using assign message policy.
Hello Umanng
Can you please let us know how the will look like?
I used the second approach i.e Set fault rules in or target end point and provide a generic error message for the same using assign message policy
Below is the faultRue logic worked for me.
Extract-Variables.InsertOrUpdateTicketResp
InsertOrUpdateTicket.ResponseForBadReq
(error.status.code == “400”)
Thank you all.
.