I have a customized form for a SharePoint list. In one of the list columns, when a new form is entered, I want that column to have default data from a sql database and have that data saved into the SharePoint list. I've already connected the sql database via the gateway and added the connection to the customized form. I'm a newbie to the Power Platform and I guess I'm trying to figure out the formula that populates that Default line. Any help will be greatly appreciated.
Thank you so much. This was helpful.
You have not mentioned the criteria for your data. What is it from the SQL that you are trying to display as a default?
You need to basically do a LookUp on the SQL connection to get the value you want.
Example, in the Default property of your TextInput control:
LookUp(yourSQLTable, <criteria>, <column>)
Where criteria specifies what record to look up, and column specifies the column of your table that you want the data from.
I hope this is helpful for you.