Hi dear friends. Could you please help me find my mistake so that I can learn how to use a toggle in the galleri and patch it to Dataverse for Teams.
My project is to move existing apps for teacher where they mark different goal that the students have achived. These works fine in SP but I have some things to learn in Dataverse for Teams.
The problem is, in your collection, the value for Klart column is true/false (as returned by the toggle). But dataverse needs a value, 'Klart (Work Progess Trackings)'.Yes or 'Klart (Work Progess Trackings)'.No
So, when you collect the values into your collection, you have to do this (instead of, just Toggle1.Checked)
If(Toggle1.Checked, 'Klart (Work Progess Trackings)'.Yes or 'Klart (Work Progess Trackings)'.No)
Note: You may have to replace Yes/No with Ja/Nej (because of Swedish). Please check.
Thank you @CNT
Excuse me but I don't really understand. So a toggle or checkbox in Dataverse doesn't work as a boolean in a SharePoint list.
So the value, "True", as in my collection (see picture), is not enough?
Do I really have to write an If-statement to get Yes/No instead of true/false?
I've tried you suggestion but can't get it to work.
@OlaH The second parameter in Patch has to be either a BaseRecord - The record to modify or create or BaseRecordTable - A table of records to modify or create.
Then you need a third Parameter with either a Record with field(s) that have to be changed or a Table with Records that have to be changed.
Please refer to the syntax here, https://docs.microsoft.com/en-gb/powerapps/maker/canvas-apps/functions/function-patch
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.