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

How to get form attributes which show on pop up i.e Address in CRM Online?

$
0
0

Hello,

I use following code to get attributes of Form. It provides most of attributes but it doesn't provide attributes which shows in pop up. Example, I get all the attributes of Contact form but it doesn't provide attributes of Address Pop up.

Can anybody please suggest? Here is the code and screenshot.

function getformfields() {
     debugger;
     var oDataUri = "systemforms?$select=formxml&$filter=name eq 'account' and type eq 2";
     var data = getODataRecords(oDataUri);
     if (data && data.value && data.value[0] && data.value[0].formxml) {
          var values3 = [];
          var xml = jQuery(data.value[0].formxml);
          var controls = xml.find('control');
          jQuery.each(controls, function (index, control) {
          console.log(jQuery(control).attr('datafieldname'));
          values3.push(jQuery(control).attr('datafieldname'));
          });
     }

}
function getODataRecords(ODataUrl) {
     debugger;
     var data;
     //var Query = entityName + "(" + Id + ")" + columnSet;
     // var Query = "products?$filter=statuscode eq 1 and productstructure eq 1";
     var Query = ODataUrl;
     var req = new XMLHttpRequest();

     req.open("GET", serverUrl + "/api/data/v8.0/" + Query, false);
     //GET DATA USING api
     //RETURN DATA
}


Viewing all articles
Browse latest Browse all 46379

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>