Hi,
A complete novice building my first flow and stuck already. Somebody must have done this before as it's so simple, but I can't figure it out.
I want my users to be able to subscribe / unsubscribe via one Form (with just that one question). This will update a SharePoint list that records the user email and whether Unsubscribe is true or false. Then the flow should send a different email to the user depending on whether they are subscribing (new) / re-subscribing / unsubscribing / not found (but they wanted to unsubscribe anyway). So basically the flow somehow needs to:
1) get the response from the Form (I started with this trigger :-D)
2) get the items from the SharePoint list
3) check if the email address is already in the list
4) create a new item in SharePoint or update the item with the subscribe response
5) send an email based on all of the above
If anyone can point me in the right direction to achieve this I would be very grateful.
Thank you
I know what I did wrong now! In case it helps someone else, this is what my flow looks like:
@SudeepGhatakNZ I have been trying to get this to work, but running into the same problem that there is 'Apply to each' automatically created which adds confusion and the Get Items step does not filter in the way that you have shown and returns an Invalid error. My SharePoint list has only two columns: Title (email) and Unsubscribed (True or False as string). Any idea what I'm doing wrong?
@SudeepGhatakNZ Thank you very much for your suggestion. I'll base my further experiments on this.
You can just add a switch case under your Create item that sends an email based on the Subscription type
Thank you @SudeepGhatakNZ for your swift reply. This is an important step forward!
What's missing is that there are actually 4 different emails I want the flow to send for these scenarios:
1) Subscribed - Completely new user (that's easy, send email comes straight after Create item)
2) Unsubscribed - user email present in the list, Unsubscribed column status is being changed from false to true
3) Re-subscribed - user email present in the list as has previously unsubscribed, (so Unsubscribed column status is being changed from true to false)
4) Not found - user email NOT present in the list, but form response is to Unsubscribe so user may have made a error
How would you suggest I introduce the additional conditions to account for all these scenarios?
@mnc2023 ,
This should be the overall structure
Please note that I am using a Filter in Get Items action to filter out only the record that belongs to the user filling the form.
If record is found, update the record otherwise create an item.
Hope it helps!
Michael E. Gernaey
497
Super User 2025 Season 2
David_MA
436
Super User 2025 Season 2
Riyaz_riz11
244
Super User 2025 Season 2