I have an InfoPath form that consists of 56 questions, and a related comment field for each.
My first attempt was to Query the XML and put each question & comment into it's own variable. The question field is a dropdown with "Yes, No or N/A". That seemed to work fine. I then created a Switch that checked if the question field held a "No". If true, I then use that to Create an Item in another list. I checked the first three questions this way and tested. It worked great.
But when I expanded this to 56 questions the workflow was too big and refused to Publish, and a Save took >5 mins. An "Export" showed a file >1MB. I tried splitting it up and eliminated all but the first 19 questions, variables and adjusted the Query XML. Export was down to 330k, but still won't Publish.
I tried a different tact, and save the Query XML to a collection variable. I'm selecting the "Group" in the XML holding fourteen(14) questions as a test. The XML looks like this: "/my:myFields/my:Safety"
What it returns is this: "YesN/ANoNoYesYesNoN/ANoNoN/AYesYesYes;"
I'd like to create a Loop and parse these out and act on them, but can't figure out the proper Regex for this.
Help please! :-)