<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>How to add rows of value to database</title><link>https://community.appian.com/discussions/f/new-to-appian/22074/how-to-add-rows-of-value-to-database</link><description>I have list of value, how to add lists of variables to back end of database, click one button, add or update many rows.</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to add rows of value to database</title><link>https://community.appian.com/thread/86455?ContentTypeID=1</link><pubDate>Thu, 30 Sep 2021 06:32:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7c660414-b165-43a4-9d93-63d2ce59594a</guid><dc:creator>Aditya</dc:creator><description>&lt;p&gt;Do you have the list of values stored in a CDT variable?&lt;/p&gt;
&lt;p&gt;If yes, you can use&amp;nbsp;a!writeDataStoreEntity() in the saveInto parameter of a button to add/update all the rows in the table.&lt;/p&gt;
&lt;p&gt;If you have multiple CDT variables and you need to add/update rows in multiple tables, use&amp;nbsp;a!writeToMultipleDataStoreEntities() in the saveInto parameter of the button.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you do not have the list of values stored in a CDT variable, you can create a stored procedure in your database, pass all your variables to the stored procedure from Appian using the execute stored procedure plugin and let the procedure do all the adds and updates. Call the execute stored procedure plugin on button click. That way, one button click will allow you to add/update multiple rows.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>