IDMReportResult

CreateIDMReport function returns the result as an IDMReportResult class. The IDMReportResult properties are as shown in the below table, and can be used in alert messages for debugging issues.
Properties Description
IDMDoc_ITEM_ID

ITEMID of IDM Document which contains generated report.

User can search in IDM in the Target Doc Code using ITEMID Attribute to get generated report.

IDMDoc_URL

Doc URL of IDM Document which contains generated report.

User can use that URL to redirect to IDM Document directly.

IDMDoc_JobId Job ID is used to see the status of the job. User can see the status of the job, error messages and data related to job in Job Management in IDM.
FileData FileData will have Report File as bytes array. It only applicable if ReturnFileContent is set to true.
ErrorMessage ErrorMessage will have an error message in case of failure.

Example debugging messages:

Messagelist(reportResult.ErrorMessage)
messagelist("ITEMID - " & reportResult.IDMDoc_ITEM_ID)
messagelist("IDM Document URL - " & reportResult.IDMDoc_URL)
messagelist("Job ID - " & reportResult.IDMDoc_JobId)