I am new to JavaScript and Dynamics CRM. I have following code:
var analysisCode = Xrm.Page.getAttribute("rf_analysiscode").getValue()[0].entityValues;
As value for analysisCode
, I get following output:
{
"rf_name":{"name":"rf_name","value":"ABC"},
"rf_code":{"name":"rf_code","value":"ABC"},
"createdon":{"name":"createdon","value":"24.1.2022 10.39"}
}
But I want to get just the rf_code. How do I retrieve that?
Try this:
If you are getting your output in String, Firstly need to parse output and then you can get any value from that json.
Try this: