cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
IBX_Tim
New Member

Dropdown/Choice or Date Fields not being patched to Microsoft Teams Table

I am working on a PowerApp for Microsoft Teams.  I have a form that two combo boxes, a date field, and a text field.  The only thing that transfers over to the table setup for the Teams Dataverse is the text field.

 

Patch command I tried is:

 

 

Patch(InspectionData,Defaults(InspectionData),
{IBX:DataCardValue_EntryIBX.SelectedItems.Value};
{'Date Entered':DataCardValue_EntryDateEntered.Value};
{'Entered By':DataCardValue_EntryEnteredBy.Selected.Value};
{Deficiency:DataCardValue_EntryDeficiency.Value});
Navigate(screenHome);
ResetForm(form_DataEntry);

 

 

 

The table uses choice fields for the dropdowns.

 

You'll see I tried selected and selecteditems on the two combo boxes.  I've also tried dropping the .value

1 ACCEPTED SOLUTION

Accepted Solutions
IBX_Tim
New Member

I figured it out.  Too many {} made it run home to momma.

 

Patch(
	InspectionData,
	Defaults(InspectionData),
	{
		IBX:DataCardValue_EntryIBX.Selected.Value,
		'Date Entered':DataCardValue_EntryDateEntered.Value,
		'Entered By':DataCardValue_EntryEnteredBy.Selected.Value,
		Deficiency:DataCardValue_EntryDeficiency.Value
	}
	);

Navigate(screenHome);

ResetForm(form_DataEntry);

View solution in original post

1 REPLY 1
IBX_Tim
New Member

I figured it out.  Too many {} made it run home to momma.

 

Patch(
	InspectionData,
	Defaults(InspectionData),
	{
		IBX:DataCardValue_EntryIBX.Selected.Value,
		'Date Entered':DataCardValue_EntryDateEntered.Value,
		'Entered By':DataCardValue_EntryEnteredBy.Selected.Value,
		Deficiency:DataCardValue_EntryDeficiency.Value
	}
	);

Navigate(screenHome);

ResetForm(form_DataEntry);

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (1,970)