UNSOLVED

terry421

updated

12 years ago

T

terry421

2 Posts

0

1169

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,

  • JasonCwik

    1 Rookie

    •

    281 Posts

    818

    1

    Posted 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.

  • terry421

    2 Posts

    818

    0

    Posted June 4th, 2014 09:00

    Jason:

    Thanks for the quick reply.

    Your suggestion works perfectly.

    --Terry