I’m trying to find a way to pass the current user ID to be printed on a canned SSRS report (not BAQ Reports). It can be Sales Order Acknowledgement. I looked at RDD, report parameters and various tables E10 creates but nothing seems to hold the UserID that submitted the report. Any ideas?
Hi Adam, thank you for the reply. It’s exactly what I was looking for, except that when I tried to bring the CallContextClientData table into the report I get an error. I do not see that temp table in the database either. Is this a feature beginning with certain version? I’m on 10.0.700.4.
Program Ice.Services.Lib.RunTask raised an unexpected exception with the following message: RunTask: An error has occurred during report processing. —> Microsoft.ReportingServices.ReportProcessing.ProcessingAbortedException: An error has occurred during report processing. —> Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for dataset ‘DataSet1’. —> System.Data.SqlClient.SqlException: Invalid object name ‘CallContextClientData_51af3b26248c4fc7915d22c164517242’.
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at Ice.Core.SsrsReportService.ReportExecutionService.Render(String Format, String DeviceInfo, String& Extension, String& MimeType, String& Encoding, Warning[]& Warnings, String[]& StreamIds)
When you run the report, have you tried setting the Archive Period to anything but 0 days? That should leave the temp table visible in the AppServerNameReports database. But it very well may be a later version feature… Just to confirm, did you change the datasource to the one the report uses on your new dataset?
I concluded this feature is not available in my version. I tested with 10.2.300 and verified that both CallContextBpmData and CallContextClientData tables are created.
@Asz0ka
I need to print data from CallContextClientData_ as well so I was hopeful this would work, but it doesn’t in 10.2.600 (Cloud).
What is interesting is the CallContextClientData_ tables are valid in the DataSource but it does not appear to have any data. I created the CallContextClientData DataSet and entered a query that should return the values and setup the fields. But when I put them on the report I no values are returned.
If the tables did not exist in the DataSource I should have rec’d an error about a DataSet failing, but I didn’t, so the tables are there but they do not contain any data.
I wonder if this is a bug or something Epicor is no longer supporting.
It is still supported but not all the CallContext fields are being set when the Kinetic version of the submission Form is used. The issue has been submitted to Dev under story ERPS-144817 and will be accepted for resolution.
The ERP SSRS are generated and then stored on the Server as a completed document. The Epicor User ID that submitted the report is in play during the generation but the Windows User during the actual report gen will be the User Assigned to the AppServer Service. If you want the Windows User ID (and you are using the Smart Client Submission UI) you can pass that information in one of the BPMData fields.
There is no logic executed when a report is printed so the user doing the printing would not be included on the report output.