In Strategy Intelligence Server SDK 9.2.1, IDSSReportInstance3::MessageID can be used to retrieve message ID. A special flag DSSReportCreateInBoxMsg needs to be assigned when executing the report.
The following is a sample code that explains the usage.
'--------------------------------------------------
' Obtain a Report Server.
Set MyReportServer = _
MySession.Component(DssRoleReportSource)
'--------------------------------------------------
' Obtain a report instance.
Dim myReportInstance As IDSSReportInstance
Set myReportInstance = _
MyReportServer.NewInstance(MyReportDef)
'--------------------------------------------------
'execute report
Call MyReportServer.Execute( _
myReportInstance, DssActionExecuteAll, _
DssReportRunSynch + DssReportCreateInBoxMsg)
'--------------------------------------------------
'retrieving message ID
Dim MyMessageID
MyMessageID = myReportInstance.MessageID
MsgBox MyMessageID
MsgBox "Done"
Code Customization:
WARNING:
This customization is provided as a convenience to Strategy users and is only directly applicable to the version stated. While this code may apply to other releases directly, Strategy Technical Support makes no guarantees that the code provided will apply to any future or previous builds. In the event of a code change in future builds, Strategy may not be able to provide additional code on this matter even though this customization is provided at this time for this specific build.