[SOLVED] How to get _id of a recently inserted record so you can use it as your Primary Field.

@jonatandor35 Would you be so kind enough to tell me what’s the most straightforward way of doing it? I just want the _id to be pasted on clientId field of the same record so I can use it as the primary field.