Start a Conversation

Unsolved

This post is more than 5 years old

1046

June 4th, 2014 08:00

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,

281 Posts

June 4th, 2014 08:00

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.

2 Posts

June 4th, 2014 09:00

Jason:

Thanks for the quick reply.

Your suggestion works perfectly.

--Terry

No Events found!

Top