Posts

Showing posts from November, 2013

CRM 2011 - Add many to many relationship + checking if relationship exists between entities (N:N)

Hi all, Using service context AddLink, you can create N:N relationship in CRM. However you still need to check if the relationship has already been created between the two entities, otherwise you would get 'Insert duplicate key' error. Thanks to this blog  I don't have to create helper functions to check the existing relationship. Rather than using AddLink method that is tied to a service context, I just use the normal Associate method of the IOrganisationService: HTH, Andreas

SharePoint GlobalNavSiteMapProvider get visible items - hidden page issue

Hi all, If you happen to grab structured navigation items from GlobalNavSiteMapProvider in the code when it has 'show all pages' enabled, you would find that it will return all pages including the ones that are hidden. I debugged the code and interestingly the IsVisible property of the PortalSiteMapNode always returns true.  One workaround is to not show pages in the global navigation, and manually add/remove links in the navigation. The other workaround (easier) is to check if the page description has 'hidden' in it, if so then you exclude it: HTH, Andreas

SharePoint 2013 Add an app Loading forever - Master page issue

Hi all, If you build your custom master page and use it in System pages, you might find that you will get the Loading message forever when you do Site Contents - Add an App. Reading Randy's blog  some tags are required. In the end I just copy pasted the required tags from his Starter master page   to include them in my master page: Make sure you put it inside the SharePointForm tag. HTH, Andreas