Dataverse Debugging Proxy

Web proxy tool add-on for XrmToolBox to log all HTTP(S) traffic between your computer and CDS environment and/or any other internet portal. Inspect traffic, update on the fly, and fiddle with request/response.

Current version: 2.2021.16.67

Key features:
* Override HTTP(s) Responses and Requests on the fly and directly in the text area with JS, HTML, CSS, JSON syntax highlight, and formatting.
* Detect and hook requests that contain FetchXML or Views and provides the possibility to test, change and execute them.
* Possibility to create a dedicated Chrome environment to avoid cashing and check your requests outside your standard browser configuration.
* Embedded JS engine to run custom scripts and as example update CDS metadata on the fly.
* Possibility to configure autoresponse for typical requests.
* Possibility to execute any requests manually.


Some usage examples:

1. Hook Fetch XML

Open the list of contacts and wait until it loaded, then click “Start Capture“. Try to switch between contact views. The system will send fetchXml requests depends on the view type. CDS Debugging Proxy will capture requests and show them in an appropriate view. Chose one of them which contains fetchXml and go “Hooked FetchXml” section to analyze it.


This will also work for system views. So if the request contains ViewId the CDS debugging proxy will try to extract the fetchXML and show the view name.

2. Update action for the “Refresh” button on contact HomePageGrid only using a proxy server.

You should launch Chrome without caching to implement this. “No cache” button.

To start capturing data, click “Start Capture“. Open the list of contacts and put a filter to capture only HomePageGrid and Main_system_library.js. Use ‘;’ as a separator.


First of all let’s review requests, we need to modify. We have two. First one is metadata request:


This request will return ribbons configuration for contact HomePageGrid.

We need to update the function.


Second is the js file with the function which should be executed.


To update metadata is easier to use a script. Go to the Script section and past the following script.

function onProxyResponse() {
//check that we are in the right place
    if (CDSDP_ResponseBody.indexOf("Mscrm.Modern.refreshCommand") != -1 
		&& CDSDP_RequestUrl.indexOf("HomePageGrid") != -1)  {
            //parce metadata json from response body
            var obj = JSON.parse(CDSDP_ResponseBody);
            //extracting metadata section and parcing it
            var metadata = JSON.parse(obj["Metadata"]);
            //replacing standard function with 'TestRibbon'
                            Actions[0].Attributes["FunctionName"] = "TestRibbon";
            //converting metadata json to string
            var ribbonMetadata = JSON.stringify(metadata);
            //replacing standard section with our variant
            obj["Metadata"] = ribbonMetadata;
            //updating output
    return true; // we show all list view items. 

Don’t forget to check “Use JS Script.”


This script will be executed for each response.

The next part is to add our function to Main_system_library.js. This is quite simple. Select the request in the list of requests and add the function on top of the file.


Don’t forget to check “Override response by URL”.

Next time when you refresh the page script will update metadata, and Js file will be replaced by our changes.

3. Downloading all images from Dynamics Marketing

Suppose you want to download all files from marketing content area. You can use CDS Debugging Proxy for this.  Just open the appropriate section in Dynamics Marketing.


Then click “Start capture” in CDS Debugging Proxy and Refresh the page using the “Refresh” button from the ribbon.

You will capture fetchXml request which extracts all needed information about images.


The response of this request is the following JSON structure

  "@odata.context": "$metadata#msdyncrm_files(msdyncrm_name,statecode,modifiedon,msdyncrm_fileid,msdyncrm_contenttype,createdon,msdyncrm_width,msdyncrm_bloburi,msdyncrm_blobcdnuri,msdyncrm_height,msdyncrm_thumbnail_url,msdyncrm_blobsize)",
  "@odata.count": 2,
  "@Microsoft.Dynamics.CRM.totalrecordcount": 2,
  "@Microsoft.Dynamics.CRM.totalrecordcountlimitexceeded": false,
  "value": [
      "@odata.etag": "W/\"2183865\"",
      "msdyncrm_name": "img.png",
      "statecode@OData.Community.Display.V1.FormattedValue": "Active",
      "statecode": 0,
      "modifiedon@OData.Community.Display.V1.FormattedValue": "5/12/2020 12:31 PM",
      "modifiedon": "2020-05-12T12:31:30Z",
      "msdyncrm_fileid": "47fa427f-4c94-ea11-a811-000d3a59ff91",
      "msdyncrm_contenttype": ".png",
      "createdon@OData.Community.Display.V1.FormattedValue": "5/12/2020 12:31 PM",
      "createdon": "2020-05-12T12:31:27Z",
      "msdyncrm_width@OData.Community.Display.V1.FormattedValue": "768",
      "msdyncrm_width": 768,
      "msdyncrm_bloburi": "!",
      "msdyncrm_blobcdnuri": "!",
      "msdyncrm_height@OData.Community.Display.V1.FormattedValue": "768",
      "msdyncrm_height": 768,
      "msdyncrm_thumbnail_url": "!-160x120",
      "msdyncrm_blobsize@OData.Community.Display.V1.FormattedValue": "152,728",
      "msdyncrm_blobsize": 152728
      "@odata.etag": "W/\"2183861\"",
      "msdyncrm_name": "img.png",
      "statecode@OData.Community.Display.V1.FormattedValue": "Active",
      "statecode": 0,
      "modifiedon@OData.Community.Display.V1.FormattedValue": "5/12/2020 12:31 PM",
      "modifiedon": "2020-05-12T12:31:11Z",
      "msdyncrm_fileid": "8e47c973-4c94-ea11-a811-000d3a59ff91",
      "msdyncrm_contenttype": ".png",
      "createdon@OData.Community.Display.V1.FormattedValue": "5/12/2020 12:31 PM",
      "createdon": "2020-05-12T12:31:07Z",
      "msdyncrm_width@OData.Community.Display.V1.FormattedValue": "768",
      "msdyncrm_width": 768,
      "msdyncrm_bloburi": "!",
      "msdyncrm_blobcdnuri": "!",
      "msdyncrm_height@OData.Community.Display.V1.FormattedValue": "768",
      "msdyncrm_height": 768,
      "msdyncrm_thumbnail_url": "!-160x120",
      "msdyncrm_blobsize@OData.Community.Display.V1.FormattedValue": "127,704",
      "msdyncrm_blobsize": 127704

The next step for us should be to parce this structure and download the files according to the links. Go to “Script” section and past following script

function onProxyResponse() {
    var json = JSON.parse(CDSDP_ResponseBody);
    CDSDP_Log("Downloading files...");
    for(var i=0;i<json.value.length;i++){
        CDSDP_Log(json.value[i]["msdyncrm_name"]+" : "+json.value[i]["msdyncrm_bloburi"]);
    return true;

Don’t forget to check “Use JS script”.  Next time you click “Refresh” button in your Dynamics Marekting app, the system will send the same request and the script will parce the response and download files to provided folder C:\marketingimgs\