Overview
Using the text value of the one data source, we need to set the Look Up value of another data source. So, at that time, there is a possibility that we don’t have an ID column associated with the Look Up. We only have the value for the “Value” column, and we need to find its ID and store the data into the SharePoint list. At this time, we can go with the approach provided in this article.
Scenario
I have two data sources.
- SQL Server
- SharePoint
I have a column named “Designation” in SQL Server.
Now, in SharePoint, I have two lists.
Interview

Designation

In the list “Interview”, I have “Designation” as a Look Up column of Designation list.
When a user clicks on the New Form, the default Look Up value for the Designation field should be set automatically.
So, let’s get started!
Step 1
Create a new PowerApps Form.
We have a Designation column there.

Step 2
Select the Designation Data Card.
Add the Default Property as shown in the below screenshot or the code snippet.
- {
- '@odata.type' : "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
- Id: LookUp(Designation_3,Title = "Software Developer",ID),
- Value: "Software Developer"
- }






Rahul Singh SolankiPosted Dec 21, 2021, 4:51 PM
Didn't work for me!
Rakesh PinaoPosted Sep 6, 2021, 10:25 AM
Thanks Dhruvin - This was really helpful. I've used the Step 2 code snippet successfully to set the lookup field on a new form (My lookup field is a multi-select, but here I am just setting one id & value pair). However, when the form is submitted the value is not saved. If I manually make changes to field it does save, so the field works otherwise. Can I check you are only setting the "Default" property of the field?