Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Need query parameter format to call REST API with date condition

edited Dec 10, 2020 5:34AM in Supply Chain Planning and Collaboration 1 comment

Summary

Call fscmRestApi/resources/11.13.18.05/supplyPlans/:planid/child/PlanningSupplies with query parameter on ScheduleDueDate fall in next 30 days

Content

HI,

Can you please advice on how to pass date condition to a REST API call in query parameter to fetch where schedule due date fall in next 30 days. Like ScheduleDueDate <= sysdate - 30. if i use sysdate - 30 i am getting an error message like wrong format. 

 

Kindly advice.

REST API call URL: https://hostname.oraclecloud.com/fscmRestApi/resources/11.13.18.05/supplyPlans/:planid/child/PlanningSupplies?q=SuggestedDueDate lt sysdate - 10;&offset=5000&limit=1000&totalResults=true 

Response:

An instance of type java.sql.Date cannot be created from string lt sysdate - 

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!