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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to save dropdown v...
Power Apps
Answered

How to save dropdown value in the sharepoint list

(0) ShareShare
ReportReport
Posted on by

Hi,

 

I have two SP List:

SPList1 = this is where I'm going to save my data from the form

SPList2 = I'm using this list to populate the value to my dropdown

 

Now, I add a button for me to save the details in my SPList1 including the value in my dropdown. My problem is, the value in my dropdown which is from SPList2 is not saving in SPList1. Here below is the code I'm using.

 

 

Patch(
 'QC Inspection Report',
 Defaults('QC Inspection Report'),
 {
 'Control No.': txtIControlNo.Text,
 'Prepared By': drpEmployeeName.Selected,
 'Business Unit': drpBusinessUnit.SelectedText.Value,
 'Material Type': drpMaterialType.SelectedText.Value
 },
 frmAdd.Updates
);

 

 

Note: the column type of my column for dropdown in SPList1 is Single Line of Text.

 

Hope you can help me on this as I was stuck on this problem.

 

Thank you

Categories:
I have the same question (0)
  • Verified answer
    ANB Profile Picture
    7,223 Super User 2025 Season 2 on at

    Hi @Anonymous , It should be dropdown.Selected.Value. Please try below:

     

    Patch(
     'QC Inspection Report',
     Defaults('QC Inspection Report'),
     {
     'Control No.': txtIControlNo.Text,
     'Prepared By': drpEmployeeName.Selected,
     'Business Unit': drpBusinessUnit.Selected.Value,
     'Material Type': drpMaterialType.Selected.Value
     },
     frmAdd.Updates
    );

     

    ------------------------------------------------------------------------------------------------------------------------------

    I hope this helps.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs up.

    Thanks,

    ANB

  • Community Power Platform Member Profile Picture
    on at

    Hi @ANB ,

     

    Thanks for your reply.

     

    I tried your solutions above but I encountered an error. See image below.

    Lawrenzxce_0-1695277904259.png

    Lawrenzxce_1-1695277932517.png

     

    Thank you

  • Community Power Platform Member Profile Picture
    on at

    Hi, 

     

    I tried this one, it's now saving the dropdown field however, my attachments is not saving in the list.

     

    Set(
     newList,
     Patch(
     'QC Inspection Report',
     Defaults('QC Inspection Report'),
     {
     'Control No.': txtIControlNo.Text,
     'Prepared By': drpEmployeeName.Selected,
     'Business Unit': drpBusinessUnit.SelectedText.Value,
     'Material Type': drpMaterialType.SelectedText.Value
     }
     );
     frmAdd.Updates;
     )
  • ANB Profile Picture
    7,223 Super User 2025 Season 2 on at

    Hi @Anonymous , For attachment, please check https://www.youtube.com/watch?v=PqVkYofL6xs

    https://www.youtube.com/watch?v=ECwRwjyPAQE

     

    ------------------------------------------------------------------------------------------------------------------------------

    I hope this helps.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs up.

    Thanks,

    ANB

  • Community Power Platform Member Profile Picture
    on at

    Hi @ANB , same column name in my SP1, am I going to have a problem on this if the column name of my dropdown field are exactly the same in both of my sharepoint list?

  • ANB Profile Picture
    7,223 Super User 2025 Season 2 on at

    Hi @Anonymous , I dont think that would be problem. Thanks, ANB

  • Community Power Platform Member Profile Picture
    on at

    Hi @ANB , thanks for the idea. It now resolved my issue. Thanks!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard