Enable 'Set Field Value' within action chains in the Service Center

The 'Set Field Value' and 'Set Fields Value' Global Function Actions are additions to the existing VB Studio Action Pallet. These are designed to simplify the process of setting field values for system implementers who may not be proficient in JavaScript. They offer a user-friendly graphical interface where actions can be selected and configured from a list to create, modify, and implement functionality. This feature also enables users to set properties to set field values in different objects at the Service application level, making the process more straightforward, accessible, and flexible.

System implementers can use this feature to gain the following benefits:

  1. User-friendly Interface: The graphical interface of this feature is designed to be intuitive, even for those who are not proficient in JavaScript. This user-friendly design can increase the adoption rate and decrease the need for extensive training.
  2. Increased Flexibility: The 'Set Field Value' action allows users to set properties to set field value in different objects at the Service application level, providing them with the flexibility to tailor the setting field value process to their specific needs.
  3. Improved Agent Performance and Efficiency: Utilizing the 'Set Field Value' and 'Set Fields Value' action in automated action chains can significantly enhance agent performance and efficiency. By automating routine tasks, agents can focus on more complex issues, leading to faster resolutions and improved customer satisfaction.

Steps to Enable

Leverage the Visual Builder Studio to expose your applications. To learn more about extending your application using Visual Builder, visit Oracle Help Center > your apps service area of interest > Books > Configuration and Extension.

You can publish Set field value of a Field

To start using - Drag and Drop the Set Field Value Function under CX Service

Set Field

Code from code view

const setFieldResult = await $application?.modules?.uiEventsFramework?.setFieldValue('FieldName', 'value');

Set field of active record

Set field of active record

Code from code view

const setFieldResult = await $application?.modules?.uiEventsFramework?.setFieldValue('ServiceRequest.Title', 'test title');

Set Field with Validation

Set Field with Validation

Code from code view

const setFieldResult = await $application?.modules?.uiEventsFramework?.setFieldValue('ServiceRequest.Title', 'test title', true);

Set field with Given RecordContext

Set field with Given RecordContext

Set Fields

To start using - Drag and Drop the Set Fields Value Function under CX Service

Set fields

Code from code view

const setFieldResult = await $application?.modules?.uiEventsFramework?.setFieldValues([ { fieldName: 'ServiceRequest.Title', value: 'Hello UEF', }, { fieldName: 'ServiceRequest.ProblemDescription', value: 'First Description', }, { fieldName: 'ServiceRequest.SeverityCd', value: 'ORA_SVC_SEV2' }]);

Set fields of active record

Set fields of active record

Code from code view

const setFieldResult = await $application?.modules?.uiEventsFramework?.setFieldValues([ { fieldName: 'ServiceRequest.Title', value: 'Hello UEF', }, { fieldName: 'ServiceRequest.ProblemDescription', value: 'First Description', }, { fieldName: 'ServiceRequest.SeverityCd', value: 'ORA_SVC_SEV2' }]);

Set Fields with Validation

Set Fields with Validation

Code from code view

const setFieldResult = await $application?.modules?.uiEventsFramework?.setFieldValues([{ fieldName: 'ServiceRequest.Title', value: 'Hello UEF', }, { fieldName: 'ServiceRequest.ProblemDescription', value: 'First Description', }, { fieldName: 'ServiceRequest.SeverityCd', value: 'ORA_SVC_SEV2' }], true);

Set fields with Given RecordContext

Set fields with Given RecordContext

const recordContext = await $application?.modules?.uiEventsFramework?.getRecordContext();

const setFieldResult = await $application?.modules?.uiEventsFramework?.setFieldValues([{ fieldName: 'ServiceRequest.Title', value: 'Hello UEF', }, { fieldName: 'ServiceRequest.ProblemDescription', value: 'First Description', }, { fieldName: 'ServiceRequest.SeverityCd', value: 'ORA_SVC_SEV2' }], false, recordContext.response);

if no matching record found -getRecordContext returns Status Failure - Please add validation to check result status

Tips And Considerations

Setting a field value has multiple uses. You might need it for setting a field value upon another field change or simply default field when a page loads.

Key Resources

Access Requirements

  • You will need Visual Builder Studio access.