Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Retrieve id once insert new data into database

faiqz
8 - Asteroid

Hiii. I would like to know if there are any ways we could retrieve the ID once we insert new data into table? Because the previous ID will be inserted into another connecting table together with another ID from another tables. 

3 REPLIES 3
Raj
16 - Nebula

you can try this,

use the "Output Data" tool in Alteryx. In the configuration window of the tool, you can specify the database connection, table name, and columns to insert data into. You can also select the option "Enable Write Back" and specify the primary key column of the table.

Once you have configured the "Output Data" tool, you can connect it to a "Select" tool that retrieves the newly inserted record based on its primary key value. You can then use the "Record ID" tool to generate a new ID for the connecting table and combine it with the retrieved primary key value using a "Join" tool.

faiqz
8 - Asteroid

Hi, may I know where the option for Enable Write Back at output tool?

faiqz
8 - Asteroid

hi @Raj , may I know where the option for Enable Write Back at output tool?

Labels