• Bo Montier
  • NEWBIE
  • 0 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 1
    Replies
I created a visualforce page to allow creation of custom object records. I want this page/form visible on the Case Lightning Page in a Visualforce component, but it is not available in the list of pages on the Case Object. It IS available on the Custom Object lightning page as a component. 

How can I allow the page to be displayed on a different object than the source object? 

Visualforce code and some screenshots below.

<apex:page standardController="RDC_Scanners__c">
  
            <apex:form >
              <apex:pageBlock title="New RDC Scanner"> 
            <apex:pageBlockButtons >
            <apex:commandButton action="{!save}" value="Save"/>
              <apex:commandButton value="Save & New" action="{!quicksave}" onclick="window.location.reload();"/>
                
            </apex:pageBlockButtons>
                 <apex:pageBlockSection columns="1">
                    <apex:inputField value="{!RDC_Scanners__c.Customer__c}"/>
                    <apex:inputField value="{!RDC_Scanners__c.Install_Date__c}"/>
                    <apex:inputField value="{!RDC_Scanners__c.Location__c}"/>
                    <apex:inputField value="{!RDC_Scanners__c.Name}"/>
                    <apex:inputField value="{!RDC_Scanners__c.Scanner_Type__c}"/>
                    <apex:inputField value="{!RDC_Scanners__c.Serial_Number__c}"/>
                    <apex:inputField value="{!RDC_Scanners__c.Status__c}"/>
            
                </apex:pageBlockSection>

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

Case Lightning Page: User-added image

Custom Object (RDC_Scanners) Lightning Page:
 User-added image
I am using a flow (started by a process builder) to create a Campaign Member record on a designated Campaign.

The Process Builder identifies the correct Contacts to be entered into the Campaign after they are uploaded via our nightly Data Loader Integration run. From there they start the flow interview and send over the appropriate variable.

The flow gathers appropriate data from related records, tests to see if the contact is already a campaign member, and then creates a Campaign Member record where appropriate.

When I debug the flow with an individual record variable, the process works without issue. When I test it with the nightly run, however, I receive Duplicate Value errors despite the fact that the Campaign currently has no Campaign Members and the fact that I have a Duplicate check IN the flow itself. 

Here is the error:Error Occurred: This error occurred when the flow tried to create records: DUPLICATE_VALUE: Attempted to add an entity '0032S00002B80wF' to a campaign '7012S000000qr97' more than once.. You can look up ExceptionCode values in the SOAP API Developer Guide
 

I am on the Test Web Chat section of the Add Your Branding to Snap-In and cannot get the chat to work. It shows whether I am online or offline, but when I click "Chat with an Expert" it goes to Loading and then nothing.

I've made sure Visualforce.com is whitelisted. I've recreated the process several times, but this is where I get stuck every time.
User-added imageUser-added imageUser-added image

Here is my Code: 

<apex:page standardStylesheets="false" sidebar="false" showHeader="false"> <style type='text/css'> .embeddedServiceHelpButton .helpButton .uiButton { background-color: #565656; font-family: "Salesforce Sans", sans-serif; } .embeddedServiceHelpButton .helpButton .uiButton:focus { outline: 1px solid #565656; } @font-face { font-family: 'Salesforce Sans'; src: url('https://www.sfdcstatic.com/system/shared/common/assets/fonts/SalesforceSans/SalesforceSans-Regular.woff') format('woff'), url('https://www.sfdcstatic.com/system/shared/common/assets/fonts/SalesforceSans/SalesforceSans-Regular.ttf') format('truetype'); } </style> <script type='text/javascript' src='https://service.force.com/embeddedservice/5.0/esw.min.js'></script> <script type='text/javascript'> var initESW = function(gslbBaseURL) { embedded_svc.settings.displayHelpButton = true; //Or false embedded_svc.settings.language = ''; //For example, enter 'en' or 'en-US' //embedded_svc.settings.defaultMinimizedText = '...'; //(Defaults to Chat with an Expert) //embedded_svc.settings.disabledMinimizedText = '...'; //(Defaults to Agent Offline) //embedded_svc.settings.loadingText = ''; //(Defaults to Loading) //embedded_svc.settings.storageDomain = 'yourdomain.com'; //(Sets the domain for your deployment so that visitors can navigate subdomains during a chat session) // Settings for Live Agent //embedded_svc.settings.directToButtonRouting = function(prechatFormData) { // Dynamically changes the button ID based on what the visitor enters in the pre-chat form. // Returns a valid button ID. //}; //embedded_svc.settings.prepopulatedPrechatFields = {}; //Sets the auto-population of pre-chat form fields //embedded_svc.settings.fallbackRouting = []; //An array of button IDs, user IDs, or userId_buttonId //embedded_svc.settings.offlineSupportMinimizedText = '...'; //(Defaults to Contact Us) embedded_svc.settings.enabledFeatures = ['LiveAgent']; embedded_svc.settings.entryFeature = 'LiveAgent'; embedded_svc.init( 'https://playful-panda-wge3na-dev-ed.my.salesforce.com', 'https://abchat-developer-edition.na91.force.com/liveAgentSetupFlow', gslbBaseURL, '00D2E000000mVht', 'Chat_Agents', { baseLiveAgentContentURL: 'https://c.la1-c2-ia2.salesforceliveagent.com/content', deploymentId: '5722E0000004d22', buttonId: '5732E0000004dXK', baseLiveAgentURL: 'https://d.la1-c2-ia2.salesforceliveagent.com/chat', eswLiveAgentDevName: 'Chat_Agents', isOfflineSupportEnabled: false } ); }; if (!window.embedded_svc) { var s = document.createElement('script'); s.setAttribute('src', 'https://playful-panda-wge3na-dev-ed.my.salesforce.com/embeddedservice/5.0/esw.min.js'); s.onload = function() { initESW(null); }; document.body.appendChild(s); } else { initESW('https://service.force.com'); } </script> </apex:page>

I created a visualforce page to allow creation of custom object records. I want this page/form visible on the Case Lightning Page in a Visualforce component, but it is not available in the list of pages on the Case Object. It IS available on the Custom Object lightning page as a component. 

How can I allow the page to be displayed on a different object than the source object? 

Visualforce code and some screenshots below.

<apex:page standardController="RDC_Scanners__c">
  
            <apex:form >
              <apex:pageBlock title="New RDC Scanner"> 
            <apex:pageBlockButtons >
            <apex:commandButton action="{!save}" value="Save"/>
              <apex:commandButton value="Save & New" action="{!quicksave}" onclick="window.location.reload();"/>
                
            </apex:pageBlockButtons>
                 <apex:pageBlockSection columns="1">
                    <apex:inputField value="{!RDC_Scanners__c.Customer__c}"/>
                    <apex:inputField value="{!RDC_Scanners__c.Install_Date__c}"/>
                    <apex:inputField value="{!RDC_Scanners__c.Location__c}"/>
                    <apex:inputField value="{!RDC_Scanners__c.Name}"/>
                    <apex:inputField value="{!RDC_Scanners__c.Scanner_Type__c}"/>
                    <apex:inputField value="{!RDC_Scanners__c.Serial_Number__c}"/>
                    <apex:inputField value="{!RDC_Scanners__c.Status__c}"/>
            
                </apex:pageBlockSection>

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

Case Lightning Page: User-added image

Custom Object (RDC_Scanners) Lightning Page:
 User-added image