8

I want to confirm if an item exists in Tridion with the Core Service. I'm building a URI myself, using a parent Page item ID and the local Publication ID, and want to try to get it.

I see 2 methods available in the Core Service API that might be of help. Which one would be the most efficient to confirm the item does exist?

string localUri = client.TryGetTcmUri(componentUri, publicationUri);
var page = client.TryRead(componentUri, null);

1 Answer 1

12

How about:

client.IsExistingObject(uri);
1
  • That's a good one!
    – robrtc
    Commented Mar 27, 2015 at 10:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.