Could you download the JSON config for your workflow and upload here? I’ll use the same to mimic your case.
Make sure to remove any sensitive data.
Could you download the JSON config for your workflow and upload here? I’ll use the same to mimic your case.
Make sure to remove any sensitive data.
CopyofBirthdaytest20240923.json (6.2 KB)
I have replaced all sensitive data with *****
Define variable 4 is me hard coding the birthday but it will be replaced with variable 3 when everything works that is why I am calling variable 4 in the compare string and not variable 3
I tried running the workflow with the modifications and it worked for me. I removed the HTTP calls and looping.
Could you try these 2 things ?
09-23
and try running the workflow.Run these cases separately and let me know the result.
The issue with that is their is no one in the data with a birthday today. Does it matter what variable 4’s date is?
No it doesn’t.
Sorry for spamming with so many questions but,
If I understand your workflow correctly, you are building the today’s date in the format mm-dd and sending a mail if anyone has their birthday today?
Maybe I missed it but when you say it works for static value and doesn’t work for a variable. Do you mean that the workflow fails or what happens?
It would not send any email as no one has their birthday today, right?
2 people have a birthday on 09-24. When I ran a test and type in “09-24” as a static value in both compare strings, I get 2 emails, one for each birthday. When I change the static value into variable4 which has 09-24 hard coded for testing purposes, I only get 1 email from 1 of the loops. Both loops show 100% success, but only one of them is working correctly
In my tenant, the workflow executed successfully. I got 2 emails as well.
Could you run a Test Workflow and share the Workflow Output
JSON? Only thing I can think of is that.
Hi Hassan! I have a compare string working now inside a loop. My suggestion is to create a Send Email box at the very first step inside loop. Then, put yourselve as destinatary, and in the mail body put the variable $.loop.loopInput.
That way, you will see what is resolved as the loop iteration, and would be more clear for you how to invoke some inner attribute.
Hi, so when I do this I get an email for each accounts in the list so the loop is working, just not the compare
I am guessing that error can be in the JSONPath. Can you share some email content?
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.