##PortaltoSAIL Can we use, user as a context in getPortalReportDatasubset f

##PortaltoSAIL
Can we use, user as a context in getPortalReportDatasubset function?

getPortalReportDatasubset(
reportId: cons!REPORT_ID,
pagingInfo: local!pagingInfo,
contextIds: {ri!userName},
filters: {}
)

Note: ri!userName is of type user

Thanks!

OriginalPostID-149529

OriginalPostID-149529

  Discussion posts and replies are publicly visible

Parents
  • @janakik I guess the user can't be provided as a context, as the plugin documentation states that 'contextIds' parameter is intended for providing Group or Process or Process model ids and also mentions that 'Reports with user context will runs as the logged in user'. I feel that you can't provide user as a context here based on the documentation and the type of context.

    Probably you could think of adding the user as a filter, which indirectly serves you the purpose of context.
Reply
  • @janakik I guess the user can't be provided as a context, as the plugin documentation states that 'contextIds' parameter is intended for providing Group or Process or Process model ids and also mentions that 'Reports with user context will runs as the logged in user'. I feel that you can't provide user as a context here based on the documentation and the type of context.

    Probably you could think of adding the user as a filter, which indirectly serves you the purpose of context.
Children
No Data