What's new in Customer Journeys?

Connect and learn more! ×
Send Notification to group in business role (more than one role) — Cloud Customer Connect
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

Send Notification to group in business role (more than one role)

Accepted answer
33
Views
5
Comments

Summary:

Sending notification to groups in different role:

adf.context.getSecurityContext()?.isUserInRole(roleName)

Content (required):

Hi Experts,

from functions

current user

adf.context.getSecurityContext()?.isUserInRole(roleName)

what is the best way to send notification to more than one group, is it:

adf.context.getSecurityContext()?.isUserInRole(Arole && Brole && Crole )


or


adf.context.getSecurityContext()?.isUserInRole(Arole) && adf.context.getSecurityContext()?.isUserInRole(Brole) && adf.context.getSecurityContext()?.isUserInRole(Crole)


or


adf.context.getSecurityContext()?.isUserInRole(Arole || Brole || Crole)


or


adf.context.getSecurityContext()?.isUserInRole(Arole) || adf.context.getSecurityContext()?.isUserInRole(Brole) || adf.context.getSecurityContext()?.isUserInRole(Crole)


Version (include the version you are using, if applicable):


Code Snippet (add any code snippets that support your topic, if applicable):

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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