Skip to main content

Hi,

I created a custom Visualforce Page to show more related objects to a Work Order in the Field Service Console Lightning Box.

It simply shows the skill requirements and related Service Appointments.

 

After the switch to enhanced domains the links doesn´t work anymore.

In the console this Error is shown:

Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://xyz.lightning.force.com') does not match the recipient window's origin ('https://xyz--fsl.vf.force.com').

 

Every time I click a link this Error is also logged:

Uncaught DOMException: Failed to execute 'postMessage' on 'Window': Invalid target origin 'undefined' in a call to 'postMessage'.

 

As I researched this error I came across the suggestion to change the url of the links to the new enhanced url. But in the visual force Page I don´t create the links myself. This is the Visualforce Page:

<apex:page showHeader="false" sidebar="false" standardController="WorkOrder" lightningStylesheets="true">		<apex:pageBlock mode="maindetail">						<apex:relatedList list="SkillRequirements"/>						<apex:relatedList list="ServiceAppointments"/>                        		</apex:pageBlock></apex:page>

Is there a way to change the origin in the visual force page directly?

 

Thanks for your help

Links not working in custom Visualforce Page in Field Service Console Lightning Box

 

@* Salesforce Developers *

1 réponse
  1. 20 juil. 2023, 08:35
    Did you find any resolution for this?
0/9000