Hi guys,
While Patch, I face an error saying "the type of this argument "my field" does not with the expected type Record, found Number"
My data source is CDS, and the field that wants to insert is a lookup column. As the input column is based on the Edit form which has the Datacard, how would be the patch ?
I'm using something like this :
Patch('Jobs',
Defaults('Jobs'),
{'Order': Value(DataCardValue3.Text),
....}
The DataCardValue3 is the name of the control in the edit form which is the field of my field : Order
Kindy help.
Thanks
It works
Thank you both.
@Axal Your 'Order' column is a LookUp and you are sending it a number.
Assuming that DataCardValue3 is a dropdown, change the formula to,
'Order': DataCardValue3.Selected
Hi @CNT
This is it :
Hi @DylanSimons ,
Yes, however my datasource is CDS not Sharepoint, and unfortunately, I'm not a developer so I don't understand how to translate that to CDS.
Thanks,
@Axal could you share a screen shot of the entire formula along with the error message.
Hello, you need to patch the entire record associated with the lookup column. Please see the link below, which describes it nicely.
I have much more luck simply using an edit form and SubmitForm() to patch it even if the lookup column is the only field in the edit form.
WarrenBelz
42
Most Valuable Professional
mmbr1606
41
Super User 2025 Season 1
MS.Ragavendar
36