Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

What is underlying table name that store display label of two options

Posted on by 25

if i have two options data type field on custom entity, with option values as below

0- Hide

1- Show

values saved into the entity/table is 0 or 1., if i like to get text Hide or Show what is the underlying table name.

Eg: for Option Set , StringMap table has all values.

  • CRMJetty Profile Picture
    CRMJetty 3,508 on at
    RE: What is underlying table name that store display label of two options

    Hi Dear,

    Greetings of the day!

    In regards to your concern, If f you want to get label of field value then try the below things on your end:

    For c#: Use
    string value=entityObj.FormattedValue["paymenttermscode"];
    Instead of
    string value=entityObj.Attributes["paymenttermscode"];

    For js Use
    var value=resObj["paymenttermscode@OData.Community.Display.V1.FormattedValue"];
    Instead of
    var value=resObj["paymenttermscode"];


    Kindly try the above things on your end and let us know in case of any other concerns, I would be happy to assist you further for the same

    Kind Regards,

    CRMjetty

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.

    DynamicsCRM Customer Portal for WordPress

  • Suggested answer
    sdfasdf Profile Picture
    sdfasdf 840 on at
    RE: What is underlying table name that store display label of two options

    Hi,

    I strongly believe that two-option field option labels are stored in StringMap as well. However, pulling these data directly from the database would NOT be a good idea at all, since it would be wildly unsupported by Microsoft.

    If you're doing this for reporting purposes, you might want to consider using the Filtered Views, which denormalize data and actually contain the labels you need.

    If you're doing this from a custom application, you might want to use SDK or the WebAPI to query these labels: docs.microsoft.com/.../use-web-api-metadata

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans