cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

Multi Level Condition Approval Error

Hello! @Expiscornovus you helped earlier with this flow. I am stuck yet again with a multi level approval flow I am working on.

 

I have a 3 level parallel branch approval that go to 3 different groups in my organization for approval based on the criteria. I'm having issues with the third option below (#3):

 

1. If less than $25k - route directly to Accounting (this condition flow works fine)

2. If greater than $25k - route to the Executive VP then based on approval route to Accounting (this condition flow works fine - but maybe I need to modify it to say "Greater than $25k, less than $100k?")

3. If greater than $100k - route to the Executive COO & VP; then based on approval route to Accounting (having issues with this condition flow. The approval of both the COO and VP are triggering; however, when approved it is not routing to Accounting)

 

I'm sure that I don't have the flow correctly set up. As of right now, this 3rd option should only trigger when the Project Budget Amount is greater or equal to $100k. It should then route to both the Executive VP and the Executive COO. I currently have these two flows in separate conditions. The approval emails trigger, but once approved it should route to Accounting and I am getting an error. Possibly because I cannot have two condition flows run at the same time and routed in the same way (???) 

 

Ideally, I need 3 condition flows for my Project Budget Amount:

1. Less than $25k - send approval to Accounting

2. Greater or equal to $25k - send approval to Executive VP - once approved, send to Accounting (how do I prevent this condition from triggering when greater than $100k?)

3. Greater or equal to $100k - send approval to Executive VP and COO - once approved, send to Accounting (how do I add the Executive VP to this condition?)

 

The approvals are a linked...meaning, I want to capture the Responses for each approval and they are updated on the SharePoint list. 

 

Please help!! Not sure what is the best way to account for this. 

 

3 parallel branch conditions

Parallel Branch Conditions.jpg

 

Greater than $25k Exec VP condition approval routing

25k approval routing.jpg

 

25k Exec VP approval leads to accounting approval routing

25k accounting switch case.jpg

 

25k accounting approval.jpg

 

 

Greater than $100k Exec COO condition approval routing (pretty much same setup as 25k Exec VP) 

100k approval.jpg

 

$100k Exec COO approval accounting routing

 

100k accounting routing.jpg

 

Error I am getting when the above flow runs. Project Budget Amount was greater than 100k. Both the 25k & 100k condition flows ran. The approvals triggered fine. When it got to the accounting routing for each, the flow failed. Think it might be that I cannot have the same accounting routing run simultaneously under two separate conditions. What is the best way to get this to work?

 

 

BadRequest. The request failed. Error code: 'InvalidApprovalCreateRequestAssignedToMissing'. Error Message: 'Required field 'assignedTo' is missing or empty.'.

 

 

 

25k accounting routing fail

25k accounting error.jpg

 

100k accounting routing fail

100k accounting error.jpg

34 REPLIES 34

@annajhaveri So in this example I am trying to process a request that is a New Project ID which is tied to 'Project Budget Amount.' The 'Budget Increase Amount' is a number amount (XXXXX.XX) tied to the Increase Budget to Existing Project ID option which was not selected. It's null in this case. That's why I think I'm getting the error. 

@knandez05  Use following expression, this will handle null value, if the value is null the variable will be assigned zero otherwise the value from column will be assigned to variable, replace Percent, with your column name.

@{if(empty(outputs('Get_item')?['body/Percent']), 0, int(outputs('Get_item')?['body/Percent']))}

 

Regards,
Anna Jhaveri

If I have answered your question, please mark the post as Solved to help other users to identify the correct answer
If you like my response, please give it a Thumbs Up.

@annajhaveri It doesn't seem to be taking the expression. I tried using 'BudgetIncreastAmt' in place of the column name and it still isn't working. 

@{if(empty(outputs('Get_item')?['body/rc5fa423dceaf456393218ec3e3796cf1]), 0, int(outputs('Get_item')?['body/rc5fa423dceaf456393218ec3e3796cf1]))}

 variable expression error.jpg

@knandez05 in your expression a quote ( ' ) is missing after 'body/rc5fa423dceaf456393218ec3e3796cf1]. Please use below expression

if(empty(outputs('Get_item')?['body/rc5fa423dceaf456393218ec3e3796cf1']), 0, int(outputs('Get_item')?['body/rc5fa423dceaf456393218ec3e3796cf1']))
Regards,
Anna Jhaveri

If I have answered your question, please mark the post as Solved to help other users to identify the correct answer
If you like my response, please give it a Thumbs Up.

Sorry for the oversight and thank you @annajhaveri. I used 'Get_reponse_details' instead of 'Get_items' and it worked.

 

But now is it not processing my Conditions. I swear if its not one thing its the other. I appreciate all of your help with this!

 

When I ran the test for New Project ID at $50k, it didn't process the Budget Increase variable which was good. 

variables run process.jpg

 

But then my $50k condition it should have processed thru came back as 'false.'

Condition $50k false.jpg

 

and(greaterOrEquals(variables('Project Budget Amount'),25000),less(variables('Project Budget Amount'),100000))

Condition $25k expression.jpg

@knandez05  can you export the flow and provide the zip file, from screenshot the flow looks correct, but if i see the entire flow, it would give me more idea, of where it is going wrong.

Regards,
Anna Jhaveri

If I have answered your question, please mark the post as Solved to help other users to identify the correct answer
If you like my response, please give it a Thumbs Up.

@annajhaveri Thank you for all of your help & patience. It seems to be working now. I ran a full test on all 3 conditions for both request types and had no issues. 

Hi @annajhaveri. I was wondering if I can trouble you with one last thing....I've been getting a duplicate email at the end of my flow. The first level approval email triggers when I complete the last step in my flow, the accounting approval. I cannot seem to figure out why...I am not getting an error. It would just cause confusion. How can I download a zip file to send to you for review? The file seems too large to include in the code section or even in a photo screenshot (its about 20 pages). Please advise. Thank you again in advance.

@knandez05  you can download the flow by using Export as shown in below screenshot, then upload zip to onedrive and share the link via message here.

 

annajhaveri_0-1614871423165.png

 

Regards,
Anna Jhaveri

If I have answered your question, please mark the post as Solved to help other users to identify the correct answer
If you like my response, please give it a Thumbs Up.

One drive won't work. What other option do I have?

dropbox?

Regards,
Anna Jhaveri

If I have answered your question, please mark the post as Solved to help other users to identify the correct answer
If you like my response, please give it a Thumbs Up.

Hello @annajhaveri 

 

Here is the dropbox link to my workflow: https://www.dropbox.com/s/i22v2wmt159ilxz/DeveloperProjectBudgetRequestWorkflow_20210319174917.zip?d...

 

The most recent error has been with the Initialize Variable for Project Budget Amount and/or the Budget Increase Amount or the Set Variable for those respectively. I had the flow working with no issues but once we went into Beta test a user entered $95,227.97 instead of 95227.97 in the Project Number field and this broke the workflow and I cannot seem to fix it.

 

I would love to see if it is possible to enter $95,227.97 on the form and have it translate into the Approvals email as so. 

 

Initialize variable Project Budget Amt error

initialize variable proj budg amt.jpg

 

Initialize variable Budget Increase Amt error

Budget Increase Amt error.jpg

 

Set variable for Project Budget Amt

Set Variable Project Budget Amount.jpg

 

Here is how it was setup previously in the same way and it was working. 

Previous Proj Budget Amt succussful.jpg

 

 

Project Budget Amount Integer.jpg

 

Below is the form where the user inputs the Project Budget Amt. I've only been able to get it to work by not including $ or commas.

 

As in the case with the error above, the user entered the amount with $ and Commas and the process broke. I have not been able to repair it even when submitting it the correct way below. But having them include $ and commas will better assist in the process of submitting requests and so that the Approval emails are better to understand. 

