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);
12

How about:

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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