preview

Pdp Lab Report

Decent Essays

A recent ask from customers is to be notified when new connectors are provisioned within a Microsoft Flow environment. These requests may be related to updating Data Loss Prevention (DLP) policies or provide opportunities to take advantage of new connectors in order to drive more value for their business. For example, we recently released the popular ServiceNow and Workday connectors. Customers were very interested to know when these connectors were becoming available. While our team is consistent in blogging about new capabilities, we have had requests for more direct communication about these types of events.

Last week, the Flow team blogged about a new Flow Management Connector. This connector provides many useful operations for …show more content…

We can perform this filtering by using the Filter array action. Our From input parameter needs to be set to our value that is being returned from the List Connectors action.

Now we need to provide filter criteria so that we can exclude connectors that were previously deployed. In order to achieve this filtering, we are going to use an expression that takes advantage of the ticks() function. The ticks function takes in a datetime string and will convert it into the number of ticks since 1 January 1601. As part of the first ticks call, we will pass in the date created value for the connector. As a result, our expression (on left hand side) is:

ticks(item()?['properties']?['createdTime']). Next we want to see if this value is greater than the the ticks of a previous day. Therefore, our expression on the right hand side is:

ticks(addDays(utcNow(), -1, 'MM/dd/yyyy')). Within this expression we are using a couple additional function calls. Assuming that this process runs every day, we there for want to see if anything has changed since we ran this process yesterday. To accomplish this we use the addDays function and provide the current timestamp in UTC and –1 as a value that represents yesterday.

5-FilterArray

In order to track the number of new connectors deployed in our environment, which we will also use when sending our email digests, we will create a couple variables. The first variable we are going

Get Access