cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Franx
Frequent Visitor

Syntax help to evaluate records and trigger actions based on it

Hello All,

 

I need some help with two syntax I am utilizing, the purpose of the first syntax is to check if the current user has some progress on the app and if that is right, the app will keep the progress, otherwise it will reset the values of a slider and a couple of checkboxes in a gallery, I am currently checking two column values contained on a column in SharePoint, userEmail and FirstGrade.

 

 

If(LookUp(colNewHiresProgress, userEmail=varUserEmail, userEmail) And LookUp(colNewHiresProgress, FirstGrade="0", true), UpdateContext({sliderValue:0});UpdateContext({resetCheck:false}))

 

 

Also, I am having trouble activating the UpdateContext resetCheck, I think it is because the Default value of the checkbox that is present in the gallery has the following formula: 

 

 

If(ThisItem.IsDone="true",true,false)

 

 

Appreciate your help.

Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions
Drrickryp
Super User II
Super User II

Hi @Franx 

If(
    !IsBlank(
             LookUp(colNewHiresProgress, userEmail=varUserEmail
             ) 
    ) && 
     !IsBlank(
               LookUp(colNewHiresProgress, FirstGrade="0"
               ), UpdateContext(
                                {sliderValue:0}
                  ), UpdateContext(
                                   {resetCheck:false}
                    )
)

Checkboxes are either true or false, no If() is necessary.

ThisItem.IsDone.Value

evaluates to either true or false.

 

View solution in original post

2 REPLIES 2
Drrickryp
Super User II
Super User II

Hi @Franx 

If(
    !IsBlank(
             LookUp(colNewHiresProgress, userEmail=varUserEmail
             ) 
    ) && 
     !IsBlank(
               LookUp(colNewHiresProgress, FirstGrade="0"
               ), UpdateContext(
                                {sliderValue:0}
                  ), UpdateContext(
                                   {resetCheck:false}
                    )
)

Checkboxes are either true or false, no If() is necessary.

ThisItem.IsDone.Value

evaluates to either true or false.

 

View solution in original post

Franx
Frequent Visitor

Thank you @Drrickryp

I added an extra parenthesis to the first formula and the second one didn't allow me to include the '.value', appreciate your help.

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,427)