Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagexml
titleFindConvertAndSave
linenumberstrue
collapsetrue
<Query>
  <Find>
    <VendorInfo>
      <vName ne=""/>
    </VendorInfo>
  </Find>
  <SetProcessData key="toCSV.result" value="Name,Title,Location[:EOL:]"/>
  <For Each="val" In="Find.Result.VendorInfo">
    <SetProcessData key="toCSV.result" Value="[:$ProcessData.toCSV.result:][:$LocalData.val.vName:],[:$LocalData.val.vTitle:],[:$LocalData.val.vLocation:][:EOL:]"/>
  </For>
  <SaveFile>
    <FilePath>
      ./resources/querydata.csv
    </FilePath>
  </SaveFile>
</Query>
Code Block
languagexml
titleSave Query Output to a File
linenumberstrue
collapsetrue
<Query>
  <Find>
    <VendorInfo>
      <vName ne=""/>
    </VendorInfo>
  </Find>
  <SetProcessData key="toCSV.result" value="Name,Title,Location[:EOL:]"/>
  <For Each="val" In="Find.Result.VendorInfo">
    <SetProcessData key="toCSV.result" Value="[:$ProcessData.toCSV.result:][:$LocalData.val.vName:],[:$LocalData.val.vTitle:],[:$LocalData.val.vLocation:][:EOL:]"/>
  </For>
  <SetLocalData key="FILE" value="#o'resources/querydata.csv'#"/>
  <Log>[:[:$LocalData.FILE:][:$ProcessData.toCSV.result:]:]</Log>
</Query>

Finally to View the file:

...