JsonValueOutput Class

Stores the output of the Get User Data from JSON String invocable action, which you can access in Flow Builder..

Auth

To implement single sign-on (SSO) with the authentication provider framework, you must set up a registration handler that creates and updates users who log in via the identity provider. To create and update users, the registration handler uses user information from the identity provider. Some identity providers return user information in an ID token or in a user info response. The ID token and user info response are formatted as JSON objects that can be deeply nested, which makes them difficult to parse. If you use Flow Builder for your registration handler, the Get User Data from JSON String invocable action makes it easier to get user information from these JSON objects. Use this action to retrieve a specific attribute value from the ID token or user info response.

The action takes two input values. The first input value is the ID token or user info response from the identity provider. This input value must be a JSON object that has been serialized into a string. The second input value is the JSON key that corresponds to the attribute value that you want to retrieve. Using these input values, the action parses the ID token or user info response. It outputs the attribute value and stores it in an instance of the Auth.JsonValueOutput class. Each instance of this class stores a single attribute. The attribute is stored in a property that corresponds to its data type in the identity provider response, such as integerValue for an integer.

For more information about this action and how you can use it, see these resources in Salesforce Help.

The following are constructors for JsonValueOutput.

The Get User Data from JSON String action in Flow Builder uses this constructor to create an instance of the Auth.JsonValueOutput class.

public JsonValueOutput(String stringValue, Boolean booleanValue, Integer integerValue, Double doubleValue, String jsonStringValue, String jsonArrayValue)

  • stringValue:

    Type: String

    If the attribute returned by the action is a string, it’s stored in this parameter.

  • booleanValue:

    Type: Boolean

    If the attribute returned by the action is a boolean value, it’s stored in this parameter.

  • integerValue:

    Type: Integer

    If the attribute returned by the action is an integer value, it’s stored in this parameter.

  • doubleValue:

    Type: Double

    If the attribute returned by the action is a Double value, it’s stored in this parameter.

  • jsonStringValue:

    Type: String

    If the attribute returned by the action is a JSON string, it’s stored in this parameter.

  • jsonArrayValue:

    Type: String

    If the attribute returned by the action is a JSON array, it’s formatted as a string and stored in this parameter.

The following are properties for JsonValueOutput.

  • booleanValue

    If the attribute returned by the action is a boolean value, it’s stored in this property.

  • doubleValue

    If the attribute returned by the action is a Double value, it’s stored in this property.

  • integerValue

    If the attribute returned by the action is an integer, it’s stored in this property.

  • jsonArrayValue

    If the attribute returned by the action is a JSON array, it’s formatted as a string and stored in this property.

  • jsonStringValue

    If the attribute returned by the action is a JSON string, it’s stored in this property.

  • stringValue

    If the attribute returned by the action is a string, it’s stored in this property.

If the attribute returned by the action is a boolean value, it’s stored in this property.

public Boolean booleanValue {get; set;}

Type: Boolean

If the attribute returned by the action is a Double value, it’s stored in this property.

public Double doubleValue {get; set;}

Type: Double

If the attribute returned by the action is an integer, it’s stored in this property.

public Integer integerValue {get; set;}

Type: Integer

If the attribute returned by the action is a JSON array, it’s formatted as a string and stored in this property.

public String jsonArrayValue {get; set;}

Type: String

If the attribute returned by the action is a JSON string, it’s stored in this property.

public String jsonStringValue {get; set;}

Type: String

If the attribute returned by the action is a string, it’s stored in this property.

public String stringValue {get; set;}

Type: String