Hi Everyone,
We’re working with Epicor Kinetic Cloud and have a requirement to check if a file exists in a SharePoint Online folder from within a Kinetic Function / BPM before proceeding further in our process.
So far, I’ve tried looking into Ice.BO.AttachmentSvc methods, and I see there’s a SpFileExists method that looks like it could be used for this purpose. The method signature expects the following parameters:
SpFileExists_input {
docTypeID* string // Document type or empty if default
parentTable* string // Table where attachment belongs
fileName* string // Path to the file on the server/SharePoint
}
Questions:
- Has anyone successfully used any method to check a fileExists in sharepoint location from kinetic function ?
- Has anyone successfully used
AttachmentSvc.SpFileExistsfor SharePoint Online document types? - For
docTypeID, do we pass the Attachment Type ID configured in Attachment Type Maintenance (with SharePoint Online auth)? - What should
parentTablebe if we just want to check file existence without linking it to a specific record? - Any code snippets or working examples of calling this from a Kinetic Function would be really helpful.
Goal:
From a Kinetic Function, Check FileExists SharepointLoaction Example(https://XXXXX.sharepoint.com/sites/EpicorData/Folder1/File1.pdf"
and return a simple true/false if a file exists in a given SharePoint folder path.
Thanks in advance! ![]()
