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

SavedQueryVisualization

$
0
0

In desperate need of a way to create a view programatically (Power Automate HTTP request) to a specific table/entity containing specific custom columns (added by another PA flow). Found this "SavedQueryVisualization" API but couldnt get it working.. It says

An unexpected 'StartObject' node was found for property named 'datadescription' when reading from the JSON reader. A 'PrimitiveValue' node was expected.

This is what my compose (HTTP body) looks like

{
"name": "My Custom View",
"description": "This is a custom view created using the Web API.",
"datadescription": {
"type": 1,
"attributes": [
{
"name": "param_0",
"displayname": "Serial Name",
"description": "The serial name",
"visible": true
},
{
"name": "param_1",
"displayname": "Software",
"description": "Software",
"visible": true
},
{
"name": "param_2",
"displayname": "HD ver",
"description": "HD ver",
"visible": true
}
]
},
"presentationdescription": {
"layout": {
"table": {
"columns": [
{
"width": "200",
"fieldname": "param_0",
"label": "Serial No"
},
{
"width": "300",
"fieldname": "param_1",
"label": "Software"
},
{
"width": "200",
"fieldname": "param_2",
"label": "Version"
}
]
}
},
"visualizationtype": 1,
"charttype": null,
"series": [],
"categories": [],
"type": "grid"
},
"fetchxml": "<fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='false'><entity name='table_160'><attribute name='sl_param_'0 /><attribute name='sl_param_1' /><attribute name='sl_param_2' /></entity></fetch>",
"isdefault": false,
"type": 0
}
where is the wrongs?

Viewing all articles
Browse latest Browse all 46379

Trending Articles



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