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

How to override source filter date using groovy rest api

edited Mar 1, 2021 6:31AM in Planning 12 comments

Content

Hi

I am trying to override source filter effective date using groovy rest api in order to run the DM integration rule for today's date. But I get the below error I tried various ways to pass the date but still not working

 Invalid Validation Type 'DATE' specified for the property : 'Effective Date'

 

def date = new Date()
def sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss")
println sdf.format(date)
 
// Load product volumes from DM to Planning
HttpResponse<String> jsonResponse = operation.application.getConnection("DM").post()
.body(json(["jobType":"INTEGRATION", "jobName":"EPM_HCM_EPBCS_BUD", "periodName":"{Jan-21}", "importMode":"REPLACE", "exportMode":"STORE_DATA", 

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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