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 Platform Community / Forums / Power Apps / Error on patching data...
Power Apps
Answered

Error on patching data in Sharepoint list from Powerapps for dropwdown

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

So i already have a column name on my sharepoint list. I already tested this out without the dropdown function and just inputting text. It works out fine but then i wanted to add a new function where there is a dropdown button consisting of values. i wanted to add them and patch whatever is selected on the dropdown button to the sharepoint list.

Heres the code: 

 

If(
 !IsBlank(start_inputfield.Text) && !IsBlank(session_dropdown.Selected.Value),
 Patch(
 HRProject_Start,
 Defaults(HRProject_Start),
 {
 'Session Name': session_dropdown.Selected.Value,
 Email: User().Email,
 Text: start_inputfield.Text,
 'Date and Time Submitted': Text(Now(), "mm/dd/yyyy hh:mm")
 }
 )
);

 

It doesnt give a hint on which errors it is. Here's a picture

lesty_0-1702456000958.png

hoping for your help. thanks a lot 

Categories:
I have the same question (0)
  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    Please try:

    If(
     !IsBlank(start_inputfield.Text) && !IsBlank(session_dropdown.Selected),
     Patch(
     HRProject_Start,
     Defaults(HRProject_Start),
     {
     'Session Name': session_dropdown.Selected.Value,
     Email: User().Email,
     Text: start_inputfield.Text,
     'Date and Time Submitted': Text(Now(), "mm/dd/yyyy hh:mm")
     }
     )
    );

     

    Best Regards,

    Bof

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hello @v-bofeng-msft , i just found out that the selected value im using is not Text and since my sharepointlist is on Text datatype. it gives an error. So i made a solution of adding Text(). but then it still gives an error.

    The values i used for dropdown is coming from a table on a excel sheet. 

    lesty_0-1702457022938.png

     

  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    The point is that there is no such a property named 'Value' in session_dropdown.Selected . Please check the items property of the session_dropdown and confirm which field you need to reference.


    Best Regards,

    Bof

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    So this is my dropdown 

     

    from the excel sheet. in table 1 i used the session title column

    lesty_0-1702457987739.png

     

  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    Please try:

    If(
     !IsBlank(start_inputfield.Text) && !IsBlank(session_dropdown.SelectedText.Value),
     Patch(
     HRProject_Start,
     Defaults(HRProject_Start),
     {
     'Session Name': session_dropdown.Selected.SelectedText.Value,
     Email: User().Email,
     Text: start_inputfield.Text,
     'Date and Time Submitted': Text(Now(), "mm/dd/yyyy hh:mm")
     }
     )
    );

     

    Best Regards,

    Bof

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 551

#2
WarrenBelz Profile Picture

WarrenBelz 430 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 298

Last 30 days Overall leaderboard