How to send one remainder mail per day about the pending task for approve in Workflow? - sharepoint-workflow

I'm creating workflow for approve reject task.first level is Reviewer next level is Head.
I created following workflow.
Execute SQL - waiting approve SMS to Reviewer.
Notification - Waiting approve Mail to Reviewer.
Wait for Item update - Check status (not equal) Awaiting Approval from Reviewer
Set a condition - Check status (Equal) Awaiting Approval from Head
Reviewer receive sms and mail related to waiting approve Task.
Suppose the Reviewer not responding for three contentious day workflow pending on wait for item update.
Work flow need to send one mail per day about the pending task for your approve to Reviewer.

Use a Flexi-Task, You can configure it to send reminders (as many as you wish), the gap between reminders, and if need be can choose to delegate the task to someone else.

Related

Flow designer-Sequential approvals for a record 3levels

I’m trying to do a flow designer for 3 levels of approvals if X approves send approval request to Y, if Y approves send approval request to Z and set timer for each approval request as 15days. Send reminder notification for 7 days on 8th day, for every approval request send a notification if rejected send a notification and update record to draft state, if cancelled after 15days send cancelled notification and set state to draft. I created a flow for all 3 levels and they are working fine but I’m stuck at creating reminder notifications. For every approval I should calculate time from previous approval approved time. Which I couldn’t. Someone please help me with this.

Power Automate: How will workflow know if item status changed while waiting for teams approval

So I have an SPFX application that is used to raise request, modify request, approve / reject. The usual request workflow. all these data are being saved in Azure SQL table. Now I have a workflow that runs on db item update trigger, it would start a teams "wait for approval" action and be sent to 2 approvers (1 for main and 1 for a backup approver, either of the two can approve and workflow would only wait for the first response). at the same time, approvers can also approve the request via the spfx app. they can approve it because the status of the request is "Pending Approval".
Now my issue is this: If the approver decides to approve the request from the SPFX app, db item's status would then change to Approve, However the request's teams approval is still "Requested"" in the teams.
I created a workaround for this by checking the request's status from the db so if the item is "Approved", doesn't matter what action the approver did in the teams approval, if the request is already approved or rejected in the db, the action made in the teams will not do anything.
BUT what if that backup approver, decides to reject the request. it would cause confusion because data would then be "Approved" in the database.
would it be possible to check the status, and then cancel the triggered teams approval for that request?
I hope I described the scenario well.

Power automate flow unable to send an email

I have created flow for approval using power automate. I want to start an approval when user gets mail to update list item , and when user updates item the approval flow should start. But in this case I am not receiving mail to approve request.
What should I change in my flow.

Scheduled Task reminder power automate

I am trying to build a power automate solution to overcome one of the problem in my project.
I need a flow which sends email to list users who haven't finished the task with an option to ask if they have completed the task or not. If user says yes then it should record the response with a proof of the task completion (screenshot of the task).
If user says no, then Friday it should send 2 reminder emails and on Monday it should send email every 2 hr until they complete the task, meaning they should select Yes with screenshot as attachment.
How can I achieve this?
I was able to achieve it as below
Create SharePoint list of all users
Create a Microsoft form with questions about whether they completed task and screenshot of same
Create Automated Flow to send reminder email at scheduled time with the link to form
Once user clicks the link in the email it will redirect the form.
After user submits the form it updates the SharePoint List that user has completed the task.
Recurring reminder to whom have not completed by reading SharePoint list

Is there a way to pause an execution of a workflow?

Is there a way to pauses and resumes a workflow programmatically through the REST API? For instance, I would like to be able to submit a personal time off request from an app, the app creates and triggers a workflow. The workflow sends a notification to the manager for approval and the workflow execution is paused while waiting for the manager's approval. Once the manager approves the request, it calls the workflow API to resumes the execution of the workflow.
From the documentation, there's an option to put the workflow to sleep and I can use it to periodically check for the request's status but this incurs additional cost because there's no idea when the manager is going to approve the request.
https://cloud.google.com/workflows/docs/reference/syntax
Update 2021-10-05:
Waiting for an HTTP callback is now supported:
- create_callback:
call: events.create_callback_endpoint
args:
http_callback_method: POST # can be GET, PUT, ...
result: callback_details
# Send the callback URL somewhere for another service to call
- await_callback:
call: events.await_callback
args:
callback: ${callback_details}
timeout: 1800 # optional, in seconds
result: callback_request
Original response
The ability to wait for an HTTP webhook callback during a workflow execution is planned. (I'm the Workflows PM.)
Until then, you're right that the best solution is to poll for a flag (Firestore works well for this) using sleep.
Not sure about your use-case, but I guess you can only choose to execute the workflow once the manager has approved.
As you know there are 2 parts the first part creates the workflow.
As it is in https://cloud.google.com/workflows/docs/reference/rest/v1beta/projects.locations.workflows/create api for example.
Or you can look at https://cloud.google.com/workflows/docs/creating-updating-workflow.
That does not execute the workflow it just creates it. So it can be executed at a later stage.
To execute the workflow, there is this Api https://cloud.google.com/workflows/docs/reference/executions/rest/v1beta/projects.locations.workflows.executions/create
OR see https://cloud.google.com/workflows/docs/executing-workflow
Also when executing the workflow you can pass in parameters if needed.
Then If I understand the pricing correctly from https://cloud.google.com/workflows#section-9 it seems they only charge you per step executed.
Sorry, I have been through those docs a fair amount I did not see an "option to put the workflow to sleep", Could you link those docs by any chance?
We are talking about two separate workflows here. There is no reason to engineer with pause or not.
Initiate and go up until you fire the approval process.
After approval, trigger a new workflow that does the rest of the steps.

Resources