<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: How to get result after CRUD  on Database element?</title><link>https://answers.axonivy.com/questions/2150/how-to-get-result-after-crud-on-database-element</link><description>&lt;p&gt;Hi all
In my situation, i use a Database Element to write data like below picture.
And then now i want to know whether my insert query is sucess or not in Code tab.
Or in general way, i need to know the status of CRUD in that tab.
&lt;img alt="alt text" src="http://answers.axonivy.com/upfiles/db.png"&gt;&lt;/p&gt;
&lt;p&gt;Does anyone know?
Thanks&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/2150/how-to-get-result-after-crud-on-database-element" rel="self"></atom:link><language>en</language><lastBuildDate>Mon, 31 Oct 2016 02:01:28 -0400</lastBuildDate><item><title>Answer by trungdv</title><link>https://answers.axonivy.com/questions/2150/how-to-get-result-after-crud-on-database-element/2152</link><description>&lt;p&gt;i already had answer: we can use field &lt;em&gt;lastInsertedId&lt;/em&gt; to get Id of object we just persist to DB. and it just for Write Query type
Thanks all&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">trungdv</dc:creator><pubDate>Mon, 31 Oct 2016 02:01:28 -0400</pubDate><guid>https://answers.axonivy.com/questions/2150/how-to-get-result-after-crud-on-database-element/2152</guid></item></channel></rss>