How to Access Service Request Record Values from Action Chains in Redwood UI
Summary:
Unable to Retrieve Field Values Using getFieldValue() in VBS Action Chains on Redwood Service Request Details Page
Content (please ensure you mask any confidential information):
Hello Experts,
We are working with Oracle Fusion Service Redwood pages and attempting to retrieve Service Request field values from a VBS Action Chain.
Requirement
Our goal is to access field values on the Service Request Details page so that we can implement additional conditional logic within our custom action chains.
Page Configuration
Path:
CX Service UI Extension App > service > ec > sr > details
Action Chain Code
JavaScript
define([ 'vb/action/actionChain', 'vb/action/actions', 'vb/action/actionUtils',], ( ActionChain, Actions, ActionUtils) => { 'use strict'; class vbEnterListener2 extends ActionChain { async run(context) { const { $page, $flow, $application, $base, $extension, $constants, $variables, $modules } = context; const getFieldResult = await $application?.modules?.uiEventsFramework?.getFieldValue('ServiceRequest.Title'); console.log("Action Chain SR Details Page.."); console.log("Title: " + getFieldResult); } } return vbEnterListener2;});