Checkster our screening vendor’s web service API allow us to retrieve the candidate PDF report and attach it to the Talent Management resource screening package. Unfortunately, when we select the Ming.le ResultsDocumentation.File link, the PDF document appears corrupted. The document properties appear intact, the title displays along with the correct number of pages, but all the pages are blank.
An IPA Web Run activity GetPdfReport issues a GET to the ../report/PDF Web program and the binary PDF document is returned. The Landmark Transaction attaches the result PDF to the ResourceScreeningPackage business class.
_dataArea="LMGHR" &
_module="hr" &
_objectName="ResourceScreeningPackage" &
_actionName="Update" &
_actionOperator="NONE" &
_actionType="SingleRecordQuery" &
_runAsUser="" &
_authenticatedUser="" &
_pageSize="30" &
_relationName="" &
_setName="" &
_asOfDate="" &
_effectiveDate="" &
HROrganization="XXXX" &
ResourceScreeningPackage="NNNN" &
Status="5" &
StatusDate="YYYYMMDD" &
ReceivedDate="MM/DD/YYYY HH:MM" &
CloseDate="MM/DD/YYYY HH:MM" &
ResultStatus="Completed" &
ReportResultsURL="MyFilenameHere.pdf" &
ResultsDocumentation.Title="Report for First Last YYYYMMDD" &
ResultsDocumentation.MimeType="application/pdf" &
ResultsDocumentation.File="<!GetPdfReport_result>"
I added content-type=application/pdf to GetPdfReport without success (the response header is a consistent Content-Type=[application/json]). No work unit errors and the log appears as expected. I can attach a text/json report which downloads successfully. I can also access the PDF API outside of Infor without trouble.
Many thanks for any insight or suggestions on what I may have missed.