In a distribution email, you can append profile variables to an activity link. Use this workflow to pass member information to a hidden question or to an external application or resource.
- You know the exact name of the hidden question, field, or external resource the information will be passed into.
- You know the exact name of the profile variable.
- The profile variables
you plan to use must have names that only contain the following:
- Letters
- Numbers
- Underscores
- Single spaces between words
This functionality does not work with profile variable names that contain special characters or multiple spaces between words.
Number values that contain special characters, such as commas, should be encoded before appending them to an activity a link.
Additionally, you should avoid any combination of characters that is reserved HTML code. For example, if you try to append
ðnicity=value,ðwill be interpreted as HTML code and will render as a symbol. - You can append either
profile variables or answer values to the
[%ActivityLink%]pipe, but not both at the same time. - When members access an activity from the member hub, the link does not display appended profile values.
- Members may experience issues while accessing an external activity from the member hub, if the external activity is configured to expect the appended values.
Example: Pass
memberid to a third-party application
The
memberid is automatically appended to a link when
you pipe the
Activity Link variable into an invitation. For
more information, see
Insert variables in your distribution email.
To capture this value in your reports, ensure the external activity
contains a hidden question called
MemberId
.
Example: Activity link with two appended profile variables
You have a Region and a Gender profile variable that you want to pass to an external database. To do this, you:
-
In your survey invitation, you use to append the first variable:
[%ActivityLink%]&[%url(QuestionName,TypeProfileVariableHere)%] -
You replace
QuestionNamewith Region, andTypeProfileVariableHerewith the exact profile variable name in the application:[%ActivityLink%]&[%url(Region,MemberRegion)%] -
You place your cursor at the end of the link, and click . Your activity link now looks like this:
[%ActivityLink%]&[%url(Region,MemberRegion)%]&[%url(QuestionName,TypeProfileVariableHere)%] -
You replace
QuestionNamewith Gender, andTypeProfileVariableHerewith the exact profile variable name in the application:[%ActivityLink%]&[%url(Region,MemberRegion)%]&[%url(Gender,MemberGender)%]
When the member clicks the activity link in the email, the activity URL is automatically pre-populated with their profile data, for example:
http://CommunityURL/start/SurveyID?Region=Vancouver&Gender=male