Quantcast
Channel: Opinion: Shopify Community - Shopify APIs & SDKs
Viewing all articles
Browse latest Browse all 25503

Getting the most recently added product by Eric Boisjoli

$
0
0

Hi Guys, 

 

I'm in the process of creating an app and I'm looking for a quick way on install to get the latest Product ID as my app will only affect products created after the app was installed (using the GET with since_id). 

Is there a quick api call for this or will I need to loop through all products and find the biggest Product ID?

Are the products sorted in order they were created - maybe the best way would be to get a count of all the products then get with a limit of 1 and the use the product count to determine the last page?

Any thoughts or suggestions?

Thanks!


Viewing all articles
Browse latest Browse all 25503

Trending Articles