Skip to main content
Solved

How to apply RestAPI filter on Date

  • January 12, 2024
  • 1 reply
  • 371 views

I am trying to get the Purchase Receipts and Purchase Orders filter by Date using RestAPI in postman, please provide me some example.

Best answer by jinin

Hi @agrimgrover 

Please find the sample below for filtering based on the lastmodifieddatetime

{URL}}/entity/20.200.001/PurchaseOrder?$filter=LastModifiedDateTime ge datetimeoffset'2014-04-15' and LastModifiedDateTime le datetimeoffset'2022-04-29'

1 reply

jinin
Pro I
Forum|alt.badge.img+11
  • Pro I
  • Answer
  • January 12, 2024

Hi @agrimgrover 

Please find the sample below for filtering based on the lastmodifieddatetime

{URL}}/entity/20.200.001/PurchaseOrder?$filter=LastModifiedDateTime ge datetimeoffset'2014-04-15' and LastModifiedDateTime le datetimeoffset'2022-04-29'