I have collected a quick guide on REST queries in
this post.
Unfortunately OSLC standard does not support OR and NOT operators. Only AND operator works. MxLoader complies with the standard.
The
IBM documentation provides more details about REST APIs. The 'opmodeor' parameter will treat all ANDs as ORs. Awful solution so I will never add to MxLoader.
Another option would be to support 'saved queries'. This means you can store your query in Maximo and use it in MxLoader. It may be an option...
Really sad OSLC APIs offer so limited features to filter data.
------------------------------
Bruno Portaluri
------------------------------
Original Message:
Sent: 10-04-2021 09:05
From: Manuel Guyot
Subject: REST API
Hi,
I would like to know if it is possible to have such Query with API:
(reportdate < trunc(current date) and status not like 'KLAR' ) or (reportdate >= trunc(current date))
I know that the "or" is not possible, so is there a way to go around to get that kind of Query?
Thanks.
------------------------------
Manuel Guyot
Husqvarna AB
------------------------------