Support Topics Documentation Slack YouTube Blog

How can i get current objectId when i just saving my object?

I have a table for my object and i set relation with my geolocation but when i want to save my object i need to set ParentObjectID and childObjectId ? how can i get them? 09 sorry for stupid question

Hey @Eugene_Tishkin

In order to establish relation between two objects - you’ll need to have them both saved. You can get objectId of the saved object either by using async API and obtain required property from the response object OR save result to a variable if you are using sync method and get it from the resulting object

Anton

spasibo Anton! через print разобрался что получаю его в complition handler’e.