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 write Expression Builder in Sandbox for user based

edited Nov 13, 2024 10:28AM in Purchasing 1 comment

Summary:

How to write Expression Builder in Sandbox for user based

Content (please ensure you mask any confidential information):

We have a requirement to make PO Charge Account while creating PO editable only for one user "Buyer Custom" and for other users, it should be read-only.
I checked it through Sandbox>Kff Component>Read Only
We need to write Expression Builder to make it work

I tried writing following query
{securityContext.userInRole['BUYER_JOB_CUSTOM'] ? false : true}

But its not working
I have 2 questions:-
(1) Whay query we can use?
(2) In role, should we use Role Name or Role Common Name fom Users?

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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