
klddd (klddd) asked a question.
Is there a way to to set the value of a variable in profile mapping as a combination of strings based on membership in various groups?
For example, we have a string called Build_Office. Values can be blank, one, or multiple semicolon-dilimted office locations in a given list (e.g. Iowa, Nebraska, etc.). I would like to set this variable based on group membership. For example if the user belongs to the group OktaSalesforceTestBOIowa the string should get a value of Iowa. However, if the user is also a member of OktaSalesforceTestBONebraska, then the string should get set to a value of Iowa;Nebraska instead, and so on.I can successfully set the value for a single group with this expression, but I'm having trouble figuring out how to conditionally join strings for a number of groups.
- isMemberOfGroupName("OktaSalesforceTestBOIowa") ? 'Iowa' : ''
