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
larvalarva 

Custom Meta Data trigger

Hi I need some help regarding my Custom Meta Data I have a Custom Object Project__c then whenever I have to create a new Record the Owner should be automatically set to its respective Job approvers base on queue.
PriyaPriya (Salesforce Developers) 

Hi Iarva,

1. You can try with creating a workflow on Project Object. And set the evaluation criteria as "Whenever the record is created" and define rule criteria if any.  Then in action , chose field update and select the owner field and assign the user whom you want make owner of it.

or 

2. You can try writing trigger and in that you can fetch the user based on your queue and assign it to the record owner.

If this helps you, please mark it as best answer.

Regards,

Priya Ranjan