Introduction

In this article, we are going to send an email with SharePoint Lookup Column data using Power Automate. We will create a flow that’s run weekly that fetches data from a SharePoint list which contains lookup columns. We will use the “Apply each” action to get lookup records.
SharePoint Parent List - "ProductSales"
Columns
Type
Title
Text
ExpiryDate
DateTime
SalePersonName
LookUp (SalePerson List)
SharePoinChild List - "SalePerson"
Columns
Type
Title
Text
In the above lists we have SalePersonName column which is actually the Title column from SalePerson List. When we “Parse Json” data in the above type of data we get two title fields in the dynamic column section. And sometimes workflow fails due to a null record in lookup column. Let’s see the data in the list as below,
Log in to Office.com with Office 365 credentials. Go to the “Power Automate” tile and click on it. It will be redirected to the Power Automate Page. Click on the Create button from the left navigation. Click on the scheduled flow tile. It will open the popup.

Create Scheduled Flow

“Send Http Request for SharePoint”

“Apply to Each”

The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@outputs('Send_an_HTTP_request_to_SharePoint')?['body']' is of type 'Object'. The result must be a valid array.

“Send an email notification”

Conclusion

There are so many use cases where we do data manipulation as above. I hope you get the idea about what I am trying to elaborate here.
Please provide your feedback or post your queries, if any, in the comment section.