How can I set default Workshifts on the [Notifications] tab of the Contact Detail screen?

book

Article ID: 17427

calendar_today

Updated On:

Products

CA IT Asset Manager CA Software Asset Manager (CA SAM) ASSET PORTFOLIO MGMT- SERVER SUPPORT AUTOMATION- SERVER CA Service Desk Manager - Unified Self Service KNOWLEDGE TOOLS CA Service Management - Asset Portfolio Management CA Service Management - Service Desk Manager

Issue/Introduction

Description:

When we create a new Contact by clicking on <Create New> button, the 'Workshifts for Notification Method' field on [Notification] tab shows "empty". This document explains how to specify a Workshift in the field as the default value.

<Please see attached file for image>

Figure 1

Solution:

In order to set default 'Workshifts for Notification Methods' on the [Notification] tab of the Create New Contact screen, customizations is required. Please follow the steps below.

Note: Modifying schema and forms using a means other than GUI operations in Web Screen Painter is not supported.

  1. Create a new *.mod file, e.g. zcontact.mod, under the $NX_ROOT\site\mods\majic folder.

  2. At the Command Prompt, run the following command.
            pdm_extract Bop_Workshift > workshift.dat
  3. Open the output file, workshift.dat, find the persid of the Workshift that you would like to specify as a default value.

    e.g. For Workshift "24 Hours".
    { "0" ,"24x7 Hours" ,"4602" ,"" ,"" ,"wrkshft:4602","Sun - Sat { 12:00 am - 12:00 am }" ,"24 Hours" } 
    You can find that the persid for "24 Hours" is "wrkshft:4602".

  4. Add the Workshift setting with the persid to mod file.
          MODIFY cnt notify_ws1 ON_NEW DEFAULT 'wrkshft:4602'; 
    If you would like to set "24 Hours" for all 'Workshifts for Notification Methods', please add the lines in *.mod file as per below
       MODIFY cnt notify_ws1 ON_NEW DEFAULT 'wrkshft:4602';   MODIFY cnt notify_ws2 ON_NEW DEFAULT 'wrkshft:4602';   MODIFY cnt notify_ws3 ON_NEW DEFAULT 'wrkshft:4602';   MODIFY cnt notify_ws4 ON_NEW DEFAULT 'wrkshft:4602';
  5. Recycle Service Desk for the change to take effect.

You will now be able to see "24 Hours" is shown as the default 'Workshifts for Notification Methods' by default.

<Please see attached file for image>

Figure 2

Environment

Release:
Component: ARGIS

Attachments

1558709348862000017427_sktwi1f5rjvs16rfw.gif get_app
1558709346986000017427_sktwi1f5rjvs16rfv.gif get_app