How to get/capture the output result of a query?

I'd suggest using the transform results box to return the new ID to keep your downstream logic cleaner