Skip to main content
Question

Assyst REST - how to include discontinued items?


Forum|alt.badge.img+3
  • Sidekick (Customer)
  • 6 replies

https://<server>:<port>/assystREST/v2/items?shortCode[like]=some_application

 

Consider 5 items with name some_application_x, 2 are discontinued.

How do I include the discontinued items in the REST call above?

 

I’ve tried &discontinued=true and &includeDiscontinued=true, can’t really find any similar examples on the Wiki.

 

Cheers.

2 replies

Forum|alt.badge.img+4
  • Do Gooder (Employee)
  • 9 replies
  • May 12, 2023

Hi there,

This should be possible.

If you are wanting the item to return all 5 items, including the discontinued items, then please remove the discontinued=true/false altogether and this should bring back all items including the discontinued items.

Thanks!

 


Forum|alt.badge.img+3
  • Author
  • Sidekick (Customer)
  • 6 replies
  • May 15, 2023
Gary.Campbell wrote:

Hi there,

This should be possible.

If you are wanting the item to return all 5 items, including the discontinued items, then please remove the discontinued=true/false altogether and this should bring back all items including the discontinued items.

Thanks!

 

I would think so too, but here we see 3 items, all of which are not discontinued. If we do a regular search in Assyst, and enable search for discontinued items, we receive 5 items.

 

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings