
FrankL.41685 (Customer) asked a question.
Okta Workflows - Text output to CSV or list
Hey all,
Is there a way to transform a text output (with comma separated values) to a CSV file to use the import card. Or to turn it into a list so I can use For Each?
Thanks,
Frank

@FrankL.41685 (Customer) What you are asking is possible but each are different and use pretty round-about methods. The main issue is turning type "text" into type "file". You would need to pass it into a table then export the table to make it a type file.
The "list" part is easy. That can be performed with "split". But it really depends on your source data and its structure. For example something like val1,val2,val3 "split" on "," would result in a list:
val1
val2
val3
However, if you have say headers: val1, val2, val3 (return carriage) 1,2,3 (return carriage) a,b,c (return carriage) and so on. It gets more complicated.
Can you provide an example of the "CSV" you want to convert?
Also, the actual use case would help too.
Edit: Additionally, splitting on return carriage was easier than I thought. It is described in the help: https://okta-help.pixtulate.com/wf/en-us/Content/Topics/Workflows/function-reference/Text/text_split.htm