Configuring campaign parameters
Parameters are placeholders in campaign questions requiring input by a user sending a manual campaign, by a third-party system via Nexthink API or with data available inside a workflow. The system saves parameter values along campaign responses, linking answers back to these parameters.
Parameters are available for Manual, API and Workflow campaigns.

For each campaign, use up to 30 parameters.
Parameters use cases
Below are examples of use cases related to parameters.
Measuring the satisfaction of a service desk ticket after its closure
Trigger a campaign via API from your ITSM tool and use parameters for the ticket number and description.
Creating customizable outage notification templates
Trigger a manual campaign through an investigation of impacted users or via API, and use parameters for the outage impact and affected service.
Sending personalized notifications for asset returns upon renewal or employee departure
Trigger an API campaign from your asset management solution and use parameters for the asset number, the asset name and the expected return date.
Creating parameters
From the New Campaign Draft page, under the General tab:
Select Manual, Workflow or API under Trigger.
Click on the Parameters toggle button.
Add a new parameter and fill in the fields:
Name: Enter a unique name for the parameter.
ID: Enter a unique ID for the parameter to use in NQL queries and when sending API campaigns.
Description: Enter a description to help identify the parameter when sending a campaign from an investigation.
Change the number of parameters and associated IDs for campaigns in a Draft state. For published or retired campaigns, you can only edit the name and description of the parameters.
In API campaigns, parameter IDs must match those of the third-party system.

Using parameters in Campaign questions
After setting up parameters, from the New Campaign Draft page or Edit Campaign page:
Go to the Content tab.
Insert parameters inside Text questions, and their translated versions, using the {x} icon in the Text toolbar.
Follow the parameter
{{parameter_id}}syntax.
Use case: Passing URLs as parameters
When passing a URL as a parameter:
If you intend the URL to be written out and visible in the campaign: Include
https://in the parameter.If you intend to use a hyperlink and want the omitted destination URL to be parametrized: Ensure you use the Add link button in the text editor and omit
https://from the parameter, as the system prepends it by default.If you intend to use a parameter in the visible destination URL:
Omit
https://from the parameter, as the system prepends it by default.In the campaign text, add
https://before the parameter. Example:https://{{parameter_without_https}}Select the text, including
https://.Use the Insert Link option in the rich text editor.
Continue as if you intended to use a hyperlink and want the omitted destination URL to be parametrized.

Below are examples of using parameters in manual and API-triggered campaigns.
Example of using parameters in Manual campaigns
The following example displays the use of parameters {{service_name}}, {{impact}}, {{timeframe}} and ({{incident_id}}) for a manually triggered campaign.

When you launch and send out a manual campaign to users from the Investigations page, you must input the values of the campaign parameters by filling in the Send campaign pop-up window.

Example of using parameters in API campaigns
The following example displays the use of parameters {{ticket_description}} and {{ticket_number}} for an API-triggered campaign.
Remember, parameter IDs must match those of the third-party system calling the Nexthink API.

RELATED TOPICS
Last updated
Was this helpful?