<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
Convert Reference Array to String for the Salesforce Public Groups Attribute in Okta
Okta Integration Network
Okta Classic Engine
Okta Identity Engine
Overview

This article details how to convert the Salesforce Public Groups attribute from a reference array data type attribute to a string data type.

Public Groups data type 

Salesforce "Public Groups"

Applies To
  • Salesforce
  • Profile Editor
  • Mappings
  • Okta expression language
  • Okta Classic Engine
  • Okta Identity Engine (OIE)
Solution

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:

  1. Go to Directory > Profile Editor.
  2. Select the Salesforce application profile.
  3. Click Mappings.
  4. Select the desired mapping direction tab.
  5. Locate the target attribute for the string value.
  6. Enter the relevant OEL expression in the mapping field:
  7. Click Save Mappings.

Example:

  • When appuser.publicGroups is set as the default, an Invalid value data type error occurred.

    Error Message 
  • When concatenating an additional character to the appuser.publicGroups attribute, appuser.publicGroups+"" will successfully convert the reference array to a string.

    appuser.publicGroups+"" 
Loading
Convert Reference Array to String for the Salesforce Public Groups Attribute in Okta