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 / Patching a label to a ...
Power Apps
Answered

Patching a label to a SP list

(0) ShareShare
ReportReport
Posted on by 57

Hi, I am new to powerapps and am trying to learn how to use the patch function.

I have a SP list with a single line of text field type that I am trying to save the label to. The label is filled automatically based on the selected value in a dropdown list using the following:

If(TeamDD.Selected.Result = "Tres",
"Name 1")

I have tried to patch this by using:

Patch(tresresources,
Defaults(tresresources),
{Director: DirectorDD.Text,})

but I am getting an error 'does not match the expected type 'record', found type 'text'

 

Any help is much appreciated!

Categories:
  • zmansuri Profile Picture
    6,048 Super User 2024 Season 1 on at

    Other than the last coma after Text. Everything looks fine. Can you share screenshot of your sharepoint list.

  • elhughes19 Profile Picture
    57 on at

    Hi, Sorry the comma is there because I have other patched columns underneath, but it still does not work on its own without the comma

    This is the list I am trying to save to with all single line of text field types

    elhughes19_0-1667208538454.png

    And this is the SP list for the dropdown values in which the director is dependent on

    elhughes19_1-1667208685611.png

     

  • Verified answer
    elhughes19 Profile Picture
    57 on at

    Rookie Error, I had some columns as choice columns but have changed them to single line of text and forgot to update my datasource

     

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 258

#3
Mohsin Ali Profile Picture

Mohsin Ali 231

Last 30 days Overall leaderboard