Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Query to get Array Values

Avatar

Former Community Member

Hi 

Can anybody gimme  query to get array values using querybuilder api i am typing this in browser 

for example i tried this

http://SERVERNAME:PORT/crx/explorer/repository/crx.default/content/dam/cupp/publisher276627/50060097... and i see just one number but there is a list of page numbers here

or this

/bin/querybuilder.json?path=/content/dam/cupp/publisher276627/500600973/2013/416279098/articles/101097155.xml/jcr%3acontent/metadata/name:articlePageRange&type=java.lang.String[]

Am i doing something wrong..? please help i am new to this tool

1 Accepted Solution

Avatar

Correct answer by
Employee

Hi Kalyan,

If you know the path of the node/property you want, there's no need to query for it. You already know the answer to your query :)

http://SERVERNAME:PORT/content/dam/cupp/publisher276627/500600973/2013/416279098/articles/101097155.... will return a JSON object with *just* this property in it as an array.

I think this is what you're looking for.

Regards,

Justin

View solution in original post

2 Replies

Avatar

Correct answer by
Employee

Hi Kalyan,

If you know the path of the node/property you want, there's no need to query for it. You already know the answer to your query :)

http://SERVERNAME:PORT/content/dam/cupp/publisher276627/500600973/2013/416279098/articles/101097155.... will return a JSON object with *just* this property in it as an array.

I think this is what you're looking for.

Regards,

Justin

Avatar

Former Community Member

Yes you were right 

i should lose /crx/explorer/repository/crx.default from the url and it worked thanks so much for your help