admin 管理员组

文章数量: 887017

1.实体ObjectTypeCode查询

SELECT [ObjectTypeCode] FROM Entity WITH(NOLOCK) WHERE name='EntityName'

2.表单共享用户的查询  

--PrinciplId是SystemUserId
SELECT PrincipalId,PrincipalTypeCode,AccessRightsMask
FROM PrincipalObjectAccess  WITH(NOLOCK) 
WHERE  
OBJECTTypeCode= (SELECT [ObjectTypeCode] FROM Entity WITH(NOLOCK) WHERE name='EntityName')
AND ObjectId='EntityRecordId'

 

本文标签: 表单 实体 用户 CRM Dynamics