cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

invoke task, report template with servlet odata, change criteria

mmancin
10-Marble

invoke task, report template with servlet odata, change criteria

Hi all, 

 

   i've tried to call this servlet

 

POST /Windchill/servlet/odata/IE/InvokeIETask

 

with this body

 

 

{ 
    "Task": "com/ptc/windchill/enterprise/report/ExecuteReportTemplate.xml",
    "Params": [
       {
            "Name": "object_ref",
            "Value": "wt.query.template.ReportTemplate:6852467828"
        }}
    ]
}

 

now I need to change the report criteria directly from the API. I tried to add a parameter but it doesn't seem to work.

 

For example (but it doesn't works)

 

{ 
    "Task": "com/ptc/windchill/enterprise/report/ExecuteReportTemplate.xml",
    "Params": [
       {
            "Name": "object_ref",
            "Value": "wt.query.template.ReportTemplate:6852467828"
        },
        {
            "Name":"where",
            "Value":"((Associated Part.Latest Iteration equals 1) AND (Part Master.Number in 1234))"
         }
    ]
}

 

 

Where can I find documentation? what is the correct parameter?

0 REPLIES 0
Announcements

Top Tags