打开一条记录判断当前人对些记录的权限?

全般的な情報交換 打开一条记录判断当前人对些记录的权限?

  • Thursday, August 02, 2012 2:09 AM
     
     

    我现在需要做这样的事情。打开一条记录,判断当前人对当前记录的权限 :能否更新,能否删除,能否分派,能否共享 怎么实体


    windows live Id :hellohongfu@hotmail.com

All Replies

  • Thursday, August 02, 2012 4:33 PM
     
     

    假如是2011的话, File ---> Properties

  • Sunday, August 05, 2012 4:46 AM
     
     

    在IE中打开CRM一条记录,你回复的可能是文件吧


    windows live Id :hellohongfu@hotmail.com

  • Friday, August 10, 2012 11:20 PM
     
     

    这就是打开一条记录时, 所显示的该用户的权限, 

  • Wednesday, August 15, 2012 9:47 AM
     
     

    俺只用过3.0.

    在OnLoad事件中处理

  • Thursday, August 16, 2012 10:45 AM
     
     
    看明白你说的了,我想在代码里得到这些值可以做到吗?

    windows live Id :hellohongfu@hotmail.com

  • Thursday, August 16, 2012 10:45 AM
     
     
    怎么做的?发出代码看看

    windows live Id :hellohongfu@hotmail.com

  • Tuesday, August 21, 2012 2:02 PM
     
      Has Code

    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


    • Edited by Jaimie_J Tuesday, August 21, 2012 2:09 PM
    •  
  • Thursday, August 23, 2012 7:00 AM
     
     

     太感谢你了,解决了


    windows live Id :hellohongfu@hotmail.com