<?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 write to the database from an interface....</title><link>https://community.appian.com/discussions/f/new-to-appian/21500/how-to-write-to-the-database-from-an-interface</link><description>Hi, Im new to Appian. Id like to add to my cloud database from an interface! However, I have a primary key thats auto incremented in the table and cant be null. So how do I add from my interface? Should I use an expression rule? query it? I dont know</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to write to the database from an interface....</title><link>https://community.appian.com/thread/84009?ContentTypeID=1</link><pubDate>Sat, 24 Jul 2021 17:08:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ec31ac62-0fce-4bbe-93ad-6637eb92479f</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;I suggest to start with going through the Appian tutorials. This will teach you the basics.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/21.2/Tutorials.html"&gt;docs.appian.com/.../Tutorials.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to write to the database from an interface....</title><link>https://community.appian.com/thread/84008?ContentTypeID=1</link><pubDate>Sat, 24 Jul 2021 16:27:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5ad86688-eb48-4895-83eb-8d9355795b08</guid><dc:creator>ashleym0002</dc:creator><description>&lt;p&gt;Im writing this in the Query....&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to write to the database from an interface....</title><link>https://community.appian.com/thread/84007?ContentTypeID=1</link><pubDate>Sat, 24 Jul 2021 16:25:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0b5e3ecd-6995-471b-a811-b6f6f8d55d4b</guid><dc:creator>Shyam Bommakanti</dc:creator><description>&lt;p&gt;Configure&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/21.2/Write_to_Data_Store_Entity_Smart_Service.html#a!writetodatastoreentity()" rel="noopener noreferrer" target="_blank"&gt;a!writetodatastoreentity()&lt;/a&gt;. You can save the response using&amp;nbsp;&lt;span&gt;fv!storedValues it will have the id populated (generated) by DB auto increment.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;From documentation&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;quot;You must also designate a field in the CDT as your record ID (primary key) and specify an existing value, or the data written is always inserted as a new record.&amp;quot;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>