SharePoint Online: Approval Request via email comment and update response in List

In this article, we are going to discuss the process of creating an approval workflow. We will work on functionality so that the Approver or Manager can approve and reject the request via email instead to navigate webforms. 
Scenario
  1. Employee raises a leave request.
  2. The request goes to the employee manager or whoever is assigned as AD or synced with the O365 account.
  3. Manager can approve or reject the request with comments via email.
  4. The employee will get notified based on the manager comments. 

Prerequisites
  1. Microsoft Flow.
  2. A SharePoint Online list.
  3. Office 365 Outlook and Office 365 Users account.
Let's get started 
The overall Microsoft Flow structure will look like this.




Step1
To create a leave request, I am using a List at SharePoint Online. Employee submits a request and the associated MS Flow gets triggered on item creation.



Step 2
Create a string variable as a name Manager (This step can be optional too).

Step 3
Get user manager from O365 profile using "created by"; i.e., who has created the request. User Manager should be assigned at O365 User Profile.
Set Manager email id to the created variable to send the request.

Step 4
Add an action “Start and Wait for an approval”.
Select the approval type: Approve/Reject – First to respond and assign the request to Manager with title and details.
The advantage of this action is that the workflow will not proceed until the manager approves or rejects the workflow via email body button.

Step 5
Check for condition and accordingly, update the manager comments provided in an email to SharePoint Online List.

Step5.1
If Request status is approved, then update the action. The "Send email" section will look like this.



Step5.2
If the Request status is rejected, then update the action. The "Send email" section will look like this.

Now, we will talk about the flow process.
The user creates a request via form (Created a list at SharePoint Online with a required column for demo purpose). Here, I have created the first request.


The designated Microsoft Flow gets triggered and waits until the request is not responding.



Switch to "manage email" box and check for email. Manager will get an approval email.


Approval of request assigned manager can act over a request with approving or rejecting a request with comments.



As approver responded to an email with comment and approved status. The Leave request item will get updated with a response,


The employee gets a final notification along with the approve/reject status.


I hope you have learned something new in this article. Stay tuned for related articles to get more insights and learning.

9 comments:

  1. We found your blog very informative. Thank you for sharing such an excellent blog. In the future, We would like to read more blog post from you. Viftech Solutions, the leading SharePoint Development Services in World Wide offering Quality and price effective SharePoint Development solutions. Visit Our Website Click Here.

    ReplyDelete
  2. "Wow! nice post you have shared.
    I would like to thank you for the efforts you have made in writing this interesting and knowledgeable article.
    There is more relative topics below

    Online Assignment Help in Pakistan

    ReplyDelete
  3. He has written a very good article its really informative


    Online essay writing help

    ReplyDelete
  4. I think this is one of the most significant information for me. And i’m glad reading your article. But should remark on some general things, The web site style is perfect, the articles is really great : D. Good job, cheers fait a la main

    ReplyDelete
  5. Pretty article! I found some useful information in your blog, it was awesome to read,thanks for sharing this great content to my vision.
    I appreciate your work.please keep sharing more updates.


    social media marketing in US

    ReplyDelete
  6. The blog is really very well and keep nice collection of data. You are doing a great job, good luck for the upcoming blogs.



    door phone & intercom installation services in Karachi


    ReplyDelete
  7. The blog you have shared is incredibly helpful.
    Thanks for sharing this blog!


    window cleaning in Sweden

    ReplyDelete
  8. I consider a profitable logo to be one that has certain characteristics and does specific tasks for the organization it represents. Once fulfilled, these characteristics and tasks reward the organization with maximum profit potential that only a logo or logo identity can provide. So what does this all mean? How do you make sure that the above criteria are met, for maximum profit potential of your organization? With the following 7 essential keys, you will learn the secrets that the designers of the best logos in the world already know. fake id

    ReplyDelete