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 / IF condition (no actio...
Power Automate
Unanswered

IF condition (no action in if statement)

(0) ShareShare
ReportReport
Posted on by 10

Hi,

 

I am trying to make a flow for invoice approval, using Microsoft lists as database, PowerApps and Power Automate. In this flow I have couple of conditions (if and switch).

First condition is did purchase order exist for this invoice? If this invoice doesn't have purchase order, I put as next condition sector (using switch function). There is three possible choices in this case (administration sector, sales sector or production sector).

Within administration sector I have condition for cost center or which department is responsible for that invoice (I am using here switch function as well, because I have 5 different departments within administration sector. For each department we have a manager who is responsible for that cost center). So this is the first step of approval process, manager has to approve invoice. If he approve that invoice then 1st director for administration sector has to approve that invoice as well, and we have last step (3rd one in this approval process) where 2nd director has to approve invoice.

Everything is fine until last step (3rd one) where I have to put IF condition, but I don't see to add action or in this case to update item on Microsoft list.

Do you know what is the reason for that? How many if or switch statements in flow can I have? Do you have some advice how to solve it? Do you have better approach for this problem?

I am asking because if I eliminate step for sector and instead of that step I put immediately cost center everything works fine. But in that case for each cost center I have to make a flow (and we have 36 CC in our company). Since that in production sector we have 22 CC and just one manager in production has authorization to approve invoices, in this step I will have just one flow for production. But in administration I have several managers who can approve the invoice, so I have to include and CC.

Please find attachments.

I hope I was clear and thanks in advance for your help.

 

Power flow.PNGSwitch.PNGNo action.PNG

 

Rash

Categories:
I have the same question (0)
  • rrovira Profile Picture
    Microsoft Employee on at

    Hello, @Rash!

     

    I don't think the amount of IF statements is the issue. There's a limit of 500 actions per workflow, so I believe it could be a glitch. Have you tried exporting the flow or deleting/recreating the condition to see if that fixes the issue? 

     

    Here's a link to all limits and configurations of the workflows: Limits and configuration - Power Automate | Microsoft Docs â†’ Also, as you can see, if you were to exceed the limit (500 actions) you could add child flows to fix this. 

     

    Hope I could help! Let me know if that fixed the issue. 

     

    Cheers,

    Rodrigo

  • Verified answer
    Rash Profile Picture
    10 on at

    Hi Rodrigo,

     

    Thanks for your answer.

    I solved the problem with copy-paste function.

     

    Best regards,

     

    Rash

     

  • Community Power Platform Member Profile Picture
    on at

    Where is the answer?????

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…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard