/*
Update item in column ApproverGroup
*/
If(
Value(TextInput2.Text) <= 2000,
Patch(
'NEW-BRAZIL-Main',
LookUp(
'NEW-BRAZIL-Main',
myID = varID,
{
ApproverGroup: {Value: "NoApprover"}
}
),
If(
Value(TextInput2.Text) <= 10000,
Patch(
'NEW-BRAZIL-Main',
LookUp(
'NEW-BRAZIL-Main',
myID = varID,
{
ApproverGroup: {Value: "AccountManager"}
}
),
If(
Value(TextInput2.Text) > 10000,
Patch(
'NEW-BRAZIL-Main',
LookUp(
'NEW-BRAZIL-Main',
myID = varID,
{
ApproverGroup: {Value: "Director"}
}
)
)
)
)
)
)
)
;
I tried also to get the sum of the Library field by using the code:
/*
Update item in column ApproverGroup
*/
If(
Sum(Gallery1.AllItems,ValorAjuste) <= 2000,
Patch(
'NEW-BRAZIL-Main',
LookUp(
'NEW-BRAZIL-Main',
myID = varID,
{
ApproverGroup: {Value: "NoApprover"}
}
),
If(
Sum(Gallery1.AllItems,ValorAjuste) <= 10000,
Patch(
'NEW-BRAZIL-Main',
LookUp(
'NEW-BRAZIL-Main',
myID = varID,
{
ApproverGroup: {Value: "AccountManager"}
}
),
If(
Sum(Gallery1.AllItems,ValorAjuste) > 10000,
Patch(
'NEW-BRAZIL-Main',
LookUp(
'NEW-BRAZIL-Main',
myID = varID,
{
ApproverGroup: {Value: "Director"}
}
)
)
)
)
)
)
)
;
The problem is, that the field is not updating the ApproverGroup.
Is there any idea available, I try to AVOID to use flow, which is more simple but not what I want to achieve...
Thanks in advance 😉
Cheers
Michael