Getting object as operation result in a transaction

I’m trying to get an object from the database that is created in a transaction… but I cannot figure out how to achieve that. Printing the operation reference prints many things to the console, including the payload which contains the object. However, if I print the output from “Get Operation Result”, I only get null. Why?

The operation result surely shouldn’t be null (after transaction succeeds, object is created in database, etc)?! Here is my code:

Hello @Alex_Klein!

I just wanted to let you know that the reason why the Get Operation Result block isn’t returning any results is because it can only do so after the transaction has been completed.


I hope this information helps! Let me know if you have any other questions or if there’s anything else I can assist you with.

Regards,
Alexander

Ah — of course, makes sense. Thank you :pray:

Great to hear that my response was helpful! :blush:
We are always here to assist you if you have any more questions or concerns.
Don’t hesitate to reach out anytime. :raised_hands:

Regards,
Alexander

1 Like