Attaching a pdf file to employee record in GHR.

 6 Replies
 0 Subscribed to this topic
 52 Subscribed to this forum
Sort:
Author
Messages
adnan512
Advanced Member Send Private Message
Posts: 24
Advanced Member

Hello guyz

I am trying to write an IPA to attach pdf documents to employee rercord in GHR. It looks like data is sitting in a EmployeeDocument business class. Please see copy and paste from LMK node below. I am passing file locatoin but system is just attaching a blank pdf and not actaully uploading from an actual file location. Any help will be appreciated.

tx

 

David Williams
Veteran Member Send Private Message
Posts: 1127
Veteran Member

You need to write the file to the Landmark server and then attach it from there. You will reference the file using file://folder/filename.

David Williams
John Henley
Send Private Message
Posts: 3353

It also depends on if you are on-premises Landmark vs. CloudSuite multi-tenant (MT). The preferred solution going forward is to store all attachments in Infor Document Management (IDM), and link to them from Landmark. You do that from IPA by uploading to Landmark "file storage" and uploading using an IDM node.

Thanks for using the LawsonGuru.com forums!
John
adnan512
Advanced Member Send Private Message
Posts: 24
Advanced Member

Yes file is actually sitting on a landmark server.

adnan512
Advanced Member Send Private Message
Posts: 24
Advanced Member

Do you have a code example for lmk transaction node. We are ST and the file is locally present on LMK server. We are not using IDM currenlty so I want to attached the file to EmployeeDocument business class. I have 5000+ files that I need to attached to diffrent associate records. File name has associate ID so that part is not a problem.

adnan512
Advanced Member Send Private Message
Posts: 24
Advanced Member
Does Russ Cornelson have a solution.?
Randy
Veteran Member Send Private Message
Posts: 50
Veteran Member

How I do this is as mentioned above.

Start variable "EmailAttach" = "\\\\\\\\" for us that is "\\\\lws-app-11\\EmailAttach$\\listusermap.csv". We use admin share "EmailAttach$" on the LM server because IPA runs under Lawson account and Lawson account is an Admin of the server. Then in the email node, Attachments tab, Attachment =