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

CRM Only Create Privilage to entity

$
0
0

Hello all,

I am developing a solution so that need to see only create page(Form) when click on Sitemap menu _customEntityName.

and  have created a entity and assign sitemap using SDK with create  privilage but not working.

XElement root = new XElement("Area");
root.Add(new XAttribute("Id", "DotsquaresPack"),
new XAttribute("ShowGroups", "true"),
new XAttribute("Title", "DotsquaresPack"));

root.Add(new XElement("Group",
new XAttribute("Id", "Group_SubDotsquaresCalendarEventsWebForm"),
new XAttribute("Title", "DotsquaresCalendarEvents"),
new XElement("SubArea", new XAttribute("Id", "SubArea_dots_eventcalendar"),
new XAttribute("Entity", _customEntityName),
new XElement("Privilege", new XAttribute("Entity", _customEntityName),
new XAttribute("Privilege", "Create")
))));


sitemapxml.Element("SiteMap").Add(root);

sitemap["sitemapxml"] = sitemapxml.ToString();
_serviceProxy.Update(sitemap);

PublishXmlRequest request = new PublishXmlRequest();
request.ParameterXml = "<importexportxml><sitemaps><sitemap></sitemap></sitemaps></importexportxml>";
_serviceProxy.Execute(request);

thanks


Viewing all articles
Browse latest Browse all 46379

Trending Articles



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