Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Posting the below payload to http://server:port/01/CRMSVRequest/1021?action=report will run the report named "CRM SV Inventory Requirements" with a from/to parameters of 1021 and create an Attachment by the name of "My Report" which will replace an existing attachment called "My Report" should one exist, and it will also return the generated PDF as a response to my call.

HTMLtable
alignleft

<?xml

version="1.0"

encoding="UTF-8"?>

<AHFormDefn>

<Name>CRM

SV

Inventory

Requirements</Name>

<Parameters

collection='true'

count='2'>

<AHParameter>

<Name>From

Service

Request

Number</Name>

<Value>1021</Value>

</AHParameter>

<AHParameter>

<Name>To

Service

Request

Number</Name>

<Value>1021</Value>

</AHParameter>

</Parameters>

<Attachment>

<Name>My

Report</Name>

<Summary>A

nice

summary</Summary>

<Type>Any</Type>

<ReplaceIfExists>true</ReplaceIfExists>

<RespondWithAttachment>true</RespondWithAttachment>

</Attachment>

</AHFormDefn>

 

Beware that some reports may take significant time to execute, and your call to the API may timeout prior to the completion of the report execution.  The report execution itself has a default timeout of 60 seconds as it waits for the report to complete, you can override this by passing a query parameter of "timeout=n" where n is a value in seconds.

...