Saved Search
3 min
execute a search using a saved search the search is executed based on the saved search name you can get the saved search name from the metadata api docid\ pkocqfv2d86th3l22mggy base url https //{tenant url}/api/odata/businessobject/{business object name}/{saved search name}?actionid={saved search action id} ensure the business object name is suffixed with an "s" search using saved search example here is an example to execute a saved search to get my active incidents url https //{tenant url}/api/odata/businessobject/incidents/my active?actionid= e8e4ea03 73e3 41fd bcfc d29ad7492fd8 \<font color="#ffffff">method\</font> get header name authorization jtw token/session key/rest api key status code 200 \<font color="#ffffff">response payload\</font> click to view the response payload { "@odata context" "{tenant url}/api/odata/$metadata#incidents", "value" \[ { "recid" "cfb1ff8fb136443c892d6a17d4b8430d", "resolution" null, "service valid" null, "service" "desktop service", "status" "active", "subject" "cannot login to windows intel", }, { "recid" "c8eb63c9c75447ddba40c08aa3b0135a", "resolution" null, "service valid" null, "service" "desktop service", "status" "active", "subject" "pc is very slow", }, { "recid" "e3c1ffd12a8945baadef1cd439a87b0e", "resolution" null, "service valid" null, "service" "desktop service", "status" "active", "subject" "cannot login to windows intel", } unsuccessful responses blank action id scenario executing a search with blank action id https //{tenant url}/api/odata/businessobject/incidents/my active?actionid= header name authorization sessionkey code ism 4000 description invalid request payload message "action id cannot be blank provide a valid action id and try again" \<font color="#ffffff">http status code\</font> 400 invalid action id scenario executing a search with invalid action id https //{tenant url}/api/odata/businessobject/incidents/my active?actionid=abc123 header name authorization sessionkey code ism 4000 description invalid request payload message "invalid action id provide a valid action id and try again" \<font color="#ffffff">http status code\</font> 400
