Steps for Custom Scripts to show only view of Account's Requests for primary contact.

Steps for Custom Scripts to show only view of Account's Requests for primary contact.

1.Create a folder under this location : ManageEngine\SupportCenter\custom with the name scripts and then add the custom scripts to be executed. 

Example of a custom scripts : primary contact only needs view of account's requests and not the default view which consists of My Open Requests, My Requests On Hold
My Pending Requests, My Resolved Requests, My Completed Requests, My Closed Requests, All My Requests.

this is the custom script. 

if(location.href.indexOf("/") > 0){ 
jQuery(window).bind("load", function() { 
if (!scp_user.IS_SUPPORT_REP) {
    delViewArr = ['My Requests', 'My Open Requests','My Requests On Hold','My Pending Requests','My Resolved Requests','My Completed Requests','My Closed Requests','All My Requests'];
    for (i = 0; i < delViewArr.length; i++) {

          • Related Articles

          • Query to find Contact roles

            All requests from their account and sub account  SELECT aaauser.FIRST_NAME "Contact Name",org.NAME "Account Name",ucinfo.EMAILID "Contact Email",ucinfo.LANDLINE "Contact Phone",ucinfo.MOBILE "Contact Mobile",ucinfo.FAX "Contact Fax" FROM AaaUser ...
          • Notify Support Reps when a new reply is received for Unassigned Requests

            Please do follow the below steps to notify support reps when an unassigned request is updated or when a reply is received.  1. Download the configuration.json file, file, requestobj.json file from the below link: ...
          • Delete requests

            If you would like to delete the older requests, you could use the below query. For MSSQL: delete from workorder where dateadd(s,datediff(s,GETUTCDATE() ,getdate()) + (CREATEDTIME/1000),'1970-01-01 00:00:00') <= convert(varchar,'2010-04-01 00:00',21) ...
          • Update status using Python script in 11.0

            Using a Python script via custom trigger, we can update the status invoking an API call. A short guide on setting up python is available here : Find the attached ...
          • Apply Contract to All Requests raised by this account option is greyed out while creating a new contract

            1. Whenever I put in Expiry date the checkbox for Apply Contract to All Requests raised by this account becomes greyed out. --> This will happen if there is another active contract for the same period. Two rules are applied while creating a contract ...