SearchReports

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

NameDescriptionType
AppDisplayNameThe UI display name for the Yurbi app that was used to build the report.string
ApplicationYurbi internal application name used to create the report.string
CreatedByLastname, Firstname of contact that created the report.string
DescriptionReport description. string
error_codeerror codeinteger
error_messageError message.string
folderidLibrary folder id number.integer
idReport id.string
indexNAinteger
isEmbedableCan the report be used with embed code.boolean
isFavIs report currently Favorited by the logged in user.boolean
isPublicViewIs report allow to be anonymously view and executed.boolean
isUserAdminDoes user have admin access to report.boolean
isUserAgentDoes the user have agent access to report, user can execute.boolean
isUserArchitectDoes the user have Architect access the the Yurbi App used to build the report.boolean
isUserBuilderDoes the user have Builder access to the report, can modify report.boolean
isUserDeleteDoes the user have delete permission.boolean
isUserModifyDoes the user have modify rights.boolean
isUserViewDoes the user have view rights.boolean
itemtype0=Dashboard, 1 = grid, 2=chart, 3=KPI text, 4=KPI gauge, 5=NA,6=PieChart, 7=ComboChartinteger
LastModifiedLast Modified Date.date
ModifiedByLast name, First name of last modified by contact.string
ModTypeInternal Yurbi App code.string
PluginIdNAinteger
PublishedNot in useboolean
ReportNameReport namestring
ReportTypeReport 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);
  }
});

Was this article helpful?

SaveContact
GetReport