filmov
tv
Using Power Apps Patch to Insert and Update (with People Pickers and Choice columns)
Показать описание
Learn how to use Power Apps Patch to update or insert into a SQL Server table or in this case, a SharePoint list. Brian also covers how to update into special data types like Choice and People Pickers
Update Statement:
Patch('Assembly Work Orders', ThisItem, {'Text Status':"Complete",
Status:
Value:"Complete"},
Owner:{
Department: "",
Claims: "i:0#.f|membership|" & User().Email,
DisplayName: User().FullName,
Email: User().Email,
JobTitle: "",
Picture: ""
}
})
Insert Done with the Defaults() command:
Patch(
'Assembly Work Orders',
Defaults('Assembly Work Orders'),
{
Title: dcTitle.Text,
'Work Order Number':Value(dcvWorkOrderNumber.Text),
ProductImage: dcProductImage.Text,
Status: ddStatus.Selected
}
)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - - - - - - - - - - - - - -
Next step on your journey:
Let's connect:
Pragmatic Works
7175 Hwy 17, Suite 2 Fleming Island, FL 32003
Phone: (904) 413-1911
Update Statement:
Patch('Assembly Work Orders', ThisItem, {'Text Status':"Complete",
Status:
Value:"Complete"},
Owner:{
Department: "",
Claims: "i:0#.f|membership|" & User().Email,
DisplayName: User().FullName,
Email: User().Email,
JobTitle: "",
Picture: ""
}
})
Insert Done with the Defaults() command:
Patch(
'Assembly Work Orders',
Defaults('Assembly Work Orders'),
{
Title: dcTitle.Text,
'Work Order Number':Value(dcvWorkOrderNumber.Text),
ProductImage: dcProductImage.Text,
Status: ddStatus.Selected
}
)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - - - - - - - - - - - - - -
Next step on your journey:
Let's connect:
Pragmatic Works
7175 Hwy 17, Suite 2 Fleming Island, FL 32003
Phone: (904) 413-1911
Комментарии