locked
Fetch system administrator security role in different base language in dynamics 365 crm RRS feed

  • Question

  • Hi,

    We are trying to fetch system administrator security role by its role name . We have applied below condition :

    "<entity name='role'>" +
        "<attribute name='name' />" +
        "<attribute name='businessunitid' />" +
        "<attribute name='roleid' />" +
        "<order attribute='name' descending='false' />" +
        "<filter type='and'>" +
         "<condition attribute='businessunitid' operator='eq-businessid' />" +
          "<filter type='or'>" +
            "<condition attribute='name' operator='eq' value='System Administrator' />" + // English
             "</filter>" +
        "</filter>" +
      "</entity>" +
    "</fetch>";

    However , For different base language CRM it is not working as we are getting different system administrator role name for different language. We tried to fetch it by "System Administrator" security role GUID , But it is also different in every language. How can we fetch it for different language by any unique parameter?

    Thanks in advance!

    Wednesday, July 5, 2017 12:27 PM

All replies

  • That's an interesting question. You might be able to identify it from the roletemplateid and roletemplate, though I'm not sure if they are available in fetch


    Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk

    Thursday, July 6, 2017 11:12 AM
    Moderator
  •  Thanks! but we could not find roletemplateid and roletemplate . Could you please tell us from where we can find roletemplateid and roletemplate ?

    Thank you.

    Friday, July 7, 2017 1:01 PM