Manually cancelled flow by user in Power Automate - sharepoint

I need help in Power Automate flow.
Scenario: One flow is triggered on Item creation, then an approval and based on approval/rejection we do send some email notifications.
Problem Statement: One fine morning, a management user comes and cancels all running flow, but here it won’t terminate the approval, approval is still valid and approvers can approve/reject the item but after that flow is not going ahead, I was asked to capture manual cancellation done by management user, how can I add a status column which reads "cancelled by user a".
Thanks,

Related

How to have multiple approval areas in Azure Logic Apps?

In Azure Logic Apps, there is an action for Send Approval Email under Office 365 Outlook.
I want to have multiple approval options in the same email. Is there a way to do it?
I tried looping over and sending emails but that sends a new email every time with option to approve.
Currently, this is not possible in logic apps. You can send only 1 approval from logic apps. However, if it is must to use an approval connector you can build a logic app where you can send multiple emails and track the options through Storage account or you can simply use a send email connector and get the replies from users. Below is an alternative approach if it is must to use an approval connector from logic apps.
I have used parallel branches to set a time for the responding by the user. If the user fails to select the options within the time limit the logic app fails. In my case I have used 1 minute. However you can even set time using Delay until and mention the specific date and time to respond back.
In the parallel step I'm sending the Approval email to the user and then I'm storing all the Lists of the blobs in storage account into a variable.
Note: This results to trigger multiple emails to the users
In the next step, I'm checking if the user's options has already been created by checking their mail id. If yes, it just stores the selected option by the user else it creates the file and then stores the selected options by the user.
RESULTS:
In mail
In LogicApps Run
In storage account
Yes, you can have multiple approval in the To configuration with multiple email ID's separated by semicolons of the Send approval email action of the office 365 connector.
Once it is approved you can get the email ID of the person who has approved the request using the property UserEmailAddress and other details of the output of your Send approval email connector.

How to send all approvals in one email in Microsoft Flow?

I'm sending approvals via email in a Microsoft Flow. And I need to solve a task: how to send more than one approval all in one email (daily).
Does anyone know how to do that?
MS Flow (Power Automate) Approval connector which sends an actionable email to Approver is meant for single record processing and not for digest of requests.
We can store all the Approval requests in a list and send out an email by iterating through them every 24 hours (daily), or listing the Approval requests in email body and having “Approve All”, “Reject All”, “No Action” as responses to take action on them.
Based on the response, you can take action on items list. Read more
The best thing would be using mobile app to see the list of push notifications & approve them. Solve the problem by user training.
Approve requests on your mobile device by using Power Automate

How to deal with subscriptions using PayPal's REST SDK

I am trying to create a basic subscription service on my site and I am not sure of a standard way to deal with subscriptions. I'm sure I could hack something together but I'm just wondering if there is a suggested way.
So I have created a billing plan and activated it.
I have a subscribe button on my site that creates a billing agreement referring to the billing plan created in step 1 and redirects the user to the PayPal website were they can login and accept the subscription.
Once the user completes the actions on the PayPal website they are returned back to my site with a token were I then execute the agreement using the returned token from PayPal as per the documentation.
So I guess after these steps the subscription is created for that user, is active and the first payment is made immediately.
In my database, I have a field for each user names subscribed and it's value is a boolean which I set to true once they are returned to my site and the execute command is successful.
My problem is keeping this boolean value up to date for each user as this is the value I check to see if they can access the content.
Canceling - I can provide a cancel button on my site to cancel their subscription and when successful I can set the value to false. But what if they cancel through the PayPal website? I think there is a webhook names BILLING.SUBSCRIPTION.CANCELLED which may send me the agreement ID and If I save it in my database I can see which user it belongs to and set their subscription to false.
After the first month has passed and the next payment is due, is there a webhook sent for a successful payment or a failed payment so I can then set the subscription value accordingly? I see there is a webhook named PAYMENT.SALE.COMPLETED but I don't know if this fired for a successful payment and PAYMENT.SALE.DENIED for a failed payment. If these webhooks exist for subscriptions I imagine it should be a simple solution to keeping this subscribed value up to date.
Hope this made some sense.

How to trigger email notification for remaining recipients when someone Declines to Sign (DocuSign)

I am new to DocuSign and currently trying to solve the below problem
I have a three step docusign process
Creates Document for signature
Customer takes action on document
The supervisor approves once customer signed the document.
Currently, if the user Accepts and signs the document, it goes to Step 3.
But if User "Declines", STEP 1 is notified by EMAIL and the supervisor at STEP 3 is not.
I am trying to understand how to make the supervisor receive email when Customer DECLINES a request.
Does the supervisor at Step 3 have their own DocuSign account? I think they might need one to be able to receive an email notification when the customer declines - with an account they simply enable this option:
If they do not have a DocuSign account, then I believe you can still notify them on a Decline but you would have to write the logic in your integration. For instance, if the customer declines the envelope, then you detect that through code or through the return url, then you can manually send the supervisor an email letting them know which envelope has been declined.

Send Email to second manager if the item hasn't been approved after one day

I am new to SharePoint and have difficulty understanding the approval process. We have a list with all the leave requests and on this list is a workflow that sends a email to the manager as soon as a item has been created.
What we would like to do is add a second manager and send a email to him after one day if the first manager has not approved the item.
Is this even possible and how would I do this in SharePoint?
Thanks in advance
In you workflow you can set a timer. Add a one-day timer, then do a IF on the approval status. If it's not approved then send an email to the second manager.

Resources