Skip to main content
bleronak0001
March 10, 2025
Solved

How to access newly created record ID in process without query?

  • March 10, 2025
  • 6 replies
  • 1 view

I have a process that needs to store entities and alerts in different tables.

Flow of the process:

  1. First, I need to save the entity using the Write Record Smart Service.
  2. After the entity is saved, I need to get the ID of the created entity.
  3. Using this ID, I will then save the corresponding alert with another Write Record Smart Service.

Question:

Is there a way to get the ID of the newly created entity directly from the Write Record Smart Service, without having to perform an additional query from the record or database?

Here is the example of process:

    Best answer by konduruc733182

    Not sure what you have done there, Can you try using the custom output and use the same record variable that is passed for the input value.

    6 replies

    konduruc733182
    March 10, 2025

    Hello [mention:938d9576dd4249fda915ca310acfd340:e9ed411860ed4f2ba0265705b8793d05] 

    You can configure it from the Write records node outputs using the Records Updated.

    docs.appian.com/.../Write_Records_Smart_Service.html

    bleronak0001
    March 10, 2025

    Hi [mention:2df2892a4df7486f9775b4d2f0e405fd:e9ed411860ed4f2ba0265705b8793d05] thanks for your answer. I tried in this way, but I lost other details for entity(e.g entity name), that I need to use for another reason in the same process.

     

    konduruc733182
    March 10, 2025

    Not sure what you have done there, Can you try using the custom output and use the same record variable that is passed for the input value.