web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Apps
Unanswered

Dynamic form

(0) ShareShare
ReportReport
Posted on by 1
How display info form SQL server in first page and take that information with editing to submit in share point list
Note: i have view access for SQL
Categories:
I have the same question (0)
  • eka24 Profile Picture
    20,925 on at
    You will need to insert a form and use the sql server table as the datasource of the form.

    Set the DefaultMode of the from to edit.

    After that, use patch function to send the data to the sharepoint list.

    Patch will follow this structure:
    Patch( SharepointListName,Defaults(SharepointListName), { ColumnName1: Datacardvalue1, ColumnName2: Datacardvalue2} )

    If you like this post, give a thumbs up. Where it solved your issue, Mark as a solution
  • v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @AlMohalleb ,

    Do you want to 

    1)display data from sql in first screen?

    2)get data from screen1 and use this data to edit data in sharepoint list?

    Could you tell me 

    1)the fields data type in sql that you want to use?

    2)the fields data type in sharepoint list that you want to update?

    3)you want to use which sql field to update which field in sharepoint list?

    4)the controls that you want to display sql data in your sharepoint edit form?

    Actually, your issue's key point is data type in two data sources.

     

    Firstly, please notice the supported data type of these two data source:

    3172.PNG

     3173.PNG

     

    You need to transfer data in sql to the same data type with the fields in sharepoint list.

     

    Secondly, many data type in sql is not supported in powerapps.

    You can not display or use these data type in powerapps.

    If a SQL Server data type is not listed in the table above, it is not supported. Examples of unsupported SQL Server data types include: binary(), varbinary(), image, cursor, rowversion, hierarchyid, sql_variant xml, Spatial Geometry Types, Spatial Geography Types, and table.

    Here's a doc about this connector:

    https://docs.microsoft.com/en-us/connectors/sql/

     

    Thirdly, to GetItem in sql, you need to have primary key in your sql table.

     

    Then, let me make a similar test( if you all meet the requirements that I list above):

    1)screen1

    insert a gallery to display all items in your sql table, insert a display form to display selected item.

    Set the gallery's Items:   sqltablename

    Set the display form's datasource: sqltablename

    Set the display form's Item:   Gallery.Selected

    2)screen2

    insert an edit form to edit item of your sharepoint list

    Unlock the fields that you want to get data from sql

    Then you just need to change the controls' Default peroperty to   (textinput's Default, drop down's Default,combo box's DefaultSelectedItems)

    Gallery.Selected.sqlfieldname

    Then the control will display the data of sql instead of its original data.

    Also, you need to change the datacards' Update property based on the fields' data type.

    You do not need to change the submit formula, SubmitForm(Formname) is enough.

     

     

     

    Best regards,

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 429 Most Valuable Professional

#2
11manish Profile Picture

11manish 191 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 122 Super User 2026 Season 2

Last 30 days Overall leaderboard