Hello All,
This is my second attempt for help regarding Powerapp set up.
Current set-up: I have a one Screen with 3 toggles: Toggle11/Toggle11_1/Toggle11_2 by default they say No.
With the help of visible I created a wizard like set up - 3 questions needs to be answered YES/NO
I want to configure a Finish button when the selections of toggles would be saved to the SQL DB.
I have
If(Toggle11.Value = true, Patch( Settings, LookUp( Settings, SettingName = "EnableAllDiagnosticPolicies" ), { SettingValue: "1" } ), Patch( Settings, LookUp( Settings, SettingName = "EnableAllDiagnosticPolicies" ), { SettingValue: "0" }))
Which work.
I want to add another Toggle SETTING
If(Toggle11_1.Value = true, Patch( Settings, LookUp( Settings, SettingName = "RemediateAllDiagnosticPolicies" ), { SettingValue: "1" } ), Patch( Settings, LookUp( Settings, SettingName = "RemediateAllDiagnosticPolicies" ), { SettingValue: "0" }));
AND fail:
Tried separating these IF statement with AND / O / Semi-colon ";" / &&
What I is the best IF statement separator? What I am doing wrong?
Thanks in advance,
Balys
Fixed it myself.
Concurrent(
Patch(Settings, LookUp( Settings, SettingName = "EnableAllDiagnosticPolicies" ),
{SettingValue: If(Toggle11.Value,"1" ,"0"}) )
,
Patch(Settings, LookUp( Settings, SettingName = "RemediateAllDiagnosticPolicies" ),
{SettingValue: If(Toggle11_1.Value,"1" ,"0")} )
)
Hi @balys ,
I'm very glad your problem is solved and hope your sharing can help more people in the forum.
Best Regards,
Jessica Gu
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
User | Count |
---|---|
198 | |
98 | |
58 | |
56 | |
52 |
User | Count |
---|---|
257 | |
161 | |
87 | |
79 | |
68 |