admin管理员组

文章数量:1122847

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'

 

本文标签: 表单实体用户CRMDynamics