Hello,
I am trying to upload PDF documents to the EmployeeDocument business class in GHR.
So far my attempts are just creating a text file. I'm using a landmark transaction node and attempting a create.
Hi Josh,
I mocked up a quick test using the LM Transaction below and was successful.
Are you trying to specify the DocumentFile.File field as an object in memory (e.g. File Access output) or are you specifying an explicit file path?
My test below used an explicit file path prefixed with "file://".
_dataArea="lmghr" & _module="hr" & _objectName="EmployeeDocument" & _actionName="Create" & _actionOperator="NONE" & _actionType="SingleRecordQuery" & _runAsUser="" & _authenticatedUser="" & _pageSize="30" & _relationName="" & _setName="" & _asOfDate="" & _effectiveDate="" & HROrganization="HR ORG HERE" & Employee="EMPLOYEE ID HERE" & DocumentFile.File="file:// PATH TO FILE HERE" & DocumentFile.Title="DOCUMENT TITLE HERE"
We upload Invoice PDFs as part of our Invoice Approval process. The only part we add that you don't have on here is the mime type: & Attachment.MimeType="<!MimeType> where MimeType is most likely "application/pdf" but it could be something else if you have different Mime Types Configured.
Thank you Andy I actually was able to get assistance from xtreme but I had the format of the file name incorrect and I needed to add the Mime type. I had the prefix incorrect. thank you for taking the time to respond!
Would you mind showing us what worked? I have the same situation and I can't seem to update the business class with the attachment. My file is in File Storage and I check for it before I try to add it. I am not sure what kind of path to use for File Storage.
What format for the file did you have to use?