function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sonamsonam 

Case Owner Assigment in Rest Calls

Hi,
I want to create a case via a rest Call and assign the owner as queue.
I tried assigning it from the code but it gets changed to the default owner of the org.
I even tried it using a workflow but the same is happening.
Please find the screenshot of the activity on case.
User-added image

Please assist.

Thanks in Advance,
Sonam
 
Abhishek BansalAbhishek Bansal

Hi Sonam,

There must be a trigger or workflow or some other process already in place that also executes with your process and the Case owner is changed again.
Please check all the triggers and workflow of the Case object in your org and surely you will find something.

If still your problem is not solved than please let us know.

Thanks,
Abhishek Bansal.

Abhishek BansalAbhishek Bansal
Also make sure that the Owner that you are trying to assign/change on Case must have Read permission on Case obejct.
sonamsonam
Thanks Abhishek.
But there isn't a code the is fired.
The case is assigned to the default owner as you can see on the screenshot of activity log:
Step 1: The owner is Sonam that is me when the case is initially created but its changed to "D' who is the default owner of cases as defined in the settings.
Step 2: the owner changes to the queue.
Step 3: The owner is again changed to the 'D'