I am using a process model to export data from the database to a spreadsheet. I am not using the export in the record type, just to be clear. When selecting the fields using the a!querySelection -> a!queryColumn, this immediately pulls the data and exports to a new spreadsheet, with no way of adding code to process it. If I have a CDT that has, for example, twenty fields, and one of those fields contains an employee ID. How can I, or is it even possible, to use an expression rule that takes an ID parameter, and outputs the actual employee name? There doesn't seem to be a path forward on this. I've looked through the process model, all the different query types, etc., but no way to pull the data, then process that data, before outputting to the spreadsheet.
Just to make sure this is clear, I already have the expression rule to process the data, I just have nowhere to do it and if there is a way to do it, I have not found it.
Any help will be greatly appreciated.
Thanks.
Discussion posts and replies are publicly visible
you could build a View (join between the two tables) , use Query on the View and then export the result to a Excel
This wouldn't work because I don't want to show a hundred columns in the table. There are only some columns that should be viewable in the table, the rest, depending on the user, will only see all of them in the spreadsheet.
When you query the view , you can use a a!querySelection(columns) to return only the specific columns in the view/table.
Also, when doing it from the view, it will not export because of the column limit.