Drop down report parameter problem RRS feed

  • Question

  • Hi,

    I have one custom report having a drop down parameter. I am exporting the report and attaching to email as PDF. For that I am executing following http request;

      var retrieveEntityReq = new XMLHttpRequest();

      retrieveEntityReq.open("POST", pth, false);

      retrieveEntityReq.setRequestHeader("Accept", "*/*");

      retrieveEntityReq.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");

     var data = "id=" + reportId + "&uniquename=" + Xrm.Page.context.getOrgUniqueName() + "&iscustomreport=true&reportnameonsrs=&reportName=" + reportName + "&isScheduledReport=false&CRM_Filter=" + crmFilter + "&p:Name='A. Datum Corporation (sample)'&p:Primarycontact=2";




    Here Primarycontact is dropdown parameter of contact entity on report.

    All works fine if I don’t use dropdown on report. i.e If only use  string parameter. I want to know how to pass parameter for drop down request .i.e. “&p:Primarycontact=?” or any other way.

    From Response text html content I come to know the value for parameter Primarycontact is not set as below.

    Any help will be appreciate.



    Saturday, November 1, 2014 5:21 AM

All replies