Quantcast
Channel: Microsoft Dynamics 365 Community
Viewing all articles
Browse latest Browse all 64797

Retrieve the Query name linked to a View

$
0
0
Hi All

Below the code in order to retrieve the query name that defines a View.
    #AOT
    #Properties

    TreeNode          treeNode;
    QueryName         QueryName;

    treeNode = TreeNode::findNode(#ViewsPath+'\\'+ 'ViewName');
    QueryName = findProperty(treeNode.AOTgetProperties(), #PropertyQuery);
   
    info ( QueryName );

That’s it!
 

Viewing all articles
Browse latest Browse all 64797

Trending Articles



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