form.jpg

 

The approval emails are better understood when the $ and commas are in place. 

approval email.jpg

 

Any help is much appreciated as always. 

@knandez05  to support the value $95,227.97, you need to define the variable type as Float

Regards,
Anna Jhaveri

If I have answered your question, please mark the post as Solved to help other users to identify the correct answer
If you like my response, please give it a Thumbs Up.

Thank you @annajhaveri. How does that affect/change the expression I currently have for the Set Variable for both Project Budget Amount and Budget Increase Amount?

 

Project Budget Amt & Increase Budget Amt Initialize & Set Variables.jpg

 

Set variable - Project Budget Amt

int(outputs('Get_response_details')?['body/rcbeb9bcfb56546c485ae6b7f9421234c'])

 

Set variable - Budget Increase Amt

if(empty(outputs('Get_response_details')?['body/rc5fa423dceaf456393218ec3e3796cf1']),0,int(outputs('Get_response_details')?['body/rc5fa423dceaf456393218ec3e3796cf1']))

 

@knandez05  in the expressions wherever you are using int, you need to change it float

Regards,
Anna Jhaveri

If I have answered your question, please mark the post as Solved to help other users to identify the correct answer
If you like my response, please give it a Thumbs Up.

Helpful resources

Announcements

Community will be READ ONLY July 16th, 5p PDT -July 22nd

Dear Community Members,   We'd like to let you know of an upcoming change to the community platform: starting July 16th, the platform will transition to a READ ONLY mode until July 22nd.   During this period, members will not be able to Kudo, Comment, or Reply to any posts.   On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities.   What to Expect in the New Community: A more unified experience where all products, including Power Apps, Power Automate, Copilot Studio, and Power Pages, will be accessible from one community.Community Blogs that you can syndicate and link to for automatic updates. We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead!

Summer of Solutions | Week 4 Results | Winners will be posted on July 24th

We are excited to announce the Summer of Solutions Challenge!    This challenge is kicking off on Monday, June 17th and will run for (4) weeks.  The challenge is open to all Power Platform (Power Apps, Power Automate, Copilot Studio & Power Pages) community members. We invite you to participate in a quest to provide solutions to as many questions as you can. Answers can be provided in all the communities.    Entry Period: This Challenge will consist of four weekly Entry Periods as follows (each an “Entry Period”)   - 12:00 a.m. PT on June 17, 2024 – 11:59 p.m. PT on June 23, 2024 - 12:00 a.m. PT on June 24, 2024 – 11:59 p.m. PT on June 30, 2024 - 12:00 a.m. PT on July 1, 2024 – 11:59 p.m. PT on July 7, 2024 - 12:00 a.m. PT on July 8, 2024 – 11:59 p.m. PT on July 14, 2024   Entries will be eligible for the Entry Period in which they are received and will not carryover to subsequent weekly entry periods.  You must enter into each weekly Entry Period separately.   How to Enter: We invite you to participate in a quest to provide "Accepted Solutions" to as many questions as you can. Answers can be provided in all the communities. Users must provide a solution which can be an “Accepted Solution” in the Forums in all of the communities and there are no limits to the number of “Accepted Solutions” that a member can provide for entries in this challenge, but each entry must be substantially unique and different.    Winner Selection and Prizes: At the end of each week, we will list the top ten (10) Community users which will consist of: 5 Community Members & 5 Super Users and they will advance to the final drawing. We will post each week in the News & Announcements the top 10 Solution providers.  At the end of the challenge, we will add all of the top 10 weekly names and enter them into a random drawing.  Then we will randomly select ten (10) winners (5 Community Members & 5 Super Users) from among all eligible entrants received across all weekly Entry Periods to receive the prize listed below. If a winner declines, we will draw again at random for the next winner.  A user will only be able to win once overall. If they are drawn multiple times, another user will be drawn at random.  Individuals will be contacted before the announcement with the opportunity to claim or deny the prize.  Once all of the winners have been notified, we will post in the News & Announcements of each community with the list of winners.   Each winner will receive one (1) Pass to the Power Platform Conference in Las Vegas, Sep. 18-20, 2024 ($1800 value). NOTE: Prize is for conference attendance only and any other costs such as airfare, lodging, transportation, and food are the sole responsibility of the winner. Tickets are not transferable to any other party or to next year’s event.   ** PLEASE SEE THE ATTACHED RULES for this CHALLENGE**   Week 1 Results: Congratulations to the Week 1 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge.   Community MembersNumber SolutionsSuper UsersNumber Solutions Deenuji 9 @NathanAlvares24  17 @Anil_g  7 @ManishSolanki  13 @eetuRobo  5 @David_MA  10 @VishnuReddy1997  5 @SpongYe  9JhonatanOB19932 (tie) @Nived_Nambiar  8 @maltie  2 (tie)   @PA-Noob  2 (tie)   @LukeMcG  2 (tie)   @tgut03  2 (tie)       Week 2 Results: Congratulations to the Week 2 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 2: Community MembersSolutionsSuper UsersSolutionsPower Automate  @Deenuji  12@ManishSolanki 19 @Anil_g  10 @NathanAlvares24  17 @VishnuReddy1997  6 @Expiscornovus  10 @Tjan  5 @Nived_Nambiar  10 @eetuRobo  3 @SudeepGhatakNZ 8     Week 3 Results: Congratulations to the Week 3 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 3:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji32ManishSolanki55VishnuReddy199724NathanAlvares2444Anil_g22SudeepGhatakNZ40eetuRobo18Nived_Nambiar28Tjan8David_MA22   Week 4 Results: Congratulations to the Week 4 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 4:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji11FLMike31Sayan11ManishSolanki16VishnuReddy199710creativeopinion14Akshansh-Sharma3SudeepGhatakNZ7claudiovc2CFernandes5 misc2Nived_Nambiar5 Usernametwice232rzaneti5 eetuRobo2   Anil_g2   SharonS2  

Check Out | 2024 Release Wave 2 Plans for Microsoft Dynamics 365 and Microsoft Power Platform

On July 16, 2024, we published the 2024 release wave 2 plans for Microsoft Dynamics 365 and Microsoft Power Platform. These plans are a compilation of the new capabilities planned to be released between October 2024 to March 2025. This release introduces a wealth of new features designed to enhance customer understanding and improve overall user experience, showcasing our dedication to driving digital transformation for our customers and partners.    The upcoming wave is centered around utilizing advanced AI and Microsoft Copilot technologies to enhance user productivity and streamline operations across diverse business applications. These enhancements include intelligent automation, AI-powered insights, and immersive user experiences that are designed to break down barriers between data, insights, and individuals. Watch a summary of the release highlights.    Discover the latest features that empower organizations to operate more efficiently and adaptively. From AI-driven sales insights and customer service enhancements to predictive analytics in supply chain management and autonomous financial processes, the new capabilities enable businesses to proactively address challenges and capitalize on opportunities.    

Updates to Transitions in the Power Platform Communities

We're embarking on a journey to enhance your experience by transitioning to a new community platform. Our team has been diligently working to create a fresh community site, leveraging the very Dynamics 365 and Power Platform tools our community advocates for.  We started this journey with transitioning Copilot Studio forums and blogs in June. The move marks the beginning of a new chapter, and we're eager for you to be a part of it. The rest of the Power Platform product sites will be moving over this summer.   Stay tuned for more updates as we get closer to the launch. We can't wait to welcome you to our new community space, designed with you in mind. Let's connect, learn, and grow together.   Here's to new beginnings and endless possibilities!   If you have any questions, observations or concerns throughout this process please go to https://aka.ms/PPCommSupport.   To stay up to date on the latest details of this migration and other important Community updates subscribe to our News and Announcements forums: Copilot Studio, Power Apps, Power Automate, Power Pages

Users online (1,709)