Dynamics CRM 365 RDL报表,SQL模拟指定用户身份,获取当前用户ID
SQL模拟指定用户身份:在查询前加上这句就行
declare @userid uniqueidentifier ='' set context_info @userid
获取当前用户ID,函数:dbo.fn_FindUserGuid()
select fullname from FilteredSystemUser where systemuserid = dbo.fn_FindUserGuid()
原文:https://crmtipoftheday.com/44/reflecting-current-user-ssrs/
记得收藏并关注,掌握更多相关知识!!!