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 / Insert a default value...
Power Apps
Answered

Insert a default value to a metadata field

(0) ShareShare
ReportReport
Posted on by 339

Hello,

 

I have created a Managed Metadata column and added it to PowerApps. 

 

I wanted to add a default value to this column, but for some reason, it's not working. 

The code added for a default value was : If(SharePointForm1.Mode = FormMode.New; LookUp(Choices([@Deliberações].Categoria); Label="Documentos Internos") ; Parent.Default)

 

The code works if i use a label that is one of the first 20 tags, but if i chose the 21st tag, then it stops working

 

Any idea to fix this?

 

Thank you

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

    Hi @Field 

     

    Can you share more details about the type of field you are trying to update? Are you getting any errors? If you can share more details, we might be able to help you better.

     

    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!

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

    Hi @Field .

     

    If you want to set the default value of metadata combo box, you need to put the proper properties of metadata field into DefaultSelectedItems property as follows.

    The only issue is that you need to hardcode these properties value into the DefaultSelectedItems property since the term store doesn't really exist in PowerApps. 

    Please try with this.

     

    {'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedTaxonomy",
    'TermGuid':"082184ac-4a8b-4294-908a-6ef1c4e96b30",
    'WssId': -1,
    'Label': "Assistant",
    'Path': "Job Title",
    'Value': "Assistant|082184ac-4a8b-4294-908a-6ef1c4e96b30"
    }

    Snipaste_2020-08-03_17-09-11.png

    Hope this helps.

    Sik 

  • NicolleAbraham Profile Picture
    93 on at

    Hi,

     

    My issue related to this is that is does not return the Value but a number like "24" that is associated with that value, so when I try to default instead of displaying "Assistant" it displays "24" which is not useful for End Users.

     

    Does anyone have any resolutions for this?

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 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard