How to have multiple approval areas in Azure Logic Apps? - azure

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.

Related

System-generated email for Azure Logic app

I would like to know whether there is a possibility for a Logic app with system assigned managed identity to create its own email address from which it would send an email to predefined users. Or maybe to use some kind of office 365 email for sending notifications that would not be managed directly by me but also would be maintained in that way so it could be used at any time.
The point is that currently, I have a perfectly working logic app that sends emails. But those emails are sent from an employee's email address that authorized Office 365 connection in the logic app. Since this is dependent on his or her email address if something happens to the email (employee changes jobs and email address needs to be decommissioned) logic app won't be executed and these emails which are critical for us to get will not be delivered.
Is there a way so the logic app would not be dependent on the email address of one person but instead of that on some kind of system-generated email address for sending emails?
There are several options. The most popular is the SendGrid service
https://docs.sendgrid.com/for-developers/partners/microsoft-azure-2021
There is a free option that includes 100 emails per day.

Send email notification for inactive task or bugs----Azure Devops

How do you configure an Email Notification for an individual user in an organization for not responding in a timeframe?
Eg: An email notification gets sent if Initial Response was not met within say 6 hours of VSO being assigned.
In Azure DevOps project notification settings, it's possible to configure a notification based on the following actions taking place on a work item:
Notification settings based on a timeout, or lack of response, are not apparent.
Is it possible to configure a notification based on a lack of activity for a work item?
Currently there are below pre-defined notifications for work items in Azure Boards.
See: Manage your personal notifications for details.
I am afraid that no such notifications are designed for your requirement. However, as a workaround, we can create a query to find those work items which are not changed from New for a period when they have been assigned to members, as below.
Above query will query bugs and tasks which are assigned to members but still state in New state and they are created earlier than today across projects. See: Define a query for details.
And clicking "Email query" allows you to send this query result to specific members.

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

Report from ServiceNow to Sharepoint

How do I schedule a task to generate a weekly report in ServiceNow and send as an email.
I want the same report to be sent to my SharePoint site automatically every week. How to integrate it ? Please help.
You should be able to setup Incoming email on a Document Library in SharePoint and email a scheduled report to it from ServiceNow.
This also depends on ServiceNow being able to send email to this address.
You may need ServiceNow to have a VPN to your network with SharePoint, and you need Incoming email to be configured on your SharePoint install.
If those are working, you can do something like the following.
SharePoint
Create a Document Library
Go to Library Settings
Open Incoming E-Mail Settings
Change Allow this document library to receive e-mail? to Yes
Give this an E-mail address: reports#mysharepoint.com
SharePoint Security
Consider how ServiceNow is sending email to you. If email is sent via their mail servers, you may need to set incoming email option
E-mail security policy to Accept e-mail messages from any sender
In this case, be mindful of what email can be delivered to your network. This may allow unwanted emails coming in.
If ServiceNow uses your mail servers, you may be able to grant access to the Document Library for the user that is delivering your email. If so you may be able to set this
E-mail security policy to Accept e-mail messages based on document library permissions
This is much more secure, but these things always depend on your environment and your needs.
ServiceNow
Go to Reports > View / Run
Open the report to be delivered
Click the dropdown on the Save button
Choose Schedule
Fill out the Schedule form
Click the Users lock
In Enter email address put in the email to send to the Document Library (ex: reports#mysharepoint.com)
Run: Weekly
Choose the Day of the week and the Time
Subject: My report
Right click the header and choose Save
Test this by clicking Execute Now within the Scheduled Report

How can I setup an Outlook notification webhook on Azure?

Currently we have subscription in Office 365. All users has access to Outlook emails. We are planning to build a batch job using Daemon or Server application (as described here https://azure.microsoft.com/en-us/documentation/articles/active-directory-authentication-scenarios/#daemon-or-server-application-to-web-api). The reason for the batch job to be as Daemon service is because we wanted to access all user emails, filter and forward to another mail server with one app identity.
Question 1 : How can we grant an app in Azure to access all users emails ?
As an alternative we could also build a webhook that is subscribed to inbound/outbound emails and once we get a notification in our system we can filter/forward to another mail server. https://dev.outlook.com/restapi/concepts/webhooks
Instead of building a job and calling a REST API, is there a way to
register a webhook in Azure for all users at once and redirect the
url to our system ?
That will save us from building a batch job that has to run everyday to grab all incoming emails and then filter. If we can integrate a webhook all we have to build is just the filter/forward part.
The Webhooks are only supported for user level credentials. i.e Each user has to give the app a permission to request data on behalf of users. However, in our case, we need to get notifications for all user emails to reach our application and this is impossible to do at the time of writing (Sep 2016).
The solution we went forward is to build a batch job to pull all data. An Admin has to give an access to the application (the application will have its own identity) and make subsequent requests. For the app to identify itself, we have used X.509 certificate
We followed this documentation and this
If you want to redirect the specific messages with Office 365, a easy way is config the mail flow on the Exchange Admin Center.
For example, we can config a rule to redirect to the messages to the mailbox you wanted as below:
Here is the document for the mail flow rules for your reference.

Resources