You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Date mismatch between ‘Filter Message’ and ‘Custom Internal Note’ in Service Request

Hi,

Date Show different in 'Filter Message' and Custom internal Note Section in Service Request.

Javascript Action chain code for 'Custom Internal Note'.

define([
'vb/action/actionChain',
'vb/action/actions',
'vb/action/actionUtils',
], (
ActionChain,
Actions,
ActionUtils
) => {
'use strict';

class getall_serviceRequests_messagesFetch extends ActionChain {

/**
* @param {Object} context
* @param {Object} params
* @param {{hookHandler:'vb/RestHookHandler'}} params.configuration
*/
async run(context, { configuration }) {
const { $page, $flow, $application, $base, $extension, $constants, $variables } = context;

const callRestEndpoint1 = await Actions.callRest(context, {
endpoint: 'oracle_cx_serviceUI:serviceRequests/getall_serviceRequests-messages',
uriParams: {
serviceRequests_Id: $base.variables.srNumber,
},
responseType: 'getallServiceRequestsMessagesResponse',
hookHandler: configuration.hookHandler,
requestType: 'json'
});

// Process items (clean HTML + format date)

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!