web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

global option set

(0) ShareShare
ReportReport
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

I have the same question (0)
  • Alex Fun Wei Jie Profile Picture
    33,628 on at

    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?

  • sudheersep7 Profile Picture
    40 on at

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

  • Suggested answer
    Arun Vinoth Profile Picture
    11,615 Moderator on at

    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

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 Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
ScottDurow Profile Picture

ScottDurow 2

#2
GJones Profile Picture

GJones 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans