Skip to main content
Nintex Community Menu Bar
Question

Set Variables on new XML files being deposited into library

  • December 12, 2024
  • 1 reply
  • 19 views

Forum|alt.badge.img+4
  1. I have a library that houses XML files. 
  1. These files are retrieved from a Network Drive and through PowerShell and a Scheduled Task will deposit any new files located in this Network Drive and dump a copy into the SharePoint Library.
  2. Once any new files it will trigger the workflow to render the XML file content into a SharePoint list item. I have almost everything working, but right now I have the Set Variables at the start of the workflow with 

    but it is hardcoded in the value to a specified file for testing purposes EX: https://local/XMLFilesFromFactoryLogix/20241015114157.xml. How should I have it set to that it processes any new XML files into the library? Can I use a wildcard? (*)

1 reply

SimonMuntz
Nintex Employee
Forum|alt.badge.img+23
  • Nintex Employee
  • December 13, 2024

Hi ​@jamvan,

Instead of adding the file to a variable, access it directly in the library using the Query XML action.
https://help.nintex.com/en-US/nintex2019/current/sp2019/Workflow/ActionsCore/ReadXML.htm

Set the XML source in the action as current item and the file will be read directly from the library.