How to Update XM Directory Field After Survey Completion? | XM Community
Skip to main content
Solved

How to Update XM Directory Field After Survey Completion?

  • November 27, 2025
  • 8 replies
  • 35 views

gPandey_715
Level 3 ●●●
Forum|alt.badge.img+8

Hi all,
I’m trying to automate a daily survey send based on embedded data conditions in XM Directory.

My goal:

  1. Search contacts where surveyA_status = eligible using Search XM Directory task.

  2. Send Survey daily to those contacts

  3. After they complete the survey, update their XM Directory field:
    surveyA_status = completed
    …so they don’t get the survey again.

My problem:
I am unable to update the ED field for the contacts found by Search XM Directory.

I simply need to know:
👉 How do I update an embedded data field in XM Directory after a contact completes a survey, using workflows in the new workflow engine?

What’s the correct way to achieve this?

Best answer by vgayraud

You select your segment directly in the Send Survey via Email Task in the source and type section.

8 replies

vgayraud
QPN Level 6 ●●●●●●
Forum|alt.badge.img+58
  • QPN Level 6 ●●●●●●
  • November 27, 2025

gPandey_715
Level 3 ●●●
Forum|alt.badge.img+8
  • Author
  • Level 3 ●●●
  • November 28, 2025

Hi ​@vgayraud ,

I want to automatically send surveys to contacts where surveyA_status = eligible, and then update that status to completed after they finish the survey.

Could you please suggest which task or approach I should use to filter only those eligible contacts and ensure the survey is sent only to them?


vgayraud
QPN Level 6 ●●●●●●
Forum|alt.badge.img+58
  • QPN Level 6 ●●●●●●
  • November 28, 2025

Hi ​@gPandey_715 

I don’t know how you import contacts and plan to distribute, but assuming you don’t plan to do it manually, you would need 2 workflows.

The distribution workflow would probably use at some point a Create an XM Directory Sample Task with sampling criteria based on your surveyA_status ED field, followed by a regular survey distribution task.

The 2nd workflow would be triggered by a Survey Response Event and use the Update XM Directory Contacts Task I linked in the previous post to set the ED to completed. 


gPandey_715
Level 3 ●●●
Forum|alt.badge.img+8
  • Author
  • Level 3 ●●●
  • November 28, 2025

Hi ​@vgayraud .

If I use the Create an XM Directory Sample task, it creates a new sample list every time the workflow runs.

Is there any way to avoid generating multiple lists/samples each time the workflow executes?


vgayraud
QPN Level 6 ●●●●●●
Forum|alt.badge.img+58
  • QPN Level 6 ●●●●●●
  • November 28, 2025

I suppose you could create a segment based on your ED and distribute on that.


gPandey_715
Level 3 ●●●
Forum|alt.badge.img+8
  • Author
  • Level 3 ●●●
  • November 28, 2025

Thanks!

In that case, which task should I use inside the workflow to target only those contacts who match the ED condition?

I tried using Create an XM Directory Sample, but it keeps creating new samples every time.
Is there a specific task in the workflow that can directly pull contacts from a segment?


vgayraud
QPN Level 6 ●●●●●●
Forum|alt.badge.img+58
  • QPN Level 6 ●●●●●●
  • Answer
  • November 28, 2025

You select your segment directly in the Send Survey via Email Task in the source and type section.


gPandey_715
Level 3 ●●●
Forum|alt.badge.img+8
  • Author
  • Level 3 ●●●
  • November 28, 2025

Got it, Thanks for your help.