I have a Microsoft list that has multiple columns it generates an email based on the date and a field that lists the particular email for the person needing the alert. In the email it will have certain items from other columns and a click on link to take you to that item. Unfortunately every item I have listed in body of email from Individual columns will create a separate email that contains the same information for each email so if I have 2 items listed it sends 2 emails, if I have 3 items listed it sends 3 emails etc. Of the exact same information
I did research and it is suggested making a initialize variable string Or an initialize array variable
I was able to get in initialize variable string setting to work with various modifications but the multiple emails still persisted I was not able to get in the right a variable to work at all
The problem I ran into was making sure that I was putting them in the appropriate spots ( initial initialize variable and the append to string variable) I tried various locations with different degrees of outcomes but essentially I was still getting multiple emails based on how many column I chose in the body of the email
I used string for append to string variable of
concat(item()?['Status/Value'], item()?['{Link}'])
if I used this alone I would get one email, but nothing in body of email with a link to item
I added the body of the email
concat('<a href="', items('For_each_1')?['{Link}'], '">', items('For_each_1')?['Status/Value'], '</a>')
so i would get the link, once I did this I got multiple emails again, as I did before I added initialize variable string and append To String variable making them useless as I am able to get this result without adding those two actions.
I did try to do an array variable instead unfortunately I cannot get that to work, kept saying that I needed a string variable.
Any suggestions on how to not get multiple emails thank so much I am pretty much teach myself with not extensive knowledge as an FYI LOL