Uma dica útil e simples é a autenticação nos plugins com o usuário “System”, não precisamos aumentar o nível de permissões dos usuários, podemos rodar o plugin em uma alto nível de permissão e nas interações vincular como proprietário o usuário do contexto, deste modo, mantemos os perfis e temos flexibilidade para manipular as informações.
No CRM 4 usávamos:
ICrmService service = context.CreateCrmService(false);
No 2011, usamos:
IOrganizationService service = factory.CreateOrganizationService(null);
I have been working with IT since 2006, almost of this time, I was working with Microsoft Dynamics CRM/365 as a source of solutions. I graduated in Bachelor of Information Systems at FIAP (Faculdade de Informatica e Administracao Paulista) in 2012.I really love what I do! Technology has been my interest since always. Even in a world too different of the current one, when we haven't had the internet, tablets, smartphones and social networks!Although I have worked in some different roles, I can't give up "the developer's life". Even knowing that I'm still so far of the greatest developers. Development is the thing that I love to do!I started my contributions with the Microsoft Dynamics community in 2010. At the beginning, I used to help at MSDN and TechNet forums. But now, I'm fully dedicated to this blog!I have the enormous honour of being the only Brazilian who got the award for Microsoft MVP (Most Valuable Professional) for Microsoft Business Applications (Dynamics 365). I have been receiving the award since 2012.In my free time. I like to cook, do some hiking, watch movies/series and when it's possible, travel!
Ver todos os posts por Tiago Michelini Cardoso