Skip to main content
Run reports, set favorites, labels.

Constructors

NSReportAgent()

Run reports, set favorites, labels.

Methods

CreateDefaultReportEntity()

Sets default values into a new NSReportEntity.
Returns: CRMScript.NetServer.NSReportEntity
NetServer calculates default values (for example, Country) on the entity, which is required when creating/storing a new instance
Example:

CreateDefaultReportLabelLayoutEntity()

Sets default values into a new NSReportLabelLayoutEntity.
Returns: CRMScript.NetServer.NSReportLabelLayoutEntity
NetServer calculates default values (for example, Country) on the entity, which is required when creating/storing a new instance
Example:

CreateFavorite(Integer,String,String)

Creates the report as favorite.
Returns: CRMScript.NetServer.NSReportEntity Example:

DeleteFavorite(Integer)

Deletes the report favorite.
Returns: CRMScript.Global.Void

DeleteReport(Integer)

Deletes the report with the given ID.
Returns: CRMScript.Global.Bool Example:

DeleteReportLabelLayoutEntity(Integer)

Deletes the NSReportLabelLayoutEntity
Returns: CRMScript.Global.Void Example:

GenerateReport(Integer,Integer,String,String,String,NSArchiveRestrictionInfo[])

Generates the report in PDF format.
Returns: CRMScript.Global.String Example:

GetReportEntity(Integer)

Gets an NSReportEntity object.
Returns: CRMScript.NetServer.NSReportEntity Example:

GetReportLabelLayoutEntity(Integer)

Gets an NSReportLabelLayoutEntity object.
Returns: CRMScript.NetServer.NSReportLabelLayoutEntity Example:

ImportReport(String)

Takes the input stream and create a report. This stream must be on a valid XML format.
Returns: CRMScript.Global.Integer Example:

SaveReportEntity(NSReportEntity)

Updates the existing NSReportEntity or creates a new NSReportEntity if the id parameter is 0
Returns: CRMScript.NetServer.NSReportEntity Example:

SaveReportLabelLayoutEntity(NSReportLabelLayoutEntity)

Updates the existing NSReportLabelLayoutEntity or creates a new NSReportLabelLayoutEntity if the ID parameter is 0.
Returns: CRMScript.NetServer.NSReportLabelLayoutEntity - The new or updated NSReportLabelLayoutEntity. Example:

UpdateFavorite(NSReportEntity)

Updates the favorite.
Returns: CRMScript.NetServer.NSReportEntity Example: