Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X
Version: Windchill 13.0
Use Case: I am trying to access an API in the change management domain which GETs some data and i want to make a get call using a filter by the name "Owner" which is of PTC.PrincipalMgmt.User type, trying to build a simple filter query here but when using queries like Owner eq " OwnerName " I get an error : { "error": { "code": null, "message": "The types 'PTC.PrincipalMgmt.User' and 'Edm.String' are not compatible." } } which clearly signals that the query format is wrong since i need to pass the object and i have passed string. So what change do i need to perform in my GET call.
Description:
I am trying to access an API in the change management domain which GETs some data and i want to make a get call using a filter by the name "Owner" which is of PTC.PrincipalMgmt.User type, trying to build a simple filter query here but when using queries like Owner eq " OwnerName " I get an error :
{
"error": {
"code": null,
"message": "The types 'PTC.PrincipalMgmt.User' and 'Edm.String' are not compatible."
}
}
which clearly signals that the query format is wrong since i need to pass the object and i have passed string. So what change do i need to perform in my GET call.
hi,
Can you share the snippet of code where you do the query?
Please share the REST URL which you are trying to exceute for Change object ?