in powerapps in a customized edit form I have a button named 'substitute' along with a dropdown field named 'Item Description' that gets its results from a lookup list named 'Order Parts Lookup'. When I populate the item description field and select the button I want to populate the 'part number', 'master' and 'description' field of the item I'm currently editing in [Material Order Detail] Sharepoint online list with the respective fields from the order Order Parts Lookup list based on the choice I selected in the item description field. I then want it to submit the changes to the item. Below is the code I have so far, but running into issues with the patch statement...
Among other things, EditForm is not recognized.
Set(
SelectedItem,
LookUp(
'Order Parts Lookup',
Description = DescriptionDropdown.Selected.Result
)
);
Patch(
EditForm.,
EditForm.Mode = FormMode.Edit,
{
DataCardValue1: SelectedItem.'Manufacturer PN',
DataCardValue3: SelectedItem.'PS Item ID',
DataCardValue4: SelectedItem.Description
}
);
Hi @ShawnPelletier ,
You need to be patching a data source, not a form.