Tazatel
打开一条记录判断当前人对些记录的权限?
Obecná diskuse
Všechny reakce
-
-
-
-
-
-
-
Hi.
Try this
var accessOptions = { targetEntityName: "contact", targetEntityId: contactId, principalEntityName: "systemuser", principalEntityId: currentUserId }; var retrieveAccessResponse = XrmServiceToolkit.Soap.RetrievePrincipalAccess(accessOptions); alert("The user should have access to the contact record: " + retrieveAccessResponse);contactId是当前记录的id, currentUserId是当前用户id. 这两个值自己编写下吧(Xrm方法就可以)。
Jaimie
-