Skip to main content
neeleshj2272
September 15, 2023
Solved

Convert Data From Global Temporary Table to Excel

  • September 15, 2023
  • 14 replies
  • 0 views

I am trying to get a temporary table data by executing a stored procedure. This stored procedure is responsible to create a temporary table, insert some hard cored values (id and name as fields) and then dropping the temporary table. Before dropping Inam using select all statement so to get my data before dropping the table. But somehow I got the data which is similar to this,

{

{ id = 1, name = Abc },

{ id = 1, name = Pqr },

{ id = 1, name = Uvw },

{ id = 1, name = Xyz },

{ id = 1, name = Ijk }

}

It looks like 2D list of map. can anyone help me in binding the data to excel using Export DataStoreEntity to Excel and Execute Stored Procedure smart services.

Best answer by mathieud0001

Not possible to map a DSE to a temp table AFAIK.

I would simply add a column for the username in the table and use that as a filter for the export. Delete the data linked to the user after the export.

Of course this approach would depend on the amount of users in the system as well as the quantity of data we are talking about but it is pretty much the only approach I can think of that could work.

14 replies

mikes0011
Brainy
September 15, 2023

You'll need to use the Export DSE to Excel node prior to dropping the temporary table.  Assuming the temporary table looks like what you're wanting, that should be sufficient.

neeleshj2272
September 16, 2023

[mention:126a676c85024855948336691b0a7b92:e9ed411860ed4f2ba0265705b8793d05]

How to create a DSE for a Temporary table which we created using stored procedure execution?

mathieud0001
Brainy
September 16, 2023

Instead of dropping and recreating the table why not just create it once and map the CDT and just truncate and re-insert the data?

September 16, 2023

If this is the case I would prefer using sql to excel smart service. Since your number of columns are less, you can simply call that procedure in the sql input of the smart service.

pravendrak0001
September 16, 2023

This smart service is also deprecated

September 16, 2023

There is a new version of this plugin, which is not deprecated.