SOW Update contact_card_1_subHeadingTitles UX Client Script to include Root Managed Segment
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2025 06:35 AM
For Interactions, I need to include User's Department Root Managed Segment. Currently, I am displaying the title and department name. This is available in UX Client Script under the Req Info SNC.
The UX Client Script looks like below.
function getContact({api}) {
if (!api.data.lp_record.result)
return [{
"label": ""
}];
var title = api.data.lp_record.result.title ? api.data.lp_record.result.title.displayValue : '';
var dep = api.data.lp_record.result.department ? api.data.lp_record.result.department.displayValue : '';
}
tried adding new field like:
var managedSegment = api.data.lp_record.result.department.u_line_of_business
or api.data.lp_record.result.department.u_line_of_business.displayValue
etc, but no value is getting fetched.
Do we need to update any Script Include to set the value or how to retrieve in UX Client Script?