AnsweredAssumed Answered

How to have a variable, include paragraph returns then save as a file on server?

Question asked by Tom_Droz on Feb 7, 2019
Latest reply on Feb 7, 2019 by comment

I have a script that creates a variable ($photo_list) collecting data from multiple records.  It then modifies the variable with a set field (container)  TextEncode ( $photo_list ; "utf-8" ; 4 )   This places a paragraph return in the data so that it is correctly formatted for a 3rd party user.  I can then export that field and save it as a file, it is perfect like this:

 

testcars,K75078,02/07/2019 11:59:00 AM,http://www.bestbuycarsales.com/images/watermarked/K75078a.jpg

testcars,K75078,02/07/2019 11:59:00 AM,http://www.bestbuycarsales.com/images/watermarked/K75078b.jpg

testcars,K75078,02/07/2019 11:59:00 AM,http://www.bestbuycarsales.com/images/watermarked/K75078c.jpg

testcars,K75078,02/07/2019 11:59:00 AM,http://www.bestbuycarsales.com/images/watermarked/K75078d.jpg

testcars,K75078,02/07/2019 11:59:00 AM,http://www.bestbuycarsales.com/images/watermarked/K75078e.jpg

testcars,K75078,02/07/2019 11:59:00 AM,http://www.bestbuycarsales.com/images/watermarked/K75078f.jpg

testcars,K75078,02/07/2019 11:59:00 AM,http://www.bestbuycarsales.com/images/watermarked/K75078g.jpg

testcars,K75078,02/07/2019 11:59:00 AM,http://www.bestbuycarsales.com/images/watermarked/K75078h.jpg

 

On server this is not an allowed script step.  So my question is, how do I perform a similar function of text encoding on server, then save the results as a file?

 

Any thoughts or insight is greatly appreciated!!

 

Tom

Outcomes