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 / HTTP action inside a c...
Power Automate
Unanswered

HTTP action inside a condition or switch step

(2) ShareShare
ReportReport
Posted on by 8
Hi,

I'm having an issue in Power Automate where I cannot save a flow that contains an HTTP action inside a condition or switch step.

Environment details:
- Custom environment (not default)
- SharePoint "For a selected item" trigger with splitOn
- Power Automate Premium license

The error message is:
"Fehler bei XRM-API-Anforderung: Message: Flow client error returned with status code BadRequest and details InvalidOpenApiFlow. Code: 0x80060467 InnerError:"

What works:
- HTTP actions on the top level (outside conditions) → saves fine
- Conditions with non-HTTP actions inside → saves fine
- Same flow structure works fine in other tools

What doesn't work:
- Any HTTP action inside a condition or switch step → InvalidOpenApiFlow error on save

Things I already tried:
- Rebuilding the flow from scratch
- Using Switch instead of Condition
- Different trigger types
- Checked DLP policies (none exist)
- Checked environment settings

Has anyone seen this before? Is there a setting in the Power Platform Admin Center that controls this?

Thanks!
Categories:
I have the same question (0)
  • trice602 Profile Picture
    16,298 Super User 2026 Season 1 on at
    Hi there!
     
    No there is no admin setting to control this.
     
    Please try putting your http action inside a scope container; this will resolve this for you.
     

    ------------------------------------------------

     

     

    ⭐ If this was helpful, please like and check the box below "Does this answer your question" to help others find this too!

     

     

    Always glad to help! 💯💯💯💯💯

     

    Tom

     

    Follow me on LinkedIn - Thomas Rice, PMP | LinkedIn

  • LK-08041400-0 Profile Picture
    8 on at
    Hi @trice602, thanks for the suggestion! Unfortunately, wrapping the HTTP actions inside a Scope container did not resolve the issue for me. The error still appears.
    Here is my current flow structure:
    - SharePoint "For a selected item" trigger
    - Get item
    - Do Until loop
    - Get items (Kundenmapping)
    - Initialize variables
    - Condition
      - True branch: Scope → HTTP POST + HTTP PUT
      - False branch: Scope → HTTP POST + HTTP PUT
    The HTTP actions are now inside Scope containers within the condition, but I still get InvalidOpenApiFlow on publish. I have attached a screenshot of the current structure.
    Any other ideas?
     

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 377

#2
11manish Profile Picture

11manish 279

#3
David_MA Profile Picture

David_MA 234 Super User 2026 Season 1

Last 30 days Overall leaderboard