• Melissa Driscoll 14
  • NEWBIE
  • 20 Points
  • Member since 2022

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 17
    Questions
  • 6
    Replies
the full email was to many characters to paste here but is there away around this error?

Error element Create_Additional_Session_2 (FlowRecordCreate).
This error occurred when the flow tried to create records: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY: BQECaseTrigger: System.LimitException: Too many future calls: 51. You can look up ExceptionCode values in the SOAP API Developer Guide (https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_calls_concepts_core_data_objects.htm" style="color:blue; text-decoration:underline).


Result
Failed to create record.

 
We need the interval table - 
what am I missing
I am a system administrator and I do not see the interval table in Workbench or Developer console
User-added imageUser-added image
But this shwows the accounts and their contacts.

I need it to show the account Hierarchy on the page layout.
Class

public class accconhierarchy {
    Private list<account> acc;
    
    public List<accountWrap> accountList { get; set; }
    public accconhierarchy (){
        List<contactWrap> cw;
        accountList = new List<accountWrap>();
        acc = [select id,name,industry,billingcountry,createdbyid,(select id,name,email,phone from contacts) from account limit 20];
        for(account a:acc){
            cw = new list<contactWrap>();
            For(contact co : a.contacts){
               cw.add(new contactWrap(co));
            }
            accountList.add(new accountWrap(a,false,cw));
        }
    }
    
    public class accountWrap{
        public account oAccount{get;set;}
        public boolean isSelected{get;set;}
        public List<contactWrap> contactset{get;set;}
        public accountWrap(account a,boolean b, List<contactWrap> c){
            oAccount=a;
            isSelected=b;
            contactset =c;            
        }
    }
    
    public class contactWrap{
        public contact oContact{get;set;}
        public boolean isSelected{get;set;}        
        public contactWrap(contact a){
            oContact=a;
            isSelected=false;                       
        }
    }
    
}

Visualforce
<apex:page controller="accconhierarchy"> <apex:form > <apex:pageBlock > <style type="text/css"> .showContacts { background: transparent url('/img/alohaSkin/twisty_sprite.png') 0 0 no-repeat; } .hideContacts { background: transparent url('/img/alohaSkin/twisty_sprite.png') 0 -11px no-repeat; } </style> <apex:outputPanel layout="none" rendered="{!accountList.size!=0}"> <table id="tableAccount" class="list" border="0" cellpadding="0" cellspacing="0"> <thead> <tr class="headerRow"> <th class="actionColumn">Action</th> <th>Account Name</th> <th>Industry</th> <th>Billing Country</th> <th>Createdby</th> </tr> </thead> <tbody> <apex:repeat id="repeatAccount" value="{!accountList}" var="item"> <apex:variable var="acc" value="{!item.oAccount}" /> <tr id="{!$Component.repeatAccount}:account" class="dataRow"> <td class="actionColumn"> <apex:inputCheckbox id="selectAccountRow" value="{!item.IsSelected}" onclick="javascript:toggleSelectAll(this, '{!$Component.repeatAccount}');"/> </td> <td class="dataCell"> <apex:outputLink id="linkShowHide" value="javascript:toggleContactRow('{!$Component.repeatAccount}')"> <img id="{!$Component.repeatAccount}:Img" src="/s.gif" class="showContacts" border="0" height="11px" width="11px" style="padding-right: 4px;"/> <apex:outputField value="{!acc.Name}" /> </apex:outputLink> </td> <td class="dataCell"><apex:outputField value="{!acc.Industry}" /></td> <td class="dataCell"><apex:outputField value="{!acc.billingcountry}" /></td> <td class="dataCell"><apex:outputField value="{!acc.CreatedById}" /></td> </tr> <tr id="{!$Component.repeatAccount}:Contact" class="dataRow" style="display:none;"> <td colspan="100" style="padding:10px; padding-left: 45px;"> <h3>Contacts</h3> <br/> <apex:outputPanel layout="none"> <table id="tableAccountContacts" class="list" border="0" cellpadding="0" cellspacing="0"> <thead> <tr class="headerRow"> <th class="actionColumn">Action</th> <th>Name</th> <th>Email</th> <th>Phone</th> </tr> </thead> <tbody> <apex:repeat id="repeatAccountContacts" value="{!item.contactSet}" var="subitem"> <apex:variable value="{!subitem.oContact}" var="con" /> <tr class="dataRow"> <td class="actionColumn"><apex:inputCheckbox id="selectContactRow" styleclass="ContactCheckbox" value="{!subitem.IsSelected}"/></td> <td class="dataCell"><apex:outputField value="{!con.Name}" /></td> <td class="dataCell"><apex:outputField value="{!con.email}"/></td> <td class="dataCell"><apex:outputField value="{!con.phone}" /></td> </tr> </apex:repeat> </tbody> </table> </apex:outputPanel> </td> </tr> </apex:repeat> </tbody> </table> </apex:outputPanel> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script> <script> jQuery.noConflict(); function toggleContactRow(rowId) { try { var AccountImg = jQuery(document.getElementById(rowId + ":Img")); var ContactsRow = jQuery(document.getElementById(rowId + ":Contact")); if (AccountImg.hasClass("hideContacts")) { AccountImg.attr("class", "showContacts"); ContactsRow.hide(); } else { AccountImg.attr("class", "hideContacts"); ContactsRow.show(); } } catch (e) { alert(e); } } function toggleSelectAll(elCheckbox, rowId) { try { var SelectAll = jQuery(elCheckbox); var ContactsRow = jQuery(document.getElementById(rowId + ":Contact")); ContactsRow.find(".ContactCheckbox").each(function() { jQuery(this).prop("checked", SelectAll.is(":checked")); }); } catch (e) { alert(e); } } </script> </apex:pageBlock> </apex:form> </apex:page>

 
I have Created a flow that is working perfectly but I cannot figure out how to add quote line items to the quote I auto create 

Business case is:
we auto add product line items based on certain criteria when we create an Opportunity. 
Two of these cases require a quote to be created and synced. - I have this down (sorta)
When I auto create the quote, I need to add the quote line items with a discount. 

And I am stuck. Help
how do I check the Available for Lightning Experience, Experience Builder sites, and the mobile app
on the visualforce Page for hubspot?

User-added image
<apex:page standardcontroller="Account"> <apex:dataList value="{!Account}" var="a"><br></br>
<table style="border-collapse: collapse; width: 100%; height: 100px;" border="0">
<tbody>
<tr style="height: 25px;"> <td style="width: 50%; height: 25px;font-size:15px;font-weight:bold">Created By:&nbsp;<apex:outputLabel style="font-size:12px">{!a.CreatedBy.Full_Name__c}</apex:outputLabel></td>

<td style="width: 50%; height: 25px;font-size:15px;font-weight:bold">Record ID:&nbsp;<apex:outputLabel style="font-size:12px">{!a.Id}</apex:outputLabel></td></tr>

<tr style="height: 25px;"> <td style="width: 50%; height: 25px;font-size:15px;font-weight:bold">Last Modified Date:<apex:outputLabel style="font-size:12px">{!a.LastModifiedDate}</apex:outputLabel></td> </tr>

<tr style="height: 25px;"> <td style="width: 50%; height: 25px;font-size:15px;font-weight:bold">Owner:&nbsp;<apex:outputLabel style="font-size:12px">{!a.Owner.Full_Name__c}</apex:outputLabel></td>

<td style="width: 50%; height: 25px;font-size:15px;font-weight:bold">BQE CRM ID:&nbsp;<apex:outputLabel style="font-size:12px">{!a.BQECRMID__c}</apex:outputLabel></td> </tr> </tbody>
</table>
</apex:dataList>
</apex:page>

User-added image

Custom Object is Account Executive Handoff - This is my Error

Error: Compile Error:
PricebookEntry.Name, TotalPrice, Quantity, On_Support__c from OpportunityLineItem
^
ERROR at Row:1:Column:71
No such column 'On_Support__c' on entity 'OpportunityLineItem'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names. at line 11 column 21
 

public class HandoffProducts
{
    public List<OpportunityLineItem> lineItems { get; set; }
    
    Public HandoffProducts( ApexPages.StandardController std )
    {
        if( std.getRecord().Id != null )
        {
           Account_Executive_Handoff__c con = [ Select Id, Opportunity__c from Account_Executive_Handoff__c where Id =: std.getRecord().Id ];
            
        lineItems = [ Select Id, Opportunityid, PricebookEntry.Name, TotalPrice, Quantity, On_Support__c from OpportunityLineItem where Opportunityid =: con.Opportunity__c ];
        }
        else
        {
            lineItems = new List<OpportunityLineItem>();
        }
    }

    public void save()
    {
        if( lineItems.size() > 0 )
            update lineItems;
    }
}

is there any way to create a pop up notification when an Profile User changes and account owner to a different certain profile

we want to allow this change but we want a notification to pop up.
 

I am not a developer but I am trying: 

Obviously this is worng but any assitance would be greatly appreciated

Class - but i don't have a test class
public class QuoteDescriptionIsNotBlank {
 String.isNotBlank(Quote.Description)   
}

We are close to hitting our API Calls in a 24 hour period. I have a few questions regarding this.
1.) how do I tell what is using so much and why
2.) the classic API usage report is nice but it doesn't say why. Like my user has a crazy amount of usage of usage of API calls, is that because of the flows I create
3.) is there an optimizer type thing for API Usage?
Trying to bring a custom object list onto the cases that the accounts are tied to but getting this error 
Error: Unknown property 'VisualforceArrayList.Id'

<apex:page standardController="Case">
<apex:dataList value="{!Case.Account}" var="a"> 
 <b>Name:</b> &nbsp;<apex:outputlink value="/{!a.AE_Handoffs__r.Id}">{!a.AE_Handoffs__r.Name}</apex:outputlink> <BR><BR>
 <b>Training:</b>&nbsp; {!!a.AE_Handoffs__r.Training__c} <BR><BR>
                <b>Training Notes:</b>&nbsp;<td><p>{!!a.AE_Handoffs__r.Training_Notes__c}</p></td><BR><BR>
                <b>Data Migration:</b>&nbsp; {!!a.AE_Handoffs__r.Data_Migration__c}  <BR><BR>
                <b>Data Migration Notes:</b>&nbsp;<td><p>{!!a.AE_Handoffs__r.Data_Migration_Notes__c}</p></td> <BR><BR>
                <b>Integration:</b>&nbsp; {!!a.AE_Handoffs__r.Integration__c} <BR><BR>
                <b>Integration Notes:</b>&nbsp; <td><p>{!!a.AE_Handoffs__r.Integration_Notes__c}</p></td>
                </BR></BR>
                 </BR></BR>
                  </BR></BR>
                   </BR></BR>
                    </BR></BR>
                     </BR></BR>
</apex:datalist>
</apex:page>

I am new to this but  I need to pull in the line times from the master relationship Opportunity. 

I am an admin not a developer but I don't have a developer

This is the error on the page
List attribute parent name 'o' is an invalid field name for entity Handoff

<apex:page standardcontroller="Handoff__c">
<apex:dataList value="{!Handoff__c.Opportunity__r}" var="o"> <apex:relatedList list="o.OpportunityLineItem" />
</apex:dataList>
</apex:page>

I need the following to be in rows and not columns
<apex:page standardcontroller="Account">
<apex:pageBlock >
<apex:pageBlockSection title="Handoff">
<apex:pageBlockTable value="{!Account.Handoffs__r}" var="h"> <apex:Column value="{!h.Name}"/>
<apex:column value="{!h.Account__c}"/>
<apex:column value="{!h.Opportunity__c}"/>
<apex:column value="{!h.Point_of_Contact__c}"/>
<apex:column value="{!h.Training__c}"/>
<apex:column value="{!h.Training_Notes__c}"/>
<apex:column value="{!h.Data_Migration__c}"/>
<apex:column value="{!h.Data_Migration_Notes__c}"/>
<apex:column value="{!h.Integration__c}"/>
<apex:column value="{!h.Integration_Notes__c}"/> </apex:pageBlockTable>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:page>
im getting unknonw peropert string.name
<apex:page StandardController="Handoff__c">     
    <Head>     
    <apex:form >        
    <apex:pageBlock title="Opportunity Product">                 
    <apex:pageBlockSection title="Opportunity Product Detail">                 
    <apex:outputField value="{!Handoff__c.Opportunity__r.Name}" />  
    <apex:repeat value="{!Handoff__c.Opportunity__r.OpportunityLineItems}" var="c">
       <td> {!c.PricebookEntry.Product2Id.Name} </td>
       <td> {!c.Quantity} </td>
</apex:repeat>               
    </apex:pageBlockSection>             
    </apex:pageblock>      
    </apex:form>       
    </head>
    </apex:page>
User-added image
<apex:page standardcontroller="Account">
<apex:pageBlock >
<apex:pageBlockTable value="{!Account.Handoffs__r}" var="h">
<apex:pageBlockSection title="Handoff" columns="1">
<apex:outputText value="Handoff Name {!h.Name}"/>
<apex:outputText value="Account {!h.Account__c}" />
<apex:outputText value="Opportunity {!h.Opportunity__c}"/> <apex:outputText value="Point of Contact {!h.Point_of_Contact__c}"/> </apex:pageBlockSection>
</apex:pageBlockTable>
</apex:pageBlock> </apex:page>
I want to be able to pick a due date in the task or event and have a number of tasks and events on that date show up .User-added image
What I am being asked is to create a mass email to the contacts associated with the case from a list view.
Reason is if there is multiple cases with the same situation: instead of going into each case to let them know the issue we would like to check the box on the list view and click a button to choose the template. 

I know how to create a list view button but I am not great at writing code. Is there any direction I can go to create a button this would be greatful
is there any way to create a pop up notification when an Profile User changes and account owner to a different certain profile

we want to allow this change but we want a notification to pop up.
 

I am not a developer but I am trying: 

Obviously this is worng but any assitance would be greatly appreciated

Class - but i don't have a test class
public class QuoteDescriptionIsNotBlank {
 String.isNotBlank(Quote.Description)   
}

I need the following to be in rows and not columns
<apex:page standardcontroller="Account">
<apex:pageBlock >
<apex:pageBlockSection title="Handoff">
<apex:pageBlockTable value="{!Account.Handoffs__r}" var="h"> <apex:Column value="{!h.Name}"/>
<apex:column value="{!h.Account__c}"/>
<apex:column value="{!h.Opportunity__c}"/>
<apex:column value="{!h.Point_of_Contact__c}"/>
<apex:column value="{!h.Training__c}"/>
<apex:column value="{!h.Training_Notes__c}"/>
<apex:column value="{!h.Data_Migration__c}"/>
<apex:column value="{!h.Data_Migration_Notes__c}"/>
<apex:column value="{!h.Integration__c}"/>
<apex:column value="{!h.Integration_Notes__c}"/> </apex:pageBlockTable>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:page>
User-added image
<apex:page standardcontroller="Account">
<apex:pageBlock >
<apex:pageBlockTable value="{!Account.Handoffs__r}" var="h">
<apex:pageBlockSection title="Handoff" columns="1">
<apex:outputText value="Handoff Name {!h.Name}"/>
<apex:outputText value="Account {!h.Account__c}" />
<apex:outputText value="Opportunity {!h.Opportunity__c}"/> <apex:outputText value="Point of Contact {!h.Point_of_Contact__c}"/> </apex:pageBlockSection>
</apex:pageBlockTable>
</apex:pageBlock> </apex:page>
I want to be able to pick a due date in the task or event and have a number of tasks and events on that date show up .User-added image
What I am being asked is to create a mass email to the contacts associated with the case from a list view.
Reason is if there is multiple cases with the same situation: instead of going into each case to let them know the issue we would like to check the box on the list view and click a button to choose the template. 

I know how to create a list view button but I am not great at writing code. Is there any direction I can go to create a button this would be greatful