Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

global option set

Posted on by 40

I am having a scenario in which one global option set field is there in two entities 'A' and 'B' and there is no relationship between these two entities. In 'A' entity based on optionset the name field can be written. There are no duplicates: one optionvalue has one name. So in 'B' entity after setting the optionvalue, I have to compare the option set in both entities and to retrieve the name field in entity 'A' and should auto populate in entity 'B'

*This post is locked for comments

  • Suggested answer
    Arun Vinoth Profile Picture
    Arun Vinoth 11,613 on at
    RE: global option set

    Without relationship this is simply a vague requirement. We cannot identify the related entityA record to copy the name field value when entityB get the required optionset value.

    Still if you have a way to find the associated record, then assign the entityA name field value into entityB name.

    You can use something like this to get key:value pair.

       var low = {value : 100000000, text : "Low"};

       var medium = {value : 100000001, text : "Medium"};

       var high = {value : 100000002, text : "High"};

    Or retrieve the text based on value in picklist.

    meghshyam.wordpress.com/.../retrieving-the-optionset-label-using-javascript-in-crm-2011crm-2013

  • sudheersep7 Profile Picture
    sudheersep7 40 on at
    RE: global option set

    js is better onchange field, i just need code syntax , i think we may not write the workflow when there is no relation.

  • Alex Fun Wei Jie Profile Picture
    Alex Fun Wei Jie 33,626 on at
    RE: global option set

    Hi,

    would be good if you can provide below information

    1.) When do you want this to be happened?

    2.) you prefer instant result or?

    - JS                          : for instant result

    - Workflow/ plugin : after saved.

    3.) How do you determine the entity b record to be updated since there is no relationship?

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans