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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Conditional statement ...
Power Automate
Unanswered

Conditional statement inside Azure DevOpps Create item Description if file was attached to MS Form

(0) ShareShare
ReportReport
Posted on by 10

I have created a flow where an MS Form is submitted, it creates a backlog item in Azure DevOpps. I'm trying to create a conditional statement to display text inside the Description field of the Create Work Item for Azure DevOpps. If the user uploads a file than a link to the file will be added in the description.

 

I started using compose length 

length(body('Get_response_details')?['rf58497b1f73c45e685a0524d269a79a1'])  to check to see if value is zero but not sure about that way. 
 
I'm having trouble in the actual if then statement in the description field. 

 

JoyLL_0-1712669397341.png

 

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

    Assuming the field here represents the Link column, try

    equals(empty(body('Get_response_details')?['rf58497b1f73c45e685a0524d269a79a1']),true)

     

  • JoyLL Profile Picture
    10 on at

    Thanks you for the response. I'm a novice at this. That expression was able to find out if the field was empty. Now how do I add it to the Azure Dev Opps description to make an if, then statement? And do I need to create a compose?

     

    I'm trying to display a link in Azure Dev Opps if the field is not empty. If field is empty, then don't display the link. 

  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    @JoyLL 

    Try

     

    if(equals(empty(body('Get_response_details')?['rf58497b1f73c45e685a0524d269a79a1']),true),body('Get_response_details')?['rf58497b1f73c45e685a0524d269a79a1'],null)

     

  • JoyLL Profile Picture
    10 on at

    I'm trying to add the conditional statement inside the description field. 

    Not sure how to use the conditional statement with this example. Where does the if or equals statement go, in compose?

     

    JoyLL_0-1712961951135.png

     

  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    Add the expression in a compose.

    Add the output of the compose here.

    SudeepGhatakNZ_0-1713254317014.png

     

    If the value returned is empty it will display nothing, if there is a value it will be shown.

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 398 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 331 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 203 Most Valuable Professional

Last 30 days Overall leaderboard