web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Automate
Answered

Condition

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi 

 

I'm extracting image from sharepoint list to mail in my flow 

My flow is getting failed if their is no image in the column 

So , I tried to use " condition " to check the column value  (User Attachments - image column name )

After the action " Send an http request to sharepoint list , I need to check whether the particular column contain any image orn't 

 

For that I'm passing following code in my condition 

empty(body('Send_an_HTTP_request_to_SharePoint')?['User Attachments'])

not(equals(outputs('Send_an_HTTP_request_to_SharePoint')?['User Attachments'],null))

 

Spoiler (Highlight to read)
Emptyglasses_0-1678949017100.png

 

 

 

But the above expressions is s always returning "false" in the "Compose" action, regardless of whether the "User Attachments" field contains an image or not,

 

could anyone help me on this 

Categories:
I have the same question (0)
  • Verified answer
    v-chengfen-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    I made a test for your reference:

    The last image column in list is empty

    vchengfenmsft_2-1678957762376.png

    In flow:

    We can find that when the image column is empty, its value is null

    vchengfenmsft_3-1678957865130.png

    So we need to judge whether it is null, we need to obtain this part of information through the formula:

    first(outputs('Send_an_HTTP_request_to_SharePoint')?['body'].d.results)['image column name']

    vchengfenmsft_1-1678957734310.png

    Here is result:

    vchengfenmsft_0-1678957688411.png

     

     

    Best Regards

    Cheng Feng

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Perfect Solution 

     Could u please explain why you are using  .d.results In the formula 

     

  • v-chengfen-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    We can see the body structure of [Send an HTTP request to SharePoint]'s output, the information of the Image column we need is in the .d.results in the body, we need to call the data in this way (this is very similar to the field of the call record in power apps, This record .columnName).

    vchengfenmsft_0-1678959014990.png
    Finally because results is an array. We want to get the first one, so use first. We're going to use the property of the image column of the first record in the array.

    first(outputs('Send_an_HTTP_request_to_SharePoint')?['body'].d.results)['image column name']

     

    vchengfenmsft_0-1678959603336.png

     

     

    Best Regards

    Cheng Feng

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 304

#2
David_MA Profile Picture

David_MA 245 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 243 Most Valuable Professional

Last 30 days Overall leaderboard