You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to edit the custom field for particular organisation user only

Accepted answer
12
Views
1
Comments
edited Aug 31, 2020 2:18PM in Sales 1 comment

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()

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!