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++) {

                  New to ADManager Plus?

                    New to ADSelfService Plus?

                      • 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 ...
                      • Script to 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: ...
                      • Scripts to update request status when a new reply is received.

                        Please do refer to the below steps to change the status when a Contact sends a new reply to the ticket. 1. Download the script files from the below link and extract them and place it under..\ManageEngine\SupportCenter\integration\custom_scripts - ...
                      • Delete requests

                        If you would like to delete the older requests, you could use the below query. Connect to the Database For MSSQL: delete from workorder where dateadd(s,datediff(s,GETUTCDATE() ,getdate()) + (CREATEDTIME/1000),'1970-01-01 00:00:00') <= ...
                      • How to analyze when inline images crashes in Requests

                        If any image on the Request description is crashed like the below image, you can follow the below steps to analyze the issue. Steps to analyze: Right click on the image in the request description and click on Inspect, and there will be an IMG html ...