• Sidhant
  • NEWBIE
  • 100 Points
  • Member since 2016
  • Student


  • Chatter
    Feed
  • 2
    Best Answers
  • 0
    Likes Received
  • 1
    Likes Given
  • 0
    Questions
  • 26
    Replies
Working on getting this up and running but I ran into an error with the VF page. I have checked for hidden characters and formatting but just can’t seem to find why I am getting the errors below:
 
VF Page to be created:
 
<apex:page controller="ChronicallRecordingAPI" action="{!init}" showHeader="false" standardStylesheets="false">
 
    <flow:interview name="Chronicall_Recording_Link_API">
         <apex:param name="externallistenlink" value="{!externallistenlink}"/>
         <apex:param name="callid" value="{!callid}"/>
         <apex:param name="agent" value="{!agent}"/>
         <apex:param name="callDirection" value="{!callDirection}"/>
         <apex:param name="externalNumber" value="{!externalNumber}"/>
         <apex:param name="callgroup" value="{!callgroup}"/>
         <apex:param name="calltime" value="{!calltime}"/>
         <apex:param name="calltag" value="{!calltag}"/>
     </flow:interview>
</apex:page>
 
 
public class ChronicallRecordingAPI {
 
    public string externallistenlink {get; set;}
    public string callid{get; set;}
    public string agent{get; set;}
    public string callDirection{get; set;}
    public string externalNumber{get; set;}
    public string callgroup{get; set;}
    public string calltime{get; set;}
    public string calltag{get; set;}
 
    public PageReference init() {
    if ( ApexPages.currentPage().getParameters().get('externallistenlink') != null )
         externallistenlink = ApexPages.currentPage().getParameters().get('externallistenlink');
         
    if ( ApexPages.currentPage().getParameters().get('callid') != null )
         callid = ApexPages.currentPage().getParameters().get('callid');
 
    if ( ApexPages.currentPage().getParameters().get('agent') != null )
         agent = ApexPages.currentPage().getParameters().get('agent');
    
    if ( ApexPages.currentPage().getParameters().get('callDirection') != null )
         callDirection = ApexPages.currentPage().getParameters().get('callDirection');
        
    if ( ApexPages.currentPage().getParameters().get('externalNumber') != null )
         externalNumber = ApexPages.currentPage().getParameters().get('externalNumber');        
 
    if ( ApexPages.currentPage().getParameters().get('group') != null )
         callgroup = ApexPages.currentPage().getParameters().get('group');                                    
 
    if ( ApexPages.currentPage().getParameters().get('time') != null )
         calltime = ApexPages.currentPage().getParameters().get('time');
 
    if ( ApexPages.currentPage().getParameters().get('tag') != null )
         calltag = ApexPages.currentPage().getParameters().get('tag');
        
        return null;
    }
}
 
 
Errors that I am getting:
 

User-added image
 
I’ll be digging here as well but any help would be great.

Thanks
 
Hello community,

I try to code an apex trigger on sandbox based on lead conversion.

I explain to you : I have a lookup field to opportunities on my account page an I would like to put the opportunity converted on this field.
I try to make a process builder (doesn’t work) and a trigger when a lead is converted based on an other post :

trigger trigMapFields on Lead (before update) {
for(Lead lead:System.Trigger.new)
{
if (lead.IsConverted)
{
system.debug('');
Opportunity opp = [SELECT Id FROM Opportunity WHERE Opportunity.Id=:lead.ConvertedOpportunityId];
Account acc = [SELECT Id,Main_Account_Contact__c FROM Account WHERE Account.Id=:lead.ConvertedAccountId];
acc.Main_Opportunity__c = opp.id;
update acc;
system.debug('' + acc.Main_Account_Contact__c );
}
}}

But I think that lead.IsConverted doesn’t work.
I activated Use Apex Lead Convert which upon the conversion of leads, enforces required field settings, field validation rules, workflow actions in Lead settings.
Could you help me please. 

