0

Is there any to use the fast query in Sitecore Services Client API? (Sitecore 9.0.1)

I need to find an item with a particular name within a specific location and based on specific template. I'm able to use the below fast query: fast:/sitecore/content/home/folderitem//*[@@templateid='templateid'and @@name='itemname'] This works perfectly.

But now I have to retrieve the same from a different instance. So opt for ItemService API. How can I achieve the same fast query in the ItemService API ?

1

1 Answer 1

2

You are using Sitecore 9+, so you can use Odata item service to achieve this. By default there are various search options available in Odata service.

In your case the Odata request should be having the below filters.

/sitecore/content/home/folderitem?$filter=Name eq 'itemname' and TemplateName eq 'templatename'

have a look at the Sitecore document

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.