Skip to main content

Custom parameters for Webpages and Screen Pop-ups

Alex Brainin avatar
Written by Alex Brainin
Updated over 3 months ago

There are numerous use case scenarios where you may need to open a webpage or screen pop-up URL with specific parameters for a user. To achieve this, you can add custom parameters to the users' settings and utilize them as variables in the Custom webpages or Screen pop-up URLs.

To add a custom parameter to the user’s settings, you can employ the updateUser API method by passing the custom parameters within the custom object.

via Admin portal

Navigate to the user’s menu → More → Custom variables.

Add variable by specifying its key and value, then click Save changes.

via API

{
"method": "updateUser",
"params": {
"id": "17097397378921051839",
"orgid": "17068724888871308748",
"custom": {
"id": "1234-5678-9012",
"key": "qwerwterer234346467"
}
}
}

Subsequently, you can utilize these custom user parameters in the Custom webpages or Screen pop-up URLs as follows:

https://example.com?id=$id$&key=$key$

This will open the URL with substituted values:

https://example.com?id=1234-5678-9012&key=qwerwterer234346467

Did this answer your question?