How to insert Data and get database ID as an output of my process?

Certified Senior Developer

My process inserts a new record in table CONTACT.

Using AC!StoredValues, the process variable pv!contact is correctly updated with the ID (in debug, I see it in the process variables).

Now I would like to understand why it is not updated in the interface calling the process as bellow.

                                                  a!startProcess(
                        processModel: cons!CADOR_PM_SAVE_INFO_CONTACT,
                        processParameters: {
                          contact: ri!contact
                        },
                        onSuccess: {
                                         /* here I would expect the ri!contact data to be updated with my newly inserted ID
                                            but it doesn't  */
                        },
            

Note that all nodes in my PM (and sub-PMs) are chained.

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data