A little extension to it if you are getting the query as single string
Then just split the string with 25 charqcters or 50 charqcters and then add newline character between it …ao that any lobg atring converts to thw size you need
I am attaching the sample file to under stand the string manipulation logic I had suggested. I have created 2 different sample notepad files one where the string with VbNewline will be written and in another without.
Note : Configure the File path before debugging the workflow, Also instead of writing into a file you can use the string in Type INto as well. It would work just the same.
Hope this helps you understand it better.! Let me know if there is any further help required. TestProcess.zip (3.2 KB)