Epicor API

Hi all,

My Epicor attachment is via Share Point. I wanted to find out if there is any available Epicor API that will push the file to Share Point. Currently, it seem like i am only able to create record in xfileref and xfileattach but not the actual file in Share Point.
Anyone have idea how should i do this?

Hi Eddie,
I’m not 100% sure what you are trying to do but the normal way to do attachments in Epicor is via the BO’s which connect to the attachment provider - which in your case is sharepoint.

Are you trying to access the sharepoint files directly in sharepoint? You would use the microsoft graph API to do this.

Cheers
Patrick

You can use the Ice.BO.AttachmentSvc with the Custom Method SpUploadFile to load a file into SharePoint. I also use SpFileExists first to avoid file name conflicts. File needs to be converted to base64. Once the file is loaded to SharePoint I add the link to the file to the Epicor record

1 Like

Thanks for the sharing. @mark.yates then how do we handle the user credential to upload file to share point from the method mentioned?

In Attachment Type Maintenance you set up Base URL and we use Azure Active Directory to handle user credendials. I did not setup the SharePoint side but it uses a Certificate ThumbPrint if that makes any sense.

3 Likes