I have multiple workflows that create an entry in the repository and attach text to that entry via the page text functionality. Some of these are basic text, some are formatted as CSV data, and some is HTML code.
I am using Scripting activities to attach the text to the entries.
This works, but it isn't completely ideal for every case, particular the CSV and HTML use cases. In order to work with the data later on, it has to be copied out of the repository and saved as a text file with a CSV or HTML file extension in order to view it "normally".
It would be so much better if I could create the text file in Workflow, with the proper file extension, and then attach it to the entry as an electronic document. But I can't figure out how to do that.
I do have experience creating Word documents and attaching those using the built-in activities in Workflow, but there doesn't seem to be any activities for other types of files, like text, CSV, or HTML files.
Does anyone have any experience with this, or have any suggestions on how something like that might be possible?
Thank you!