Attaching Custom Metadata to the Connect Webview
Use custom metadata to link internal IDs from your application to a Seam Connect Webview and connected account.
Last updated
Was this helpful?
Use custom metadata to link internal IDs from your application to a Seam Connect Webview and connected account.
Last updated
Was this helpful?
Adding Custom Metadata to a Connect Webview enables you to store custom information, like customer details or internal IDs from your application. The custom_metadata
is then transferred to any connected accounts connected via the connect webview, making it easy to find and filter these resources in your Seam workspace.
The custom_metadata
property supports up to 50 JSON key:value pairs. Upon an account is successfully connected via a connect webview, Seam creates a connected account and copies the custom_metadata
to it.
To add custom_metadata
to a Connect Webview:
Execute and specify the internal ID as a key:value pair in the custom_metadata
.
For example:
Request:
Response:
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 a custom_metadata
property that automatically contains the information that you set in the custom_metadata
property for the Connect Webview.
Within the returned connected_account
, view the custom_metadata
.
To retrieve the ID of the connected account associated with the completed Connect Webview, and check the connected_account_id
property.
To retrieve the connected account, with the ID that you identified in the previous step.
Once you have attached custom metadata to Connect Webviews, you can by this custom metadata.