Sometimes you might want to redirect a user from a Moti to an external resource while transferring some information specific to the user, or the Moti they're taking along with them. Introducing... Dynamic Variables ππΌπ
Dynamic Variables will allow you to achieve anything from displaying a user's name at the destination after the user opens a link to an external resource, to directing them to different content at the destination, depending on the Moti they are taking or the language they are taking it in.
Let's start by having a look at the variables available for this feature:
%{BlockId}
%{ChapterId}
%{ChapterTitle}
%{MotiId}
%{MotiLanguage}
*%{MotiTitle}
%{OrganizationIdentifier}
%{OrganizationName}
%{UserId}
%{UserEmployeeNumber}
%{UserExternalId}
%{UserFirstName}
%{UserFullName}
%{UserLastName}
%{UserPhoneNumber}
* Indicates the language the user is completing the Moti in.
How to use this feature?
In the External content block within Studio, enter the URL for your external resource, and append the dynamic variables you wish to utilize. They need to be preceded by a percentage sign (as shown in the list above) to indicate that this is a dynamic variable where data should be inserted, like so:
https://my.website.com/registration/?user=%{UserId}&course=%{MotiId}&block=%{BlockId}&other=abc123
You then need to create some logic at the external resource which absorbs these details and use them for the purpose of achieving your desired outcome.
Congratulations! You have now set up a redirect to an external resource with dynamic variables, ensuring a seamless user experience π