<?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>Get Last ID, Insert Into Other Table</title><link>https://community.appian.com/discussions/f/data/27334/get-last-id-insert-into-other-table</link><description>I want to do this 
 get value from multiple select as newRefs; insert into table1 (&amp;#39;name&amp;#39;) values (&amp;#39;pete&amp;#39;); SELECT LAST_INSERT_ID() as newUserId; for each (currentRef in newRef) { insert into lookupTable1 (userId,ref) values (newUserId,currentRef); }</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Get Last ID, Insert Into Other Table</title><link>https://community.appian.com/thread/107306?ContentTypeID=1</link><pubDate>Wed, 01 Feb 2023 14:42:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:48a8aa21-7e62-4217-a35e-813a1f2965ca</guid><dc:creator>petel0001</dc:creator><description>&lt;p&gt;And, according to one or two posts on this site one should not use a stored procedure to write data to a database using Appian as this could result in extra database writes.&lt;br /&gt;see&lt;br /&gt;&lt;a href="/discussions/f/process/12806/is-there-any-way-to-call-a-stored-procedure-having-some-input-parameters-that-updates-writes-to-db"&gt;https://community.appian.com/discussions/f/process/12806/is-there-any-way-to-call-a-stored-procedure-having-some-input-parameters-that-updates-writes-to-db&lt;/a&gt;&lt;br /&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/16/pastedimage1675262568267v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get Last ID, Insert Into Other Table</title><link>https://community.appian.com/thread/107302?ContentTypeID=1</link><pubDate>Wed, 01 Feb 2023 13:51:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a1b9b54e-d3f4-4e05-adea-db581c8c1c16</guid><dc:creator>petel0001</dc:creator><description>&lt;p&gt;This &lt;em&gt;SHOUD &lt;/em&gt;be pretty simple, but for whatever reason this is not working.&lt;br /&gt;I&amp;#39;ll go back to what I said previously, this appears to be a &lt;strong&gt;BUG.&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;This is pretty darn silly, 15+ hours just on something like this.&lt;br /&gt;I thought that one of the benefits of Appian/Low Code was quick development.&lt;br /&gt;I&amp;#39;m pretty sure that had I used SpringBoot for the backend and React for the frontend development that this could be done in that same 15+ hours.&lt;/p&gt;
&lt;p&gt;Given that I&amp;#39;m using the free community edition in the cloud there is little I can do to see what is actually happening in the background.&lt;br /&gt;I guess I&amp;#39;ll look into creating a Stored Procedure/Function in the MySQL/MariaDB database providing Appian can execute them.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get Last ID, Insert Into Other Table</title><link>https://community.appian.com/thread/107280?ContentTypeID=1</link><pubDate>Tue, 31 Jan 2023 18:50:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f3f8e74b-abf6-4dc1-ad9a-e22e7f117209</guid><dc:creator>petel0001</dc:creator><description>&lt;p&gt;The record is synced.&lt;br /&gt;&lt;br /&gt;I have gone over the Appian Academy +&amp;gt; Appian Developer =&amp;gt; Learning Path, not too recently and I&amp;#39;ve done a number of other courses on academy.appian.com&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get Last ID, Insert Into Other Table</title><link>https://community.appian.com/thread/107274?ContentTypeID=1</link><pubDate>Tue, 31 Jan 2023 18:16:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3e1d4795-08bf-44da-be92-8e9349770b01</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Do not go back to Data Stores. Records are the way forward. Is this a synced record?&lt;/p&gt;
&lt;p&gt;Where are you on your Appian voyage? Did you attend some of the online trainings? Did you implement the tutorials (&lt;a href="https://docs.appian.com/suite/help/22.4/Tutorials.html"&gt;https://docs.appian.com/suite/help/22.4/Tutorials.html&lt;/a&gt;)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get Last ID, Insert Into Other Table</title><link>https://community.appian.com/thread/107269?ContentTypeID=1</link><pubDate>Tue, 31 Jan 2023 17:52:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d84e2dab-e528-41c6-8dc1-6b17927a2c3f</guid><dc:creator>petel0001</dc:creator><description>&lt;p&gt;There does not seem to be a way to add a sequence to a record type which has been created from a MySQL/MariaDB table. I don&amp;#39;t have any to choose from and what I found on the Appian site was information about Oracle when first creating the record type.&lt;br /&gt;Maybe I have to use Data Stores Entities somehow?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get Last ID, Insert Into Other Table</title><link>https://community.appian.com/thread/107268?ContentTypeID=1</link><pubDate>Tue, 31 Jan 2023 17:38:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9d00b51e-61ff-4a9a-b08b-8692a7274df6</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;You will need to enable that as well. As I already said, you will need a bit of time and trial/error to adapt your way of solution design to Appian. Think of Appian being the heart of your app, and the DB becomes&amp;nbsp;just a dump data storage.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get Last ID, Insert Into Other Table</title><link>https://community.appian.com/thread/107264?ContentTypeID=1</link><pubDate>Tue, 31 Jan 2023 16:05:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:48857ffc-5f6d-4ae1-8f1f-b08c18f4a91c</guid><dc:creator>petel0001</dc:creator><description>&lt;p&gt;Here&amp;#39;s the table structure, as you can see the primary key is an AUTO_INCREMENT field&lt;br /&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/16/pastedimage1675180902033v1.png" alt=" " /&gt;&lt;br /&gt;Does this need to be enabled as well&lt;br /&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/16/pastedimage1675181021778v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;If so then Appian is doing extra work behind the scenes then it needs to.&lt;br /&gt;MySQL/MariaDB is perfectly capable to both keeping track of the auto increment field type and doing the addition when it needs to.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get Last ID, Insert Into Other Table</title><link>https://community.appian.com/thread/107261?ContentTypeID=1</link><pubDate>Tue, 31 Jan 2023 15:51:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:03c6f235-57c6-444b-a475-aae9078bd92f</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Maybe a stupid question, but how does your record data model look like? Does it include an auto-generated primary key field?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get Last ID, Insert Into Other Table</title><link>https://community.appian.com/thread/107260?ContentTypeID=1</link><pubDate>Tue, 31 Jan 2023 15:44:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ce1bfc6b-ae70-4b23-9e61-dba58d1a5707</guid><dc:creator>petel0001</dc:creator><description>&lt;p&gt;Okay, let&amp;#39;s talk about this step from the sample&lt;br /&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/16/pastedimage1675179519404v1.png" /&gt;&lt;br /&gt;I have this&lt;br /&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/16/pastedimage1675179592456v2.png" /&gt;&lt;br /&gt;And ItemRecord does not have the primary key field or value.&lt;br /&gt;In the documentation they say that the person variable has both the primary key field and value.&lt;br /&gt;I can easily accept that I&amp;#39;m wrong, but it would seem that when I follow their example I don&amp;#39;t get the expected result.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get Last ID, Insert Into Other Table</title><link>https://community.appian.com/thread/107250?ContentTypeID=1</link><pubDate>Tue, 31 Jan 2023 15:01:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6117474d-a97e-42ee-91fc-1577b7616503</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Your first screenshot looks good as will work. At least if there is no error in the DB when inserting the data.&lt;/p&gt;
&lt;p&gt;Your second screenshot does not work. pv!record is the data that you want to store to the DB. The data coming back from the DB is ac!RecordsUpdated.&lt;/p&gt;
&lt;p&gt;I suggest to remove the config from the second screenshot and make sure that the most simple config works. Just follow the examples (&lt;a href="https://docs.appian.com/suite/help/22.4/Write_Records_Smart_Service.html#examples"&gt;https://docs.appian.com/suite/help/22.4/Write_Records_Smart_Service.html#examples&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;This is really dead simple, it just takes a bit of getting your head around it and forget all the Java and C# relics.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get Last ID, Insert Into Other Table</title><link>https://community.appian.com/thread/107248?ContentTypeID=1</link><pubDate>Tue, 31 Jan 2023 14:46:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9f5daf4a-647f-41ea-bdaf-e98d8f40e3af</guid><dc:creator>petel0001</dc:creator><description>&lt;p&gt;Having this&lt;br /&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/16/pastedimage1675176259028v1.png" alt=" " /&gt;&lt;br /&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/16/pastedimage1675176271134v2.png" alt=" " /&gt;&lt;br /&gt;Still does not change the end result.&lt;br /&gt;ItemRecord still does not have the field with the value for the primary key and ItemId still does not have the value for the primary key.&lt;br /&gt;I&amp;#39;m not typing these values in, I&amp;#39;m selecting them.&lt;br /&gt;Are you staying that I need to supply a prefix e.g. pv! to the variables?&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get Last ID, Insert Into Other Table</title><link>https://community.appian.com/thread/107247?ContentTypeID=1</link><pubDate>Tue, 31 Jan 2023 14:36:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bcd8273c-d972-4770-9a4a-04d11e622310</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Your output config is wrong. Store the data from Results -&amp;gt; &amp;quot;Records Updated&amp;quot; to your PV as only this includes the data coming back from DB after insert.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get Last ID, Insert Into Other Table</title><link>https://community.appian.com/thread/107245?ContentTypeID=1</link><pubDate>Tue, 31 Jan 2023 14:08:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8ddcdc5d-6d2d-4d47-9c14-9a18e3bcbc3c</guid><dc:creator>petel0001</dc:creator><description>&lt;p&gt;This is not valid&lt;br /&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/16/pastedimage1675172557305v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;So I have this&lt;br /&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/16/pastedimage1675172925891v2.png" alt=" " /&gt;&lt;br /&gt;In the Outputs tab I have&lt;br /&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/16/pastedimage1675173873556v3.png" alt=" " /&gt;&lt;br /&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/16/pastedimage1675173896229v4.png" alt=" " /&gt;&lt;br /&gt;Here are the process details, note that the highlighted parts do not have the record Id field value, which they should.&lt;br /&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/16/pastedimage1675174064835v5.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get Last ID, Insert Into Other Table</title><link>https://community.appian.com/thread/107223?ContentTypeID=1</link><pubDate>Tue, 31 Jan 2023 07:35:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fa900261-5b22-46f8-ab2d-5e16d0a7a457</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;In your screenshot, you reference the value from the process variable and write it to itself. This is like&lt;/p&gt;
&lt;p&gt;javaVariable.id = javaVariable.id;&lt;/p&gt;
&lt;p&gt;This will also not change much.&lt;/p&gt;
&lt;p&gt;Remove that assignment from the inputs tab. Then go to the outputs and store that value from ac!storedValues to your process variable.&lt;/p&gt;
&lt;p&gt;Keep in mind that any &amp;quot;save into&amp;quot; assignment on both tabs will evaluate at the same time. You cannot rely on one assignment happening before the other.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get Last ID, Insert Into Other Table</title><link>https://community.appian.com/thread/107213?ContentTypeID=1</link><pubDate>Mon, 30 Jan 2023 19:46:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1a3fc8ec-829c-498d-874c-5a0e96ff0d58</guid><dc:creator>petel0001</dc:creator><description>&lt;p&gt;Personally I&amp;#39;m going to call this a bug, even though it&amp;#39;s probably not, but after 10+ hours of trying to getting something done which can be done in 30 minutes or less in C# or Java seems like a bug/problem to me.&lt;br /&gt;You can see that the record is saved, but itemId a process variable never gets it&amp;#39;s correct value&lt;br /&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/16/pastedimage1675107904890v1.png" /&gt;&lt;br /&gt;It&amp;#39;s a pretty simple process model as shown below, and the process variable is being set on the Outputs tab of the note.&lt;br /&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/16/pastedimage1675107997078v2.png" /&gt;&lt;br /&gt;I&amp;#39;ve taken out the second write records to make this model even more simple&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get Last ID, Insert Into Other Table</title><link>https://community.appian.com/thread/107175?ContentTypeID=1</link><pubDate>Sat, 28 Jan 2023 09:00:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:940e07ae-1b57-4d02-ba96-d6c5a4332937</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Could it be that you do not store the &amp;quot;stored values&amp;quot; from the outputs tab of the first write records node back to the PV?&lt;/p&gt;
&lt;p&gt;I suggest to do one step after the other, and also validate each step.&lt;/p&gt;
&lt;p&gt;Assign the data coming from the interface to PVs -&amp;gt; Does this data show up?&lt;/p&gt;
&lt;p&gt;Store data to the record -&amp;gt; Does it show up in DB?&lt;/p&gt;
&lt;p&gt;Store stored values back to PV -&amp;gt; Does it do that?&lt;/p&gt;
&lt;p&gt;.&lt;/p&gt;
&lt;p&gt;.&lt;/p&gt;
&lt;p&gt;.&lt;/p&gt;
&lt;p&gt;Once you are more familiar with Appian, you might be able to skip a step or two. But even I, after 13 years do not do more than two or three steps without test and validation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get Last ID, Insert Into Other Table</title><link>https://community.appian.com/thread/107174?ContentTypeID=1</link><pubDate>Fri, 27 Jan 2023 20:57:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ba480523-3c4c-4114-bc3c-dd44564dea60</guid><dc:creator>petel0001</dc:creator><description>&lt;p&gt;I&amp;#39;ve made some progress, using the example provided, however, for some reason the value is null/empty as shown in this Loom video:&lt;br /&gt;&lt;br /&gt;&lt;a href="https://www.loom.com/share/9581aea2c2604eeb82499e94cac12da1"&gt;https://www.loom.com/share/9581aea2c2604eeb82499e94cac12da1&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;It looks like I&amp;#39;m doing everything correct, so what am I missing?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get Last ID, Insert Into Other Table</title><link>https://community.appian.com/thread/107171?ContentTypeID=1</link><pubDate>Fri, 27 Jan 2023 17:24:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8fb23ec8-66dc-417e-9353-63530013ac14</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;Sure! Here&amp;#39;s a pretty good example in the documentation:&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/latest/Write_Records_Smart_Service.html#create-records-and-related-records"&gt;docs.appian.com/.../Write_Records_Smart_Service.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get Last ID, Insert Into Other Table</title><link>https://community.appian.com/thread/107168?ContentTypeID=1</link><pubDate>Fri, 27 Jan 2023 14:28:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3937365a-faf7-4b92-805d-698c2b6d0cb2</guid><dc:creator>petel0001</dc:creator><description>&lt;p&gt;Are you able to point me towards any help/documentation/tutorials on how to do this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get Last ID, Insert Into Other Table</title><link>https://community.appian.com/thread/107167?ContentTypeID=1</link><pubDate>Fri, 27 Jan 2023 14:11:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:093d6369-defe-4223-bda0-34bfc4b813bd</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;You should be able to use two separate Write Records nodes. You&amp;#39;re correct that you cannot write too different record types within one Write Record node, but you can use two consecutive nodes to achieve what you&amp;#39;re looking for! Like Stefan said though, just make sure you map the output from the first node so you can reference that foreign key in your second Write Records node.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get Last ID, Insert Into Other Table</title><link>https://community.appian.com/thread/107166?ContentTypeID=1</link><pubDate>Fri, 27 Jan 2023 14:03:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:be7257d6-21b5-4272-b2b5-81a7fbfcb5f4</guid><dc:creator>petel0001</dc:creator><description>&lt;p&gt;This is what I currently have&lt;br /&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/16/pastedimage1674828224506v1.png" alt=" " /&gt;&lt;br /&gt;The Add Created By adds the currently logged user into the record before writing the record to the database.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get Last ID, Insert Into Other Table</title><link>https://community.appian.com/thread/107165?ContentTypeID=1</link><pubDate>Fri, 27 Jan 2023 13:57:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:52bd8f44-b66e-4a23-a26a-a8c84c869dc8</guid><dc:creator>petel0001</dc:creator><description>&lt;p&gt;Do I use two different &amp;#39;Write Records&amp;#39; or two different &amp;#39;Write To Data Store&amp;nbsp;Entity&amp;#39; or a &amp;#39;Write To Multiple Data Store Entities?&lt;br /&gt;I don&amp;#39;t think that you can have two different record types with &amp;#39;Write Record&amp;#39;, however you are the expert and have more experience/knowledge with Appian.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get Last ID, Insert Into Other Table</title><link>https://community.appian.com/thread/107164?ContentTypeID=1</link><pubDate>Fri, 27 Jan 2023 13:50:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:79646a2c-c0d9-4d5c-bcfa-e7e74e207731</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;That would be a case for a simple Appian process model. Two consecutive write record nodes store the data. The first needs to be configured (outputs tab) to store the created ID into the field of your mapping.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get Last ID, Insert Into Other Table</title><link>https://community.appian.com/thread/107163?ContentTypeID=1</link><pubDate>Fri, 27 Jan 2023 13:38:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:850a0422-3086-4c81-891c-25eb6243254d</guid><dc:creator>petel0001</dc:creator><description>&lt;p&gt;Sure.&lt;br /&gt;I have a multi select drop down, where the value of each drop down is the primary key of a table.&lt;/p&gt;
&lt;p&gt;As well, I have a &amp;#39;New Item&amp;#39; form which contains various inputs/controls.&lt;/p&gt;
&lt;p&gt;I need to have Appian first create the new item, then get the primary key of the record that was just inserted and finally I need to add to a lookup table the primary key of the new record and the values from the multi-select dropdown.&lt;/p&gt;
&lt;p&gt;That is part 1 adding new items.&lt;/p&gt;
&lt;p&gt;Part 2 is similar, but it&amp;#39;s for editing items with the possibility of the selected values in the multi-select changing when updates occur.&lt;/p&gt;
&lt;p&gt;I know how to do all of this in a tradition programming environment (C#, Java, etc.) which only takes me about 30 minutes to do.&lt;br /&gt;&lt;br /&gt;Maybe in Appian I need to setup a MySQL/MariaDB Function/Stored Procedure?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get Last ID, Insert Into Other Table</title><link>https://community.appian.com/thread/107156?ContentTypeID=1</link><pubDate>Fri, 27 Jan 2023 07:21:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c9703ca0-c2a0-456d-9821-ab0a03b81ba9</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;I am not sure I understand what you try to do. Can you add a bit more details please. What did you try in Appian?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>