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 and dropdown value
Power Apps
Unanswered

patch and dropdown value

(0) ShareShare
ReportReport
Posted on by 176

hello I can not save the value of DropdownSite with the patch function.
I have an error on the Site: DropdownSite line;

I tried with Site: DropdownSite.SelectedText;

but I still have the error.
can you help me?

 

Filter('Compte client - adresse';compte=ThisItem.Title).ID

1.png

 

Patch('Compte Client - contact';
 ForAll(Gallery9_2.AllItems;
 {ID: ID;
 Site : DropdownSite;
 Service: DropdownService.SelectedText;
 Nompr_x00e9_nom: TextInputNomPrenom.Text;
 T_x00e9_l_x00e9_phone: TextInputTelFixe.Text;
 Portable: TextInputTelPortable.Text;
 Mail: TextInputEmail.Text
 }
 )
)

2.png

 

 

Categories:
  • RezaDorrani Profile Picture
    12,145 on at

    Hi @Ben-00-38 

     

    Check https://youtu.be/g9ChYuTdNd4

     

    --------------------------------------------------------------------------------
    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

    Thanks,
    Reza Dorrani, MVP
    YouTube
    Twitter

  • Sharuk Profile Picture
    202 on at

    @Ben-00-38 

    have you tried selected.value instead selectedtext ?

  • Ben-00-38 Profile Picture
    176 on at

    I tried
    Site: DropdownSite.Selected.Value;

    Site: DropdownSite.SelectedText;

    but i have error.

  • Ben-00-38 Profile Picture
    176 on at

    Hello,
    Reza Dorrani,
    my problem is not to use the patch function but the line
    Site: DropdownSite.SelectedText;

    I can't seem to retrieve the value of this dropdown.

    Hello,
    Reza Dorrani,
    my problem is not to use the patch function but the line
    Site: DropdownSite.SelectedText;

    I can't seem to retrieve the value of this dropdown.
    If you have an idea, I'm interested. thank you

  • RezaDorrani Profile Picture
    12,145 on at

    @Ben-00-38 

    What type of column is Service?

    If choice then your patch syntax is incorrect.

     

    As for your formula, Try using DropdownSite.Selected.Value

     

    --------------------------------------------------------------------------------
    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

    Thanks,
    Reza Dorrani, MVP
    YouTube
    Twitter

  • Ben-00-38 Profile Picture
    176 on at

    On sharepoint my column is a text line.
    On powerapps the column is a dropdown:
    Filter ('Customer account - address'; account = ThisItem.Title) .ID

    I tried
    Site: DropdownSite.Selected.Value;
    Site: DropdownSite.SelectedText;
    but i have error.


    If I change the column in sharepointe to choice list it works with Site: DropdownSite.SelectedText;

    I found that it had no logic because the dropdown is empty at the base.
    She takes the values of
    Filter ('Customer account - address'; account = ThisItem.Title) .ID

    It works that way.
    Thank you.

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