Highlighted
terry421
1 Copper

Is there a createObjectOnPath with 'overwrite existing" option?

Hello:

I am using EsuApiLib.

I want to call CreateObjectOnPath() and overwrite any existing object.

1.

Is there some option for this (overwrite)?  I cannot find it.

2.

Is there some way to an an ObjectID from a path?

When I call CreateObjectOnPath() on an existing object, I get the exception "The resource you are trying to create already exists.".

At this point, I would like to call UpdateObject(), but this takes an ID.  How do I get the ObjectID from the path?

Thanks for any help.

Thanks,

Labels (1)
0 Kudos
2 Replies
8 Krypton

Re: Is there a createObjectOnPath with 'overwrite existing" option?

Hi Terry,

The UpdateObject call takes an Identifier.  Both ObjectID and ObjectPath are instances of Identifier, so you can pass either an ObjectID or ObjectPath to that call.

terry421
1 Copper

Re: Is there a createObjectOnPath with 'overwrite existing" option?

Jason:

Thanks for the quick reply.

Your suggestion works perfectly.

--Terry

0 Kudos