Thanks
Thomas
Working on getting this up and running but I ran into an error with the VF page. I have checked for hidden characters and formatting but just can’t seem to find why I am getting the errors below:
 
VF Page to be created:
 
<apex:page controller="ChronicallRecordingAPI" action="{!init}" showHeader="false" standardStylesheets="false">
 
    <flow:interview name="Chronicall_Recording_Link_API">
         <apex:param name="externallistenlink" value="{!externallistenlink}"/>
         <apex:param name="callid" value="{!callid}"/>
         <apex:param name="agent" value="{!agent}"/>
         <apex:param name="callDirection" value="{!callDirection}"/>
         <apex:param name="externalNumber" value="{!externalNumber}"/>
         <apex:param name="callgroup" value="{!callgroup}"/>
         <apex:param name="calltime" value="{!calltime}"/>
         <apex:param name="calltag" value="{!calltag}"/>
     </flow:interview>
</apex:page>
 
 
public class ChronicallRecordingAPI {
 
    public string externallistenlink {get; set;}
    public string callid{get; set;}
    public string agent{get; set;}
    public string callDirection{get; set;}
    public string externalNumber{get; set;}
    public string callgroup{get; set;}
    public string calltime{get; set;}
    public string calltag{get; set;}
 
    public PageReference init() {
    if ( ApexPages.currentPage().getParameters().get('externallistenlink') != null )
         externallistenlink = ApexPages.currentPage().getParameters().get('externallistenlink');
         
    if ( ApexPages.currentPage().getParameters().get('callid') != null )
         callid = ApexPages.currentPage().getParameters().get('callid');
 
    if ( ApexPages.currentPage().getParameters().get('agent') != null )
         agent = ApexPages.currentPage().getParameters().get('agent');
    
    if ( ApexPages.currentPage().getParameters().get('callDirection') != null )
         callDirection = ApexPages.currentPage().getParameters().get('callDirection');
        
    if ( ApexPages.currentPage().getParameters().get('externalNumber') != null )
         externalNumber = ApexPages.currentPage().getParameters().get('externalNumber');        
 
    if ( ApexPages.currentPage().getParameters().get('group') != null )
         callgroup = ApexPages.currentPage().getParameters().get('group');                                    
 
    if ( ApexPages.currentPage().getParameters().get('time') != null )
         calltime = ApexPages.currentPage().getParameters().get('time');
 
    if ( ApexPages.currentPage().getParameters().get('tag') != null )
         calltag = ApexPages.currentPage().getParameters().get('tag');
        
        return null;
    }
}
 
 
Errors that I am getting:
 

User-added image
 
I’ll be digging here as well but any help would be great.

Thanks
 
 I have 3 objects account, contact and cases. Account is related to contact and contact is related to cases..How to show all in one vf page?
I have a Billing end date field in Account. I would like this to be updated when I create or update a contract for this account. How to achieve this ?
1. If I wanted to do it going forward only ?
2. If I also want to handle past data.
I am exporting opportunity data to an excel file xls, but when the query has many data I get this error "Response size exceeded 15MB organization limit", can some one help me?

Thanks.
@isTest 
private class CheckRecursive_Test { 
static testMethod void CheckVarChanging() { 
Boolean result; 
result = checkRecursive.runOnce(); 
System.assert(result,'Result should have been true.'); 
result = null; 
result = checkRecursive.runOnce(); 
System.assert(!result,'Result should have been false.'); 
result = null; 
result = checkRecursive.runOnce(); 
System.assert(!result,'Result should have been false again.'); 



it is continually generating log files.

The behavior has been occurring since 7 am this morning. So far, it as not been stopped by CPU time limits, DML limits, or recursion limits.

Please suggest me the best.
HI I have implemented a coommand button with disabled="{!disablebutton}" 
where in disablebutton is a variable of boolean type.

Now i want the same functionality to be implemented over a HTML <button>
Please help me out in finding the solution...
  • December 15, 2016
  • Like
  • 0
Hi,
I'm new to salesforce.
In trigger handler i need to check values based on contact id.

First i need to check the contact id in contacts object then take that contact id and check whether that id is exists in Request custom object along with other fields.If the second query returns empty then i need to add that contact id in Request object.

following is my code 

public static void createProces(List<Contact> oContacts)
 {
 List<Request__c> lsProcess_Request;
  Request__c  oRequest = new  Request__c(); 
 List<Request__c> uRequest = new List<Request__c>();

 for (Contact c : [SELECT Id, Email,Status__c  FROM Contact WHERE Id IN: oContacts] )
        {   
            //check whether active process or not
            lsProcess_Request =[SELECT Active__c ,Member__c,attempt_1__C,attempt_2__C,Attempt_1__c,Attempt___c FROM  Request__c WHERE
                               member__c =: c.Id and Active__c=true and (Attempt_1__c = true OR Attempt_2 __c = true )];
          if(lsProcess_Request == null)
{
               oRequest.Member__c = c.id;             
                oRequest.Attempt_1_Date__c = Date.today();
                oRequest.Attempt_2_Date__c = Date.today()+3;
               lwr.add(oRequest); 
}
           }
}

 Please advise me on this.
Hello community,

I try to code an apex trigger on sandbox based on lead conversion.

I explain to you : I have a lookup field to opportunities on my account page an I would like to put the opportunity converted on this field.
I try to make a process builder (doesn’t work) and a trigger when a lead is converted based on an other post :

trigger trigMapFields on Lead (before update) {
for(Lead lead:System.Trigger.new)
{
if (lead.IsConverted)
{
system.debug('');
Opportunity opp = [SELECT Id FROM Opportunity WHERE Opportunity.Id=:lead.ConvertedOpportunityId];
Account acc = [SELECT Id,Main_Account_Contact__c FROM Account WHERE Account.Id=:lead.ConvertedAccountId];
acc.Main_Opportunity__c = opp.id;
update acc;
system.debug('' + acc.Main_Account_Contact__c );
}
}}

But I think that lead.IsConverted doesn’t work.
I activated Use Apex Lead Convert which upon the conversion of leads, enforces required field settings, field validation rules, workflow actions in Lead settings.
Could you help me please. 

Thanks
Thomas
Hi Team,

Suppose I have two Picklist fields one is standard field and another is custom picklist field.

Both fields are not using controlling-dependent concept.

Both fields have different picklists value.

Suppose we set one value in the custom field and we want related value in the another field.

Like we have values in one custom field A,B,C 

Another standard field contains values 1,2,3 

If the value is in custom field set to "A" I want the value in standard field is "1"

Please suggest me the best.

Regards,
Prabhat
After install Apps from AppExchange, pop up window of url https://test.salesforce.com, asking for Username and Password. Couldn't login.
Gibraltar Capital Advance is a fast-growing company in the alternative finance space.

We use Salesforce.com for all of our core operations, including marketing and customer acquisition, contracts, data aggregation, reporting, and customer service.

Our office is in Chicago (right near Union Station), so we’re close to transportation.

We’re seeking a part-time admin to work in our office 2-3 days each week.

Expected Duties
  • Look after our SF instance, and all of the integrations and packages that go with it (currently 8).
  • We’re into using SF to help us automate our processes. We need someone to manage all of that, including complex workflow rules, validation rules, and formulas. Ideal candidate has knowledge of Process Builder, Flows, and Apex Triggers (but is not required).
  • Help us maintain our campaigns, dashboards, and reports. We like cool reports.
  • Manage our change request log for updates and changes to our SF.com org
Qualifications
  • A certified Salesforce.com Administrator with 2+ years of experience
  • Someone who is a beast with Excel
  • Expertise with Apex Data Loader for Export/Import/Update/Upsert
  • The ability to translate our unique business needs into process automation
  • Your critical thinking skills allow you to determine when changes to SF make sense for moving the business forward, or if the change is redundant or otherwise not obviously useful.