I have a SharePoint-integrated Power App where I have separated the fields from a SharePoint list into 3 forms across the 3 screens. I also have 2 fields that draw from secondary data sources that need to be patched to the record. I am struggling how to combine both of these scenarios to result in submission of one SharePoint list item.
If I use the formula below on Submit button, I get all values into list except for my two separate data sources. This makes sense because I know I need to identify those separately.
Patch(PATestQTP,
Defaults(PATestQTP),
SharePointForm1.Updates,FORMassign.Updates,FORMinterview.Updates);
RequestHide();
Launch("https://XXXX.aspx")
Once I add the additional patches from the secondary data sources to the formula like this, the form throws an error that it needs additional fields required fields for the Patch.
Patch(
PATestQTP,
Defaults(PATestQTP),
{
'Trainer Name':TN_Text.Text,
'Training Partner Name':TPN_Text.Text
});
SharePointForm1.Updates;FORMassign.Updates;FORMinterview.Updates;
RequestHide();Launch("https://XXXX.aspx")
If I then add those like this, I ONLY get those values patched to the list and NONE of the default fields:
Patch(
PATestQTP,
Defaults(PATestQTP),
{
'Email ID':DataCardValue3.Text,
'Products Qualified':DataCardValue70.Selected,
'Trainer Name':TN_Text.Text,
'Training Partner Name':TPN_Text.Text
});
SharePointForm1.Updates;FORMassign.Updates;FORMinterview.Updates;
RequestHide();Launch("https://XXXX.aspx")
**How should I formulate this to get both the form defaults from 3 forms and the 2 secondary data source fields in one list item?