Skip to main content

Notifications

Business Central forum

Can I add more option strings to built-in field in Business Central.?

Posted on by 245

Hello all,

how can I add more option Members to standard field in a table(Business central), using table extension.

  • Unknown User3 Profile Picture
    Unknown User3 10 on at
    RE: Can I add more option strings to built-in field in Business Central.?

    Hello Dear,

    Its not possible to extend option field in business Central.

    Thank u!

  • Unknown User3 Profile Picture
    Unknown User3 10 on at
    RE: Can I add more option strings to built-in field in Business Central.?

    Hello Dear,

    Its not possible to extend option field in business central.

    and the solution u have provided or asking for your solution whether correct or not then its wrong. to overcome from this issue microsoft introduced  enum object.

    thank u!

  • RE: Can I add more option strings to built-in field in Business Central.?

    The approach above works.

    In my case, I have added a new option value to base table via Table Extension which work. Now I need to show the new option value in the List Page. I applied the same approach in the Page List Extension but the dropdown list of the extended control did not include the new option value.

    Do you have the same issue? Have you found a fix? Thanks.

  • yannstlo Profile Picture
    yannstlo 114 on at
    RE: Can I add more option strings to built-in field in Business Central.?

    I did a little test and it looks like I was able to do it...

    The list had a subset of these and I was able to add to it but had to include the items that were already there.

    It basically over-writes what is in the option field with your information.

    tableextension 50011 "Item_Ext" extends "Item"

    {

       fields

       {

           modify("PVS Item Type")

           {

               OptionCaption = ', Paper, Plates, Film, Ink, Die, Cartons, External Finishing, Finished Good, Cores, Label, Envelope, Board';

           }

       }

    }

  • Suggested answer
    Stefano Demiliani Profile Picture
    Stefano Demiliani 37,162 Most Valuable Professional on at
    RE: Can I add more option strings to built-in field in Business Central.?

    As said above, not possible by design actually. Only enum fields can be extended but the base app has no enums yet.

  • yannstlo Profile Picture
    yannstlo 114 on at
    RE: Can I add more option strings to built-in field in Business Central.?

    ever found an answer?

  • TeddyH Profile Picture
    TeddyH 12,868 Super User 2024 Season 1 on at
    RE: Can I add more option strings to built-in field in Business Central.?

    You can't. Create a new field and hide the standard field.

    On the OnValidate of the new field, add a code to change the standard field if needed.

  • Suggested answer
    Stefano Demiliani Profile Picture
    Stefano Demiliani 37,162 Most Valuable Professional on at
    RE: Can I add more option strings to built-in field in Business Central.?

    Not possible. You need to create a new field actually. It could be possible in the future when options will be converted to enums, but this is a long work in progress (no ETA yet).

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

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

Featured topics

Product updates

Dynamics 365 release plans