Flow designer-Sequential approvals for a record 3levels - servicenow

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.

Related

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.

Why am I not getting a notification from the Vodapay backend when a payment is completed?

I provided the Vodapay backend with an endpoint to send a notification to when a payment is completed (paymentNotifyUrl), however, I am not receiving anything from Vodapay.
When a payment succeeds, the Vodapay backend sends you a notification immediately.
If the payment goes into one of these 3 states
Processing (my.tradePay returns status 8000)
User cancelled (my.tradePay returns status 6001)
Payment failed (my.tradePay returns 4000)
The attribute "paymentExpiryTime" in the payload you send to the payments/pay endpoint determines how long it will take for the Vodapay backend to send a notification to your endpoint.
If the payment enters one of the 3 states above, you can allow the user to retry the payment using the same "redirecturl", as long as the time you had set in "paymentExpiryTime" has not arrived.
The default time period for "paymentExpiryTime" is 7 days from the time of the payment. If based on your business requirements, this is too long a period, then you can set it to a shorter time frame eg. a date/time 30mins into the future.

Get the nth activity that the user sent to the bot

I want my bot to send the user a message after every 3 messages(activities) the user send. Is there a method in the bot framework to detect the number of the activity sent or the count of all past activities?
A bot is stateless by default, however you could save the 'activity counter' in the user / conversation data. Retrieve and increment this counter at every incoming message.
Microsoft Docs: Save user and conversation data

Advanced notification system (notify only about unread messages)

I'm building an application based on Laravel 5.6 with live chat functionality (uses Pushier).
I need to notify Users via email about new messages. The problem is that I should not send notification each time as message sent because user can be online and receive this message. Also if theme were 20 messages in a minute I do not need to send 20 emails, just one with "you have new messages".
My idea is:
1. on each message I have a Laravel Notification "Message received". If user online - notification deletes. So in notifications table I have notifications about unreceived messages.
2. I should run Task (e.g. each 15 min) and if there Notification(s) for User - sent email "You have unread messages".
3. Now I have the problem that if user won't read notifications during 15 min - he will receive email again.. So I need to store in some table (or expand current notification table with mark) data about Notifications that already was emailed.
Is my approach correct?
Thanks!

How to send one remainder mail per day about the pending task for approve in 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.

Resources