Skip to main content

Notifications

Power Apps - Building Power Apps
Answered

How to set SP List custom form column default value from SQL database data

(0) ShareShare
ReportReport
Posted on by

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. 

  • LJinJC Profile Picture
    LJinJC on at
    Re: How to set SP List custom form column default value from SQL database data

    Thank you so much. This was helpful. 

  • Verified answer
    RandyHayes Profile Picture
    RandyHayes 76,287 on at
    Re: How to set SP List custom form column default value from SQL database data

    @LJinJC 

    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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,666

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,996

Leaderboard