You need to sign in to do that
Don't have an account?
Sebastian Tarach
How to assign Contact to Case via REST API
Hi,
I'm unable to assign a ContactId to Case.
I input ContactId the request goes through but either Contact Name, Email and Phone are empty and when I query that Case ContactId field is also empty.
I'm unable to assign a ContactId to Case.
I input ContactId the request goes through but either Contact Name, Email and Phone are empty and when I query that Case ContactId field is also empty.
URI : /services/data/v47.0/sobjects/Case
Operation : POST
Body: JSON
If you find this information helpful, please mark this answer as Best. It may help others in the community. Thank You!
Anudeep
Instead of "POST" HTTP method , you can try using : "PATCH" with below request query : (It worked for me as well :), it updated contact Id on case)
/services/data/v48.0/sobjects/Case/5007F00000lXnt6(GIVE YOUR OWN CASE ID HERE)
{
"ContactId": "0037F00000O4qBk" //GIVE YOUR CONTACT ID TO GET UPDATED IN CASE OBJECT
}