Sounds like you’re trying to, on a Update method of whatever BO your dashboard is triggering, write something to a file?
You’ll want to execute a custom code block and potentially use the System.IO.File.WriteAllText method from your LINQ results to write the data you’ve gathered to a file.
I’d hesitate to go down this path unless there is a good business reason to do so. What are you actually trying to accomplish by exporting some data when the Update method of your BO is triggered? There might be a better solution.
Is this for some sort of a change log?
This can be done however be extremely weary of performance. IO Is one of the slowest operation a computer can do so hanging a synchronous write operation of any BO will heavily affect performance.
You can use what @Aaron_Moreng suggested to write to the file, remember that all BPM’s run server side so any file will likely have to be written to a network share or a location on the server.
minding what the previous two posters mentioned about performance etc… and if possible, go asynchronous with this, but if your business needs warrant the file here is an example of how to do that from a post process update in an baq method update. Also, you’ll need an entry on the usings tab System.IO;