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'
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'