Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 79901

Get Label Option Set in Retrieve Multiple

$
0
0

I am using the following query, using Retrieve. The "new_categoriadehabilitacao" is a set of options, I managed to recover the Value of this follows:

var CategoriaHabilitacao = results [i] .new_categoriadehabilitacao.Value;

But I need to get the text to set in a picklist,

Can anybody help me?

Below the code I'm using

if (CgmId! = null)
{
XrmServiceToolkit.Rest.RetrieveMultiple (
"New_cgmSet"
"? $ Select = $ new_categoriadehabilitacao & filter = new_cgmId eq guid '" + CgmId + "'"
function (results)
{
for (var i = 0; i <results.length; i ++)
{
var CategoriaHabilitacao = results [i] .new_categoriadehabilitacao.Value;
}
},
function (error) {
alert (error.message);
},
function () {
// On Complete - Do Something
},
true
);

}

Tank You


Viewing all articles
Browse latest Browse all 79901

Trending Articles