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 / if + Patch + enterpris...
Power Apps
Answered

if + Patch + enterprise keywords

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

I added enterprise keyword column in my form. I want to submit the values i have selected to powerapps.

I use this formula 

 

UploadFilestoSharePointLibrary.Run(
 JSON(
 colAttachmentGallery;
 JSONFormat.IncludeBinaryData
 );
 
 If(IsBlank(dpd_keywords.Selected.Label);Text("");Patch('Centre de documentation MPM';
 {
 'Mots clés d’entreprise': Table(
 {
 Label: dpd_keywords.Selected.Label;
 Path: dpd_keywords.Selected.Path;
 TermGuid: dpd_keywords.Selected.TermGuid;
 Value: dpd_keywords.Selected.Value;
 WssId: dpd_keywords.Selected.WssId
 }
 )
 }
 )

I have this warning : value(text) is attented. 

 

the component dpd_keyword is a combobox 

* items = Choices([@'Centre de documentation MPM'].TaxKeyword)

* update = dpd_keywords.SelectedItems

 

Can you help me ? 

 

Categories:
I have the same question (0)
  • lcimon Profile Picture
    89 on at

    Hello,

     

    Where do you have this warning ?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I have a button to submit myform. I use this formula in the onselect property

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @lcimon 

     

     I assume you are expecting only one keyword from the combobox

     

    If(
     !IsEmpty(DataCardValue15.SelectedItems),
     Patch(
     EventIItinerary,
     LookUp(
     EventIItinerary,
     ID = BrowseGallery1.Selected.ID
     ),
     {
     'Enterprise Keywords': Table(
     {
     Label: DataCardValue15.Selected.Label,
     Path: DataCardValue15.Selected.Path,
     TermGuid: DataCardValue15.Selected.TermGuid,
     Value: DataCardValue15.Selected.Value,
     WssId: DataCardValue15.Selected.WssId
     }
     )
     }
     )
    )

     

    StalinPonnusamy_0-1633788309442.png

     

    Note: Need to change the code for multi select

     

  • Verified answer
    StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @Anonymous 

     

    Just for curiosity, I went ahead and tried for multi-select tags, and here is the code

     

    If(
     !IsEmpty(DataCardValue15.SelectedItems),
     Patch(
     EventIItinerary,
     LookUp(
     EventIItinerary,
     ID = BrowseGallery1.Selected.ID
     ),
     {
     'Enterprise Keywords': ForAll(
     DataCardValue15.SelectedItems As Source,
     {
     Label: Source.Label,
     Path: Source.Path,
     TermGuid: Source.TermGuid,
     Value: Source.Value,
     WssId: Source.WssId
     }
     )
     }
     )
    )
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks...it works great. Thank you so much. I was focused with table statement. 

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 326 Most Valuable Professional

#2
11manish Profile Picture

11manish 168

#3
sannavajjala87 Profile Picture

sannavajjala87 75 Super User 2026 Season 1

Last 30 days Overall leaderboard