Auxiliary Force Technology

Power Automate Basics 101

Over the years I have noticed several Power Automate expressions that keep coming up during Flow creation. Below are several of them, and a description of what each does. Like the JavaScript 101 code, this article will be updated regularly as more expressions become noticeably useful.

Get the First Item in an Object Returned by Power Automate

This expression allows you to return just the first row of a Flow’s JSON after it has been returned in a retrieval step. Below would be useful if I did a Dataverse Connector for “List Rows” (which normally would return multiple records) but I knew the search criteria would limit the retrieved rows to one record. This will help avoid an “Apply to Each” loop connector.


Add to Time and Add Days

Remember that a date should be in UTC format before using these methods (see below).



Format a Date


Check if an Output Has Records Using Length

The simplest way I have found to check if an output has records is by checking the Length for “NULL.”

length(outputs(‘{name of step}’)?[‘body/value’])