Showing results for 
Search instead for 
Did you mean: 
New Member

Patching data from text field to lookup field


There are two entities 'Contacts' and 'Appointments', in contacts field i already patched the two text fields, but i want that those two textfields should also patched into a single lookup column of 'Appointment' entity.

I am applying below formula to patch the data from the two textfields to a single lookup column,


but i am getting the below error:

"the type of this argument(Required) does not match the expected type expected type 'Record'. Found type 'Text' "  

Super User III
Super User III

If I understand correctly you are trying to create a new row in the appointments table. The new row has a LookUp field “Required” that you are attempting to fill with two text strings.

LookUp columns require a record data type. Therefore filling it with two joined text strings is not possible. You will need to find another way to accomplish your goal.

Record type fields should typically be selected by the user through a ComboBox. Is there any opportunity to do that here?

Please Accept as Solution if this post answered your question so others may find it more quickly. If you found this post helpful consider giving it a Thumbs Up.

Community Support
Community Support

Hi @PMishra ,


Check on below thread to see if it could help:




Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Dual Super User II
Dual Super User II

Hi @PMishra 


The issue here is that the lookup type column expects a record of a particular schema as per the lookup entity. When you are passing a concatenated string, this is not recognized as a valid input.


Based on the description shared by you, do you mean that you want to create a contact first and then add the same contact in the lookup column based on entered first name and last name?


Assuming that the above is correct, you can update the expressions as:

If(varCheck=true,Set(PatchedData,Patch(Contacts,Defaults(Contacts),{firstname:TextInput1.Text,lastname:TextInput1_1.Text,jobtitle:TextInput1_2.Text}));Patch(Appointments,Defaults(Appointments),{Required:LookUp(Choices(Appointments.Required),contactid =PatchedData.contactid)});SubmitForm(Form3);ResetForm(Form3);


Hope this Helps!


If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Helpful resources

PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!


Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (41,124)