Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Suggested answer

Creating BC drop down fields for synching to Dataverse (Dynamics Sales)

Posted on by 2,254

Hi All

When creating new fields in BC we select ENUM as type since OPTION will be deprecated in the future. However, when I look at CRM sync tables in BC, they use OPTION. So the question is should we use Enum or Option when creating new fields that need to be synched to Dynamics Sales

For example, code from Lead CRM sync table field in standard BC:

        field(10133; LeadSourceCode; Option)
        {
            ExternalName = 'leadsourcecode';
            ExternalType = 'Picklist';
            Description = 'Select the primary marketing source that prompted the lead to contact you.';
            Caption = 'Lead Source';
            InitValue = " ";
            OptionMembers = " ",Advertisement,EmployeeReferral,ExternalReferral,Partner,PublicRelations,Seminar,TradeShow,Web,WordOfMouth,Other;
            OptionOrdinalValues = -1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10;
        }
Categories:
  • Samantha73 Profile Picture
    Samantha73 2,254 on at
    RE: Creating BC drop down fields for synching to Dataverse (Dynamics Sales)

    For a custom field new function Dataverse Option Mapping front end page is not available (only for 3 std entities payment terms, shipment method, shipping agent)

    So you still have to manually create ENUM that match dataverse if you create custom fields. Is there a way to automatically create option field values  in Dataverse if we add a new value in BC? For example for the option colour I have RED,GREEN. Now in BC I add BLUE and I want the BLUE to be added as value in Dataverse

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,023 Moderator on at
    RE: Creating BC drop down fields for synching to Dataverse (Dynamics Sales)

    You can use ENUM fields when trying to Sync from CE to BC.

  • Suggested answer
    Francisco Bedolla Profile Picture
    Francisco Bedolla 1,115 on at
    RE: Creating BC drop down fields for synching to Dataverse (Dynamics Sales)

    please check

    docs.microsoft.com/.../admin-cds-missing-option-values

    HTH

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,532 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,501 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans