We have a custom activity which we do not want anyone to see except one role.
I tried 3 approches but not able to get this going.
1. "Control" object handle using XRM Model - iterated all controls but did not get hold of this control.
2. DOM - since it is critical not to show it, I anyway tried, I could get handle of using following but then JQuery fails to hide children.
3. I thought if there could be a way to somehow control data feeding to page - Xrm.UI.data does not list these entities. I frnkly haven't explored this much.
I read somewhere social pane control cannot be customised, Activity type entities does not support security roles, JavaScript is restricted. This is frustrating. What are my options?
We are using on premise CRM 365
parent.document.getElementById('activitiesWallElementContainer');
var posts = $(acWall).find(["div[entitylogicalname = 'new_customnote'"]);
console.log("posts", posts);
posts.toggle();
OR
$("#activitiesWallElementContainer #wall #wallContainer").on('DOMNodeInserted', function(e) { if(e.target.hasAttribute("objecttypecode") && e.target.attributes["objecttypecode"].nodeValue == "11111") { e.target.children[1].childNodes[7].children[0].children[0].hidden = true; } });
*This post is locked for comments