Register today for Oracle CloudWorld. October 17th - 20th, Las Vegas

Register now

Hillel Cooperman, Senior VP of User Experience Design, has a message for you on Oracle CloudWorld

Watch now
Need query parameter format to call REST API with date condition — Cloud Customer Connect
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

Received Response
22
Views
1
Comments
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 - 10. The string value must be in format YYYY-MM-DD.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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