POST SearchReports
URL: /api/library/SearchReports
Description
Retrieve a list of all reports and dashboards(library items) in the Yurbi library that matches the provided search string and that the logged in user has permissions too view.
Method
POST
Data Params
{
sessionToken : [string],
searchstring: [string]
}
Example
{
sessionToken : "HJQXIYYL[AZVTTRPILOHXHLWW",
searchstring: "Sales"
}
Success Response
Code: 200
Response will empty if no matching library items are found. If one or more matching items are found then a JSON array will be returned in x number of matches of list items.
{
"AppDisplayName":"My help desk r12",
"Application":"CA Service Desk r12 ITIL",
"CreatedBy":"admin, Yurbi",
"CreatedDate":"2015-07-28T12:51:34",
"Description":"",
"LastModified":"2016-06-07T12:00:00",
"ModType":"r12AHDI",
"ModifiedBy":"admin, Yurbi",
"PluginId":0,
"Published":"False",
"ReportName":"Sales Goal",
"ReportType":"Incidents",
"error_code":0,
"error_message":null,
"folderid":25,
"id":1438087894,
"index":0,
"isEmbedable":false,
"isFav":true,
"isPublicView":false,
"isUserAdmin":true,
"isUserAgent":true,
"isUserArchitect":true,
"isUserBuilder":true,
"isUserDelete":true,
"isUserModify":true,
"isUserView":true,
"itemtype":3
},
{
"AppDisplayName":"My help desk r12",
"Application":"CA Service Desk r12 ITIL",
"CreatedBy":"admin, Yurbi",
"CreatedDate":"2015-08-06T13:47:25",
"Description":"",
"LastModified":"2016-06-07T12:03:00",
"ModType":"r12AHDI",
"ModifiedBy":"admin, Yurbi",
"PluginId":0,
"Published":"False",
"ReportName":"YTD Sales",
"ReportType":"Incidents",
"error_code":0,
"error_message":null,
"folderid":25,
"id":1438868845,
"index":0,
"isEmbedable":false,
"isFav":true,
"isPublicView":false,
"isUserAdmin":true,
"isUserAgent":true,
"isUserArchitect":true,
"isUserBuilder":true,
"isUserDelete":true,
"isUserModify":true,
"isUserView":true,
"itemtype":3
}
]
Definition of Library List Items - ReadOnly
Name | Description | Type |
AppDisplayName | The UI display name for the Yurbi app that was used to build the report. | string |
Application | Yurbi internal application name used to create the report. | string |
CreatedBy | Lastname, Firstname of contact that created the report. | string |
Description | Report description. | string |
error_code | error code | integer |
error_message | Error message. | string |
folderid | Library folder id number. | integer |
id | Report id. | string |
index | NA | integer |
isEmbedable | Can the report be used with embed code. | boolean |
isFav | Is report currently Favorited by the logged in user. | boolean |
isPublicView | Is report allow to be anonymously view and executed. | boolean |
isUserAdmin | Does user have admin access to report. | boolean |
isUserAgent | Does the user have agent access to report, user can execute. | boolean |
isUserArchitect | Does the user have Architect access the the Yurbi App used to build the report. | boolean |
isUserBuilder | Does the user have Builder access to the report, can modify report. | boolean |
isUserDelete | Does the user have delete permission. | boolean |
isUserModify | Does the user have modify rights. | boolean |
isUserView | Does the user have view rights. | boolean |
itemtype | 0=Dashboard, 1 = grid, 2=chart, 3=KPI text, 4=KPI gauge, 5=NA,6=PieChart, 7=ComboChart | integer |
LastModified | Last Modified Date. | date |
ModifiedBy | Last name, First name of last modified by contact. | string |
ModType | Internal Yurbi App code. | string |
PluginId | NA | integer |
Published | Not in use | boolean |
ReportName | Report name | string |
ReportType | Report type from Yurbi App used to create report. | string |
Sample Call
$.ajax({
url: "/api/library/SearchReports ",
dataType: "json",
data : {
sessionToken : “HJQXIYYL[AZVTTRPILOHXHLWW”,
searchstring: “Sales”},
type : "POST",
success : function(r) {
console.log(r);
}
});