• Vaughan Coder 32
  • NEWBIE
  • 0 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 2
    Replies
Hello All,

I am having a bit of trouble with a specific legacy code item. There is a popup window who's parent is a visualforce page surfaced within a lightning commmunity. When that popup page fires a "window.opener.method()" where method is the method name, I run into the following error in the console:
[LEXI:navigator:communication] failed to connect with lightning experience WindowMessengerTimeoutError: "Timeout exceeded waiting for handshake to complete from parent"
<apex:page showHeader="false" sidebar="false" tabStyle="Case" controller="controller">
    <apex:includeScript value="{!$Resource.jquery}" />
    <apex:includeScript value="{!URLFOR($Resource.loumultiselect, 'lou-multi-select-cf6d6c6/js/jquery.multi-select.js')}" />
    <apex:stylesheet value="{!URLFOR($Resource.loumultiselect, 'lou-multi-select-cf6d6c6/css/multi-select.css')}" />
    <apex:form >
    <apex:sectionHeader subtitle="Name " title="Case {!cs.CaseNumber}" />
    <apex:pageMessages />
    <apex:outputPanel layout="none" rendered="{!showCloseWindow}">
        <script>
         		console.log( window.opener);
        window.top.opener.method();
        //window.close();
        </script>
    </apex:outputPanel>
    </apex:form>
Then the parent vfp
<apex:page showHeader="true" sidebar="true" standardController="Case" extensions="extension"  action="{!upsertCaseNew}" docType="html-5.0">
<apex:form >

	<apex:actionFunction name="method" action="{!apexMethod}" reRender="container" status="pageStatus"/>

	</apex:form>
	
</apex:page>


 
Hello All,

I am currently dealing with an issue in which a visualflow appears to be logging data on a "Create Record" request that the system is not accepting. The input seems to be filled but the error I am getting is that the field is required and set to null here is what I am seeing when I debug:
CREATE RECORDS: CreateWorkOrder
Create one WorkOrder record where:
AccountId = {!OriginalCase.AccountId} (0011g00000dCVfHAAW)
AssetId = {!SelectedAssetId} (02i1g000002CP3vAAG)
CaseId = {!NewCaseId} (5001g000008nNipAAE)
ContactId = {!OriginalCase.ContactId} (null)
OwnerId = {!SelectedUserId} (00G1g000001JTFCEA4)
Priority = {!Work_Order_Priority} (Low)
Field_Name__c = {!FieldName} (Picklist_Value)
RecordTypeId = {!RecordTypeId} (012C00000007xTqIAI)
Status = {!Work_Order_Status} (New)

Result
Failed to create record.

Error Occurred: This error occurred when the flow tried to create records: REQUIRED_FIELD_MISSING: Required fields are missing: [Field_Name__c]. You can look up ExceptionCode values in the SOAP API Developer Guide.
No workflows or process builders are adjusting the results. Am I misreading the results? Anything I could check?
Hello All,

I am having a bit of trouble with a specific legacy code item. There is a popup window who's parent is a visualforce page surfaced within a lightning commmunity. When that popup page fires a "window.opener.method()" where method is the method name, I run into the following error in the console:
[LEXI:navigator:communication] failed to connect with lightning experience WindowMessengerTimeoutError: "Timeout exceeded waiting for handshake to complete from parent"
<apex:page showHeader="false" sidebar="false" tabStyle="Case" controller="controller">
    <apex:includeScript value="{!$Resource.jquery}" />
    <apex:includeScript value="{!URLFOR($Resource.loumultiselect, 'lou-multi-select-cf6d6c6/js/jquery.multi-select.js')}" />
    <apex:stylesheet value="{!URLFOR($Resource.loumultiselect, 'lou-multi-select-cf6d6c6/css/multi-select.css')}" />
    <apex:form >
    <apex:sectionHeader subtitle="Name " title="Case {!cs.CaseNumber}" />
    <apex:pageMessages />
    <apex:outputPanel layout="none" rendered="{!showCloseWindow}">
        <script>
         		console.log( window.opener);
        window.top.opener.method();
        //window.close();
        </script>
    </apex:outputPanel>
    </apex:form>
Then the parent vfp
<apex:page showHeader="true" sidebar="true" standardController="Case" extensions="extension"  action="{!upsertCaseNew}" docType="html-5.0">
<apex:form >

	<apex:actionFunction name="method" action="{!apexMethod}" reRender="container" status="pageStatus"/>

	</apex:form>
	
</apex:page>


 

How do I go about getting all groups and it's members via a soql query?

 

SELECT Id, DeveloperName, GroupMember
FROM Group

 

I tried this and it gave me an error.