From FlowFile insert into MySQL, how do I return auto increment id value as flowfile attribute in Apache Nifi ?
Dear all,
I have a query regarding the insertion of a flowfile into a MySQL Database. Specifically, I would like to know how to retrieve the auto-incremented ID from the database and store it as a flowfile attribute.
Consider the following example flowfile (representing one record, with many more records in reality):

My goal is to insert this data into 'table1,' which has an auto-incremented ID field (let's assume that after insertion, the ID will be 3001). Could you please guide me on how to retrieve this auto-incremented ID and assign it to a flowfile attribute?

