cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper V
Helper V

Change Approver

Hi Guys,
Does anyone know how to execute this scenario?
I have 3 approvers this is the situations:
I will input amount to text input If less than or equal to 100,00.00 thousand Approver 1
If the amount is greater than 300,00.00 thousand Approver 2
If the amount is greater than 500,00.00 thousand Approver 3
aprvr1.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Anonymous
Not applicable

Re: Change Approver

Hi @Big_S 

 

Having a list gives you more flexibility. However this what you are looking for:

 

Set the Text property of the label to :

 

If(
    Value(TextInput1.Text) >= 500000,
    "Approver 3",
    If(
        Value(TextInput1.Text) >= 300000,
        "Approver 2",
        "Approver 1"
    )
)

View solution in original post

6 REPLIES 6
Highlighted
Anonymous
Not applicable

Re: Change Approver

Hi @Big_S 

 

Do you have a approver list along with amount in sharepoint. If so, based on the amount entered you can get the list and populate dropdown/combobox.

 

On change of the TextInput control

 

ClearCollect(collApprovers, Filter('Approver List, 
Amount>= Value(TextInput1.Text), Amount <= Value(TextInput1.Text) ))

 

Set the Items property of combobox to collapprovers. You might have more than 1 approvers for a given range.

 

Thanks.

 

 

Highlighted
Helper V
Helper V

Re: Change Approver

Hi @Anonymous ,
I don't have amount list in SQL, I have default approvers and amount like
If lesser than or equal to 100,00.00 Approver 1
If greater than 300,00.00 Approver 2
If greater than 500,00.00 Approver 3
Can this execute on If statement?

 

Highlighted
Helper V
Helper V

Re: Change Approver

@Anonymous 
I got your point on creating a list of approvers and their amounts on my data source

Highlighted
Helper V
Helper V

Re: Change Approver

@Anonymous 
I have default names for Approver 1,2 and 3 that's why I'm trying to execute the If else statement can this be done?

Highlighted
Anonymous
Not applicable

Re: Change Approver

Hi @Big_S 

 

Having a list gives you more flexibility. However this what you are looking for:

 

Set the Text property of the label to :

 

If(
    Value(TextInput1.Text) >= 500000,
    "Approver 3",
    If(
        Value(TextInput1.Text) >= 300000,
        "Approver 2",
        "Approver 1"
    )
)

View solution in original post

Highlighted
Helper V
Helper V

Re: Change Approver

@Anonymous 

Yes youre right, I will try this first 🙂 THANK YOU SO MUCH! ❤️ I will keep you posted 🙂

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (10,938)