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

Certified Associate Developer

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:

  Discussion posts and replies are publicly visible