Thursday, 31 March 2011

How to retrieve the optionset text / value using javascript in CRM 2011 OR How to get the optionset text / value in CRM 2011


Code snippet:

var myOptionSet = Xrm.Page.data.entity.attributes.get("optionsetattributename");

var optionSetValue = myOptionSet.getValue();

var optionSetText = myOptionSet.getText();

1 comment:

  1. Nice and good article. It is very useful for me to learn and understand easily. Thanks for sharing your valuable information and time. Please keep updating.
    Microsoft Azure Online Training

    ReplyDelete