Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

CRM Only Create Privilage to entity

Posted on by Microsoft Employee

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

*This post is locked for comments

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans