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 Platform Community / Forums / Power Automate / Compose returning inco...
Power Automate
Answered

Compose returning incorrect value

(0) ShareShare
ReportReport
Posted on by 391

Hi everyone, I am expecting the output of the compose to be "Not Collected".

 

because the Laptop Collected Value in SharePoint is set to "Laptop Not Collected"

nicklim_0-1695344377925.png

 

Result of compose

nicklim_1-1695344432845.png

 

Expression that I used in Compose. Am I doing something wrong?

 

if(equals(triggerOutputs()?['body/LaptopCollected/Value'], 'Laptop Not Collected'),'Not Collected','Collected')

 

nicklim_2-1695344474336.png

 

Categories:
I have the same question (0)
  • Verified answer
    SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    Why are you comparing the triggerOutput, should you not be comparing against the output of the get item?

     

  • Nived_Nambiar Profile Picture
    18,136 Super User 2026 Season 1 on at

    Hi @nicklim 

     

    Could you check what is the value 

    triggerOutputs()?['body/LaptopCollected/Value']

     

    using a compose function ?

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

  • nicklim Profile Picture
    391 on at

    @SudeepGhatakNZ 

     

    Thanks for the suggestion however I am still getting the same result after updating the expression

    if(equals(outputs('Get_item')?['body/LaptopCollected/Value'], 'Laptop Not Collect'), 'Not collected', 'Collected')

     

    nicklim_0-1695349407322.png

     

    nicklim_1-1695349416380.png

     

  • nicklim Profile Picture
    391 on at

    @Nived_Nambiar 

     

    nicklim_3-1695349575510.png

     

    As suggested, the result is returning Laptop Not Collected

    nicklim_2-1695349542412.png

     



  • nicklim Profile Picture
    391 on at

    @SudeepGhatakNZ 

     

    Apologies, there was a typo, your suggestion fixed my problem, many thanks

  • Verified answer
    Nived_Nambiar Profile Picture
    18,136 Super User 2026 Season 1 on at

    Hi @nicklim 

     

    I think there is some mistake in expression, try this 

     

     

    if(equals(outputs('Get_item')?['body/LaptopCollected/Value'], 'Laptop Not Collected'), 'Not collected', 'Collected')

     

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

  • nicklim Profile Picture
    391 on at

    @Nived_Nambiar 

     

    Yep many thanks

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 283

#2
David_MA Profile Picture

David_MA 256 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard