Collect(
yourCollection,
{
Name: "",
Email: "",
Designation: "",
Contact: "",
RowGuid: GUID()
}
)
Set(
varGuidInEditMode,
ThisItem.RowGuid
)
If(
ThisItem.RowGuid=varGuidInEditMode,
DisplayMode.Edit,
DisplayMode.View
)
Set(
varGuidInEditMode,
Blank()
)
Collect(
yourCollection,
{
Name: "",
Email: "",
Designation: "",
Contact: ""
}
)
If(
CountRows(yourCollection) < 3,
DisplayMode.Edit,
DisplayMode.View
)
yourCollection
Set(editenabled,true)
Patch(
'User Details',
ForAll(
yourCollection As Items,
{
Title: 'Name'.Text,
'Email': 'Email'.Text,
'Designation': 'Designation'.Text,
'Phone': 'Contact'.Text,
User_List_ID:Form1_9.LastSubmit.ID
}
)
)
Collect(yourCollection, {Name: "", Email: "", Designation: "", Contact: "", ID: Blank()})
CountRows(yourCollection)<=3
Patch(
YourSharePointList,
//define if new row should be created or existing row updated
If(
IsBlank(ThisItem.ID),
Defaults(YourSharePointList),
LookUp(YourSharePointList,ID=ThisItem.ID)
),
{
Title: ThisItem.Name,
Email: ThisItem.Email,
Designation: ThisItem.Designation,
Contact: ThisItem.Contact
}
);
Patch(
YourSharePointList,
ForAll(
YourGallery As Items,
{
Title: TitleBox.Text,
Email: EmailBox.Text,
Designation: DesignationBox.Text,
Contact: ContactBox.Text,
ID: Items.ID
//based on this ID column SharePoint automatically know if new record should be created or existing should be patched re
}
)
)
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.