Best Of
Re: dqman runs but keeps crashing
Re: Setting document creation date as source while creating document using REST API
Thank you @PramodMohandas as you mentioned the date format working fine in postman.
In Java code also the same date format needs to be handled as below,
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd=HH:mm:ss");
categoryJson.put(category_attribute_id, sdf.format(new Date()).replace("=", "T"));
So that, the date format will be passed in proper format to Java http post request.
Formatted Date using Java code: 2020-09-02T13:30:00
After this date format, it is working fine with Java code too.
Re: Document creation with Category Metadata not set in single shot using Rest and CWS SOAP Web service.
Date I was able to do it like this
{
"type": 144,
"parent_id": 2000,
"name": "apooppan",
"roles": {
"categories": {
"51279": {
"51279_2": "bbb",
"51279_3": "2020-09-02T13:30:00"
}
}
}
}
I think the Date that you give is a Date locale i tried like this as well
51279_3": "2020-09-02" in my category which I created for test it looks like this I didn't include time


