How to edit the custom field for particular organisation user only
Content
How can we write a groovy script certain primary Organization user only should edit.
Example: I have custom field named as Device with LOV values mobile, Laptop. This field should only be edit by certain primary orgnaization name i.e XXTelecom.
Now when I login with XXTelecom Organization name and created a record and try to edit its working but a created records with different primary Organization name its not working.
Below is the code, how to write a code logged in user with PrimaryOrgnazation Name XXTelecom only can edit the opportunity record.
try{
def voRes = newView('Resource');
def vcRes = voRes.createViewCriteria()
1