Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
when i start with the url:"https://flow.pluralsight.com/v3/customer/core/repos/?offset=0"
it gives the data of 100 records like
i am adding an zip file i have removed the credentials
if is it possible can you give me the solution for the same question but
extracting not only next data but also the results data from the out put
actually my output should be some otherdata and the next value should used like pagination
I *think* I know what this is now. Very difficult to test this out without running it, but I think I have it.
You are testing for the value returned by "next" being null. It looks like it returns a String value of "null"....which isn't null. Try changing your IF condition to the following....
String rurl = row2.next; if(rurl!=null&&rurl.compareToIgnoreCase("null")!=0){ globalMap.put("myUrl", rurl); }else{ globalMap.put("myUrl", null); }
thank you its working fine now but its skipping the first value
because i have given the first value as the starting point so it displaying from the next value
The first value you set (I assume you are talking about the first URL) will be the first one run. This shouldn't be causing the first value to skip. Maybe I have misunderstood?
yeah the first value set is the first url
and its only printing from the next value
What are you expecting to be printed that is not? Are you extracting anything other than the next URL at the moment?
yeah iam trying to extract other values also like the results field from the output other than next value
You will need to extract those values using the tExtractJSONFields component. If you are having issues doing that, there are several questions already answered regarding that on the Community. This thread is not really the place to continue this, unless you have further questions regarding API paging?