custom_metadata is then transferred to any connected accounts connected through the connect webview, making it easy to find and filter these resources in your Seam workspace.
You can also use unique resource keys as an easy way to link your resources to
Seam resources. For details, see Mapping Your Resources to Seam
Resources.
custom_metadata property supports up to 50 JSON key:value pairs. When an account is successfully connected through a Connect Webview, Seam creates a connected account and copies the custom_metadata to it.
If the
custom_metadata property is left blank, Seam stores an empty set ({} ) on both the Connect Webview and connected account resource.custom_metadata to a Connect Webview:
- Execute
/connect_webviews/createand specify the internal ID as a key:value pair in thecustom_metadata.
For example:
- Your app presents the Connect Webview to your user.
- The user completes the Connect Webview.
- Seam creates a connected account containing the user’s device account information.
This connected account includes acustom_metadataproperty that automatically contains the information that you set in thecustom_metadataproperty for the Connect Webview. - To retrieve the ID of the connected account associated with the completed Connect Webview, get the
connect_webviewand check theconnected_account_idproperty. - To retrieve the connected account, get the
connected_accountwith the ID that you identified in the previous step. - Within the returned
connected_account, view thecustom_metadata.
If a Connect Webview was used to connect an existing connected account (for
example, to reconnect a disconnected account), Seam will replace any existing
custom metadata in the connected_account object with the new payload.
