Create an XM Directory Sample Task
What's on this page
About the Create an XM Directory Sample Task
The Create an XM Directory sample task allows you to create samples of contacts to use within a workflow. This sample can then be referenced in subsequent workflow tasks.
For example, let’s say you have a mailing list in your XM Directory that contains every customer who is signed up for your customer loyalty program. Every month, you want a random 10% of that mailing list to receive a feedback survey on how to improve the program. You also do not want the same customer to receive the feedback survey within a 6 month period. You can set up a workflow to create this sample, and then that same workflow can distribute a feedback survey to that sample.
Qtip: This task is compatible with both XM Directory and XM Directory Lite. However, this task is not available in all licenses, and may not include certain features when used with XM Directory Lite. If you’d like to upgrade to XM Directory, reach out to your Account Executive.
Qtip: While the output created in this task can be used in the workflow, it will not be saved as a mailing list sample unless an existing mailing list is selected as the sample source.
Setting up a Create XM Directory Sample Task
Piped Text for Sampling Workflows
This section covers how to use piped text for different sampling workflows.
Basing samples off lists created in the same workflow
You can use the sampling task to make a sample based off a mailing list that’s created in the same workflow (example task). To do this, you need the ID of the list created earlier in the workflow. This can be generated dynamically using the steps below.
In the Select list dropdown, hover over the task that creates the mailing list, then select Import Contact List ID.
Distributing to samples created with this task
Once you've generated a sample with this task, you can send a survey to it within the same workflow.
First, add a send survey task (email, SMS).
When you choose who to invite, select the “Create an XM Directory Sample Task” as your Source. Then select Sample as the type.
Troubleshooting task failures
If your workflow with the sample task fails, you may see the following message in the run history:
MOD_15 - 'sample source' was empty, expected non-empty value. Please ensure that the task responsible for generating the piped text value completed successfully and was not skipped or a no-operation.
This message appears because there was no mailing list the sample could be created from. This is most common if you added your sample task to an ETL workflow that extracts data from one source and uses it to create a mailing list. Learn more about contact import workflows.
Example: Every Wednesday, you use an Extract from SFTP Files task to look for contacts on your server and upload them back to your directory. This week, there were no new files to process, so the task failed.
To help reduce the number of failed workflows, you could always add a condition (also called a decision) above your sample task. This condition can specify that the sample task should only run if the mailing list ID generated isn't empty.
Example: This condition says that the next tasks should only execute if Tasks Add contacts and transactions to directory List ID isn't empty.
That's great! Thank you for your feedback!
Thank you for your feedback!