Send Response Summary to Directory list via Workflow | XM Community
Skip to main content
Solved

Send Response Summary to Directory list via Workflow


JohannesCE
Level 6 ●●●●●●
Forum|alt.badge.img+12

Hi! I need to send a response summary of each new response for a survey to a list of 25 people. 

The email task in the workflow does not allow me to select a list, and has a maximum of 30 addresses.

The directory task only sends out surveys, not response summaries.

I figured that since I can add embedded data as an email, I can work around the issue.

In the Surveyflow, I added a variable called AdresMailinlist. Each contactperson in the directory list has an email adress there, followerd by a comma “, ”. This way, I hoped to make a chain of emails stored in that Embedded Data, and then to use it in the workflow email. 

It did not work, but I wonder if there is another way to do this.

Is there another way to capture contactpersons from a Directory list in an embedded data?

Best answer by JohannesCE

Hi @dxconnamnguyen! Actually I managed to automatically generate this mailinglist with a Workflow. I used the API List Contacts In Mailing List: api.qualtrics.com/af95194dd116e-list-contacts-in-mailing-list. Because the Email task requires a list separated by comma, I added a Code task with this script:

function codeTask() {

	let apiResult = ~{ch://***/$.result}
    let emails = [];

	for(let i = 0; i < apiResult.elements.length; i++) {
        emails.push(apiResult.elements[i].email);
    }

    return {
        result: emails
    }
}

 

View original

3 replies

Nam Nguyen
QPN Level 8 ●●●●●●●●
Forum|alt.badge.img+29
  • QPN Level 8 ●●●●●●●●
  • 1091 replies
  • August 24, 2023

If your list is statics I think you can just write that 25 email into the “To:” field, seperated by comma.

Also, I tried the “Big Email Embedded Data” field and it worked just fine.


JohannesCE
Level 6 ●●●●●●
Forum|alt.badge.img+12
  • Author
  • Level 6 ●●●●●●
  • 144 replies
  • Answer
  • August 25, 2023

Hi @dxconnamnguyen! Actually I managed to automatically generate this mailinglist with a Workflow. I used the API List Contacts In Mailing List: api.qualtrics.com/af95194dd116e-list-contacts-in-mailing-list. Because the Email task requires a list separated by comma, I added a Code task with this script:

function codeTask() {

	let apiResult = ~{ch://***/$.result}
    let emails = [];

	for(let i = 0; i < apiResult.elements.length; i++) {
        emails.push(apiResult.elements[i].email);
    }

    return {
        result: emails
    }
}

 


Nam Nguyen
QPN Level 8 ●●●●●●●●
Forum|alt.badge.img+29
  • QPN Level 8 ●●●●●●●●
  • 1091 replies
  • August 25, 2023

@JohannesCE Brilliant.

 


Leave a Reply