Help with Workflow condition | XM Community
Skip to main content
Solved

Help with Workflow condition

  • July 4, 2024
  • 3 replies
  • 84 views

Forum|alt.badge.img+2
  • Level 3 ●●●
  • 63 replies

Hello to all 

I need some help with this....

Create a flow so that if the embedded data T_pais is Argentina and the comment contains the word "Calor" or "Frio" send mail to whoever configure...
The problem is that it does not send the mail, it does not work the "Todas las siguientes son verdaderas” because if I remove this clause and only leave the "Algunas de las siguientes es verdadera", if it works and if it sends the mail...

 

 

But how do I set the condition if I also need to evaluate the country?

Thanks

Best answer by ahmedA

I’m unable to understand the logic as most of it is in spanish, however, if your code is working for conditions and not for others, I would recommend moving them to the survey flow. 

For example, you could start with an ED call sendEmail and set its value to false. Then at the end, before end of survey, create a branch with your desired logic, and if it is true, set sendEmail’s value to true.

In your workflow, you could use the sendEmail ED to conrol the progress.

3 replies

Forum|alt.badge.img+22
  • Level 7 ●●●●●●●
  • 2050 replies
  • Answer
  • July 4, 2024

I’m unable to understand the logic as most of it is in spanish, however, if your code is working for conditions and not for others, I would recommend moving them to the survey flow. 

For example, you could start with an ED call sendEmail and set its value to false. Then at the end, before end of survey, create a branch with your desired logic, and if it is true, set sendEmail’s value to true.

In your workflow, you could use the sendEmail ED to conrol the progress.


Forum|alt.badge.img+2
  • Author
  • Level 3 ●●●
  • 63 replies
  • July 4, 2024

Hi @ahmedA 

Thank you for your explanation, 
I would like to continue with this workflow:
I'll explain in English what I need to do, and I'd be grateful if you could pass me an example: 
If in the question Cometarios contains the word Calor or contains the word Frio and the embedded data T_pais is Argentina, then you must continue with the task Send mail....

I hope I have been clear and thanks again


Forum|alt.badge.img+2
  • Author
  • Level 3 ●●●
  • 63 replies
  • July 6, 2024

Hi @ahmedA 

I have already discovered where the error is ... thanks