Is there a way to retrieve the created item's itemId

Is there a simpler way to retrieve a created item’s itemId than sending a separate query request after creation to query an entire board?

Or to set the itemId of the newly created Item?

Hi @yuhaocooper!

Yes absolutely. You can actually query data immediately from the components you’ve just mutated.

For instance, if you’re creating an item, to see that newly created item Id, try a query like this:

You will then get the newly created item Id in the query returned.

Let me know if this isn’t what you had in mind! Happy to continue digging into this with you.

Hi Helen,

great, that’s exactly what I was looking for. The documentations wasn’t explicit on returning the id. Thanks, and I’ll test it out soon.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.