Hi guys,
First a little bit of context:
I have a spreadsheet that is fed credential information for onboarding employees. Along with the credentials, their personal emails are provided. The onboarding flow is to send an email to their personal email containing their credentials for first access and tagging the rows that had an email already sent so they won’t be read again by the automation.
I currently do it via scripting but wanted to move to the AppSheet platform.
I’ve been trying many ways to do it, but can’t have AppSheet to loop through the emails and send to each employee their corresponding credentials.
What I’ve done so far is:
• Imported Data Source from spreadsheet.
• Created Slice based on presence of Tag, under the condition: ISBLANK([TAG]), thus recovering only rows without the TAG
• Created Automation Bot with logical flow: Schedule → Send Email → Update Data Row (Tag insertion)
Problem is, the Send Email task recovers all emails from email column instead of sending a single email for each row.
I can see that the Schedule action has a ForEachRow setting, thus making it possible to loop through the emails were they sent row by row. For that I would need to select only the top row in each trigger.
I tried selectiong only the first value of all emails or the top row, but haven’t succeeded in doing so.
And also tried using [_ThisRow].[Emails], which selects each email value for each row, but then the HTML body variables are not possible to be read.
If possible, how can I achieve the loop?
Thanks!
