I want to do this
get value from multiple select as newRefs;insert into table1 ('name') values ('pete');SELECT LAST_INSERT_ID() as newUserId;for each (currentRef in newRef) { insert into lookupTable1 (userId,ref) values (newUserId,currentRef);}
Actually there is a quicker way to do this with MySQL/MariaDB as noted here https://dev.mysql.com/doc/refman/8.0/en/insert.html
What do I need to do this?Do I use Data Store Entities, Record Types, etc.?I can't be the first one that want to do something like this.
Discussion posts and replies are publicly visible
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't have any to choose from and what I found on the Appian site was information about Oracle when first creating the record type.Maybe I have to use Data Stores Entities somehow?
Do not go back to Data Stores. Records are the way forward. Is this a synced record?
Where are you on your Appian voyage? Did you attend some of the online trainings? Did you implement the tutorials (https://docs.appian.com/suite/help/22.4/Tutorials.html)?
The record is synced.I have gone over the Appian Academy +> Appian Developer => Learning Path, not too recently and I've done a number of other courses on academy.appian.com
This SHOUD be pretty simple, but for whatever reason this is not working.I'll go back to what I said previously, this appears to be a BUG.This is pretty darn silly, 15+ hours just on something like this.I thought that one of the benefits of Appian/Low Code was quick development.I'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.
Given that I'm using the free community edition in the cloud there is little I can do to see what is actually happening in the background.I guess I'll look into creating a Stored Procedure/Function in the MySQL/MariaDB database providing Appian can execute them.
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.seehttps://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