Hi,
we’re testing Microsoft Graph on one of our OL Connect servers and I’m trying to use a M365 email input to retrieve multiple files. I’ve read up and believe this is how my process should look but am open to suggestions to get it working. Appreciate this is a bit long winded - and I can only apologise…We’ve never tried this before so I’m completely stuck and would value any help…
Workflow is as follows.
Step1: M365 Email Input
Step2: XML splitter - split on node: Email/Files/File/Type
Step3: Branch with Text condition: xmlget(‘/Email/Files/File/Type’,Value,KeepCase,Trim) contains ‘Attachment’
Step4: Set job infos:
%7 = xmlget(‘/Email[1]/Files[1]/File[2]/Filename[1]/@OriginalName’,Value,KeepCase,Trim)
%8 = xmlget(‘/Email[1]/Files[1]/File[1]/Folder[1]’,Value,KeepCase,Trim)
%9 = xmlget(‘/Email[1]/Files[1]/File[2]/Filename[1]’,Value,KeepCase,Trim)
Step5: Load external file: %8%9
Step6: Send to folder: %7
I then send an email, it gets picked up and I get…nothing. Snippet from the log (can post the whole thing if it helps):
INFO : 09:11:02.372 [0004] File split to: C:\ProgramData\Objectif Lune\PlanetPress Workflow 8\PlanetPress Watch\Spool\5.tmp\xml010PIWTI8LVZP01\000000003.xml
DEBUG: 09:11:02.403 [0004] Current loop index: 2
DEBUG: 09:11:02.403 [0006] Entering branch
DEBUG: 09:11:02.405 [0010] Starting plugin Set Job Infos and Variables - 09:11:02
DEBUG: 09:11:02.405 [0010] Value: xmlget(‘/Email[1]/Files[1]/File[1]/Folder[1]’,Value,KeepCase,Trim)
INFO : 09:11:02.406 [0010] JobInfo/Variable %8 is set to “”
DEBUG: 09:11:02.406 [0010] Value: xmlget(‘/Email[1]/Files[1]/File[2]/Filename[1]’,Value,KeepCase,Trim)
INFO : 09:11:02.407 [0010] JobInfo/Variable %9 is set to “”
DEBUG: 09:11:02.407 [0010] Value: xmlget(‘/Email[1]/Files[1]/File[2]/Filename[1]/@OriginalName’,Value,KeepCase,Trim)
INFO : 09:11:02.408 [0010] JobInfo/Variable %7 is set to “”
INFO : 09:11:02.408 [0010] Plugin Set Job Infos and Variables completed successfully - 09:11:02 (elapsed time: 00:00:00.003)
DEBUG: 09:11:02.408 [0011] Starting plugin Load External File - 09:11:02
DEBUG: 09:11:02.408 [0011] Filename “%8%9” expanded to “”
ERROR: 09:11:02.408 [0011] W3830: The specified file : , does not exist
ERROR: 09:11:02.408 [0011] Load External File: W1603 : Plugin failed - 09:11:02 (elapsed time: 00:00:00.000)
DEBUG: 09:11:02.408 [0012] Starting plugin Send To Folder - 09:11:02
DEBUG: 09:11:02.408 [0012] Path: C:\emailtest\Filesin
DEBUG: 09:11:02.408 [0012] Parsed path: C:\emailtest\Filesin
DEBUG: 09:11:02.408 [0012] Filename: %7
DEBUG: 09:11:02.408 [0012] Parsed filename:
ERROR: 09:11:02.409 [0012] W3001 : Error while executing plugin: W3223 : Copying file C:\ProgramData\Objectif Lune\PlanetPress Workflow 8\PlanetPress Watch\Spool\5.tmp\job010PIWTIAYC59FB396125.dat to C:\emailtest\Filesin\ failed: Error code 3: The system cannot find the path specified.
ERROR: 09:11:02.409 [0012] Send To Folder: W1603 : Plugin failed - 09:11:02 (elapsed time: 00:00:00.001)
Example on an xml file:
<?xml version="1.0"?> user, test test.user@mywork.com FW: 2026-04-23T07:47:37Z OLCTest365@mywork.com Body C:\ProgramData\Objectif Lune\PlanetPress Workflow 8\PlanetPress Watch\Spool\5.tmp\010PIWN9DCONWF3\ 010PIWN9DCONWF4.html Attachment C:\ProgramData\Objectif Lune\PlanetPress Workflow 8\PlanetPress Watch\Spool\5.tmp\010PIWN9DCONWF3\ 010PIWN9DKAS1F5.txt Attachment C:\ProgramData\Objectif Lune\PlanetPress Workflow 8\PlanetPress Watch\Spool\5.tmp\010PIWN9DCONWF3\ 010PIWN9DV0ZGF6.txt Attachment C:\ProgramData\Objectif Lune\PlanetPress Workflow 8\PlanetPress Watch\Spool\5.tmp\010PIWN9DCONWF3\ 010PIWN9E5JFHF7.txt