I have a filemaker script that inserts a new entry on several imported mySQL tables. I need to get the unique id of these entries as they are created (before or after, either way) so I can refer to them later in the script. This is easy to do in SQL with LAST_INSERT_ID()
, but I can't seem to find how in filemaker.
What I have tried that didn't work:
- GetNextSerialValue ( Get ( FileName )&".fp7" ; "jos_users::id" )
#returns nothing, does not work properly on ODBC tables - Get(RecordID)
#Local value does not correspond to the mySQL unique ID
Thanks in advance! Any suggestions are appreciated.