test

vinnus
Tera Contributor

test

11 REPLIES 11

vinnus
Tera Contributor

test

vinnus
Tera Contributor

Cadency Module

  • Certification: Journal Entries
  • Certification: Reconciliation
  • Close
  • Other
CADENCY MODULEREQUEST TYPE OPTIONS
Certification: ReconciliationAccount Reassignment
 Account Grouping: Create New Account Group / Add Accounts to Group
 Account Grouping: Add account to existing group
 Account Grouping: Remove account from group
 Account Setting Change: Team Assignment
 Account Setting Change: Frequency Adjustment
 Account Setting Change: Account Criticality
 Account Setting Change: Auto-Cert Eligibility
 Account Setting Change: Exclude from Auto Certify
 Account Setting Change: Other Settings
 Account Decertification Request
 Reconciliation out of balance (Unidentified difference): BSAR interface issue
 User Unable to view account / reconciliation
 Data Refresh / Reloading
 Reconciliation : Reporting
 Other
Certification: Journal EntryJournal Decertification Request
 Journal Deletion Request
 Journal Posting Issue: Validation Errors (before certification and posting)
 Journal Posting Issue: Error on Post (posting error/pending/failed Journal Status)
 Recurring JE Issue: Failed entry
 Recurring JE Issue: Entry not auto-certifying
 Recurring JE Issue: Other
 User unable to view Journal Entry
 Late Period/Time Updates
 Threshold Updates
 Journal Entry : Reporting
 Other
CloseChange Queue / Action Plan
 Change Task Assignment / Scheduler
 Change Hierarchy 
 Change Frequency
 Period Configuration 
 Automated Task Submission
 Change Task Instructions/ Description 
 Change Request Roles / Permissions
 Proxy Issues/Requests
 Get Dashboard Access
 Request a Report
 Other
OtherReporting Issue
 New Entity Request
 Unable to Access Cadency Production
 Access to Cadency  lower environment
 Cadency General Question

Note : 

  • Order of these request types should be in alphabetical order and 'Other' option should ALWAYS be placed at the last.

vinnus
Tera Contributor

var GetRequestTypeOptions = Class.create();

GetRequestTypeOptions.prototype = Object.extendsObject(AbstractAjaxProcessor, {

 

    getRequestTypes: function() {

        var module = this.getParameter('sysparm_module');

        var options = [];

 

        if (module == 'Certification: Reconciliation') {

            options = [

                "Account Decertification Request",

                "Account Grouping: Add account to existing group",

                "Account Grouping: Create New Account Group / Add Accounts to Group",

                "Account Grouping: Remove account from group",

                "Account Reassignment",

                "Account Setting Change: Account Criticality",

                "Account Setting Change: Auto-Cert Eligibility",

                "Account Setting Change: Exclude from Auto Certify",

                "Account Setting Change: Frequency Adjustment",

                "Account Setting Change: Other Settings",

                "Account Setting Change: Team Assignment",

                "Data Refresh / Reloading",

                "Reconciliation : Reporting",

                "Reconciliation out of balance (Unidentified difference): BSAR interface issue",

                "User Unable to view account / reconciliation",

                "Other"

            ];

        } else if (module == 'Certification: Journal Entry') {

            options = [

                "Journal Decertification Request",

                "Journal Deletion Request",

                "Journal Entry : Reporting",

                "Journal Posting Issue: Error on Post (posting error/pending/failed Journal Status)",

                "Journal Posting Issue: Validation Errors (before certification and posting)",

                "Late Period/Time Updates",

                "Recurring JE Issue: Entry not auto-certifying",

                "Recurring JE Issue: Failed entry",

                "Recurring JE Issue: Other",

                "Threshold Updates",

                "User unable to view Journal Entry",

                "Other"

            ];

        } else if (module == 'Close') {

            options = [

                "Automated Task Submission",

                "Change Frequency",

                "Change Hierarchy",

                "Change Queue / Action Plan",

                "Change Request Roles / Permissions",

                "Change Task Assignment / Scheduler",

                "Change Task Instructions/ Description",

                "Get Dashboard Access",

                "Period Configuration",

                "Proxy Issues/Requests",

                "Request a Report",

                "Other"

            ];

        } else if (module == 'Other') {

            options = [

                "Access to Cadency lower environment",

                "Cadency General Question",

                "New Entity Request",

                "Reporting Issue",

                "Unable to Access Cadency Production"

            ];

        }

 

        return new JSON().encode(options.sort((a, b) => {

            // Alphabetize except keeping "Other" last if it exists

            if (a === "Other") return 1;

            if (b === "Other") retu

rn -1;

            return a.localeCompare(b);

        }));

    }

 

});

vinnus
Tera Contributor

function onChange(control, oldValue, newValue, isLoading) {

    if (isLoading || newValue == '') {

        return;

    }

 

    var requestType = g_form.getControl('request_type'); // adjust if your variable name is different

    g_form.clearOptions('request_type');

 

    // Call Script Include via GlideAjax

    var ga = new GlideAjax('GetRequestTypeOptions');

    ga.addParam('sysparm_name', 'getRequestTypes');

    ga.addParam('sysparm_module', newValue);

    ga.getXMLAnswer(function(response) {

        var options = JSON.parse(response);

        for (var i = 0; i < options.length; i++) {

            g_form.addOption('request_type', options[i], options[i]);

        }

    });

}