cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
DrishM13
Helper II
Helper II

Send approval/rejection email for SharePoint List

Hi, 

 

I have the following flow which works - allows an item to be added to a SharePoint list and if you add a name in the "Approver" column it will send that user an email to either accept/reject the item.

 

I have it set up that the "Approval/reject comments", "Approval date" and "sign-off status" is all updated automatically within the flow.

 

However, is it possible that the "author" which is a "read-only" field (who created the item on the list) cannot be added into the "Approver column"? Some sort of restriction to be added on that field itself? Not sure if to add that into the list itself or a restriction in the flow?

DrishM13_0-1629204663399.png

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Pstork1
Dual Super User
Dual Super User

There is no way to add that restriction to the field itself.  But if you set the approvers field using a variable you can definitely use a condition to check the variable for the author's email address before adding it to the approvers field.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Join me at 365EduCon in Chicago on Sept. 26-30 where I'll be presenting on the Power Platform!

View solution in original post

3 REPLIES 3
Pstork1
Dual Super User
Dual Super User

There is no way to add that restriction to the field itself.  But if you set the approvers field using a variable you can definitely use a condition to check the variable for the author's email address before adding it to the approvers field.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Join me at 365EduCon in Chicago on Sept. 26-30 where I'll be presenting on the Power Platform!
DrishM13
Helper II
Helper II

Hi @Pstork1 - thank you for that.

 

So I would need to add another "initialize variable" field to my flow or "set variable" field? 
If you have a look at the flow, where would you suggest that to be as I am not too sure of the logic?

Thanks. 

That depends on how you are filling in the Assigned to field in the start and wait for an approval action now.  If you are doing it directly, then yes add a string variable above the start and wait for approval and add the emails to that as a semicolon delimited string.  Then add a condition to test whether that variable 'Contains' the author's email.  If it doesn't then use the variable in the Assigned to field of the approval.  If it does then do something like send an email to the author that they can't approve their own items.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Join me at 365EduCon in Chicago on Sept. 26-30 where I'll be presenting on the Power Platform!

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (3,883)