This article details how to convert the Salesforce Public Groups attribute from a reference array data type attribute to a string data type.
- Salesforce
- Profile Editor
- Mappings
- Okta expression language
- Okta Classic Engine
- Okta Identity Engine (OIE)
Follow the video or the steps below.
To ensure the successful mapping of reference array data type attribute from the application to the Okta user profile without encountering any issues during the mapping process, it is necessary to concatenate an additional character.
Thus, to convert the publicGroups reference array to a string, follow these steps within the mapping configuration:
- Go to Directory > Profile Editor.
- Select the Salesforce application profile.
- Click Mappings.
- Select the desired mapping direction tab.
- Locate the target attribute for the string value.
- Enter the relevant OEL expression in the mapping field:
- Click Save Mappings.
Example:
- When
appuser.publicGroupsis set as the default, an Invalid value data type error occurred. - When concatenating an additional character to the
appuser.publicGroupsattribute,appuser.publicGroups+""will successfully convert the reference array to a string.
