Sep-03-2018, 11:46 PM
Hi Folks -
Just wanted to bring this to the top. I did some more testing and the sys argument is as follows:
So, in fact, the argument passed is the json file called "15301_csh.json". This file (as shown above) is comprised of there columns persay with the following headings - in this order:
workorderid
emailid
createdtime
Does that help clear things up a bit? I'm still getting the following error:
It seems as though it can't get the 'createdtime' column value in the json file. Any ideas?
Just wanted to bring this to the top. I did some more testing and the sys argument is as follows:
Quote:C:\ManageEngine\ServiceDesk\bin\..\integration\custom_schedule_reports\15301_csh.json
So, in fact, the argument passed is the json file called "15301_csh.json". This file (as shown above) is comprised of there columns persay with the following headings - in this order:
workorderid
emailid
createdtime
Does that help clear things up a bit? I'm still getting the following error:
Quote:Schedule : Aging_Open_Requests executed, Result: Traceback (most recent call last):
File "date_diff.py", line 17, in <module>
date = getdate(req['createdtime'])
KeyError: 'createdtime'
It seems as though it can't get the 'createdtime' column value in the json file. Any ideas?