I'm currently working on a workflow to get file attachments to be inserted into an invoked form and I'm following the example set by the following topic: https://answers.laserfiche.com/questions/100588/How-to-insert-repository-documents-into-Form-upload-fields-solution-inside
But I've encountered a problem.
Even though the SQL Statement in (#1) is set correctly as per the example:
But I cannot for the life of me get 'inserted_identity' out as a token to use on the next step (#2). The token just doesn't exist for #1 (per below)
I've run the workflow and it fails on the #2 step (as this step needs the Foreign Key that is being retrieved as the inserted_id) but the data that is inserted in the byte array into forms database is correct.
Am I doing something wrong?
UPDATE: I do try to manually run the query with assumed correct data and I'm getting the below error but if I run it by running the workflow, it works fine (from what I can see)