Skip to main content

Notifications

Power Automate - Building Flows
Answered

Checking HTTP Output /Condition

Posted on by 6
Hi,
 
i want to check a HTTP Body if it contains a value displayname with sys_lic (Name of a Azure AD Group)
The Condition after it doesnt seems to be working.
Anyone have any ideas?
  • Verified answer
    Expiscornovus Profile Picture
    Expiscornovus 30,706 on at
    Checking HTTP Output /Condition
    The value property returns an array. You can use a Filter Array action for this to check the displayName. Place that action before the condition action.
     
    In the from of the Filter Array action use 
    outputs('HTTP')['body']['value']
     
    In the filter use:
    item()['displayName']
    contains sys_lic_
     
    In your condition remove the current check and add the below instead:
    length(body('Filter_array'))
    is greater than 0



    Happy to help out 😁

    I share more #PowerAutomate and #SharePointOnline content on my Blog, Bluesky profile or Youtube Channel
  • Bell274 Profile Picture
    Bell274 6 on at
    Checking HTTP Output /Condition
    It looks like this
  • Expiscornovus Profile Picture
    Expiscornovus 30,706 on at
    Checking HTTP Output /Condition
    Your value is probably nested within a property with the body of the HTTP outputs. Can you share an example (screenshot) of the outputs of the HTTP action?
     
    This way we can suggest an expression for your condition action.

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,591

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,090

Leaderboard