So, I have finally got my stations in an array variable, and now I want to loop through and print the station names in the body of the email step. In the attached photo you can see the part of the email body I am trying to loop through things. I have not done this before so here is what I am trying
Station Names is the variable that hold the station names, and of course stationName being what should be printing the station names. am I headed in the right direction?
Hi @Bacon1,
No JavaScript needed for what you want to accomplish, consider following flow design:
Now, you've just to replace your "Station Names" variable in your mail body by last compose outputs.
[Edit] You can also achieve this without using loop:
Select From: outputs('Data')
Select map: item()?['Name']
"No loop all DIVs" compose expression:
If I have answered your question, please Accept the post as solution.
If you like my response, please Thumbs Up.