Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
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

adf.context.getSecurityContext().getUserName() does not return results for a specific user

in Sales 4 comments

We are using standard groovy function "adf.context.getSecurityContext().getUserName()" to set user who approved ticket to a custom field

Below is the code

setAttribute('TicketApproverName_c',adf. context. getSecurityContext(). getUserName())

It does not get set for only one user, any reasons why it would not work?

I checked the user set up like username, resource role etc and everything looks good.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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