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 / Patch a dropdown in Sh...
Power Apps
Answered

Patch a dropdown in SharePoint

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi, 

I'm trying to patch a dropdown column in a Sharepoint list with 2 arguments : "A envoyer" and "Envoyée" ('To send' and 'Sent'). I would like to modify all the status of my mail communications with "A envoyer".

However, I get the error message: The type of this argument 'Statut' does not match the expected type 'Record'. Found type' Text'.

Does anyone have an idea?

Thanks in advance!

 

The picture is my Gallery

ForAll(Gallery1_1.AllItems; 
Patch(Communications; 
First(Filter(Communications;Title=Label13_1.Text)); 
{Statut : "A envoyer"}))

Capture.PNG

 

Categories:
I have the same question (0)
  • jhall Profile Picture
    636 on at
  • Verified answer
    yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    @Anonymous 

     

    Can you try to modify your expression as:
     
    ForAll(Gallery1_1.AllItems;
    Patch(Communications;
    First(Filter(Communications;Title=Label13_1.Text));
    {Statut : LookUp(Choices(Communications.Statut);Value = "A envoyer")}))
     
    Hope this Helps!

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you! 

    Couldn't write the formula correctly with 'choices' or '#Microsoft.Azure'.

     

    This one is simple and works perfectly 🙂

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 294 Most Valuable Professional

#2
11manish Profile Picture

11manish 210

#3
Valantis Profile Picture

Valantis 169

Last 30 days Overall leaderboard