• ugsfdc
  • NEWBIE
  • 45 Points
  • Member since 2017

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 12
    Questions
  • 2
    Replies
If count of contacts has a value 2, 2 contacts should be created on the account inserted, if its 3, 3 contacts should be created on the inserted account. 

Can you please help me debug or correct this? receiving null pointer  error. 

trigger CoCLikeNumberofContacts on Account (before insert) {
    
    List<Contact> conList = new List<Contact>();
    Account a = new Account();
    integer b = a.Count_of_Contacts__c.intValue();
    
        
    for(Account a : trigger.new) {
        
        
        if(b > 0) {
           
            
               for(integer b = 0; b > 0; b++) {
                  
               conList.add(new Contact(Lastname = a.Name, AccountId = a.Id)); 
             
                
            }
        }
        insert conList;
        
    }         
}
Hi All,
I am facing soql limit exception with best practices also, May i know the reason please.

Regards,
ugsfdc
  • September 24, 2019
  • Like
  • 0
Hi All,
I am trying to do Aura Components Specialist for superbadge trailhead getting nelow error, please suggest me solution.

 This app can't be installed.
There are problems that prevent this package from being installed.
Duplicate NameThe name "Leaflet" is already used on component type: Static Resource. Please rename existing component.
Duplicate NameThe name "Map" is already used on component type: Aura Component Bundle. Please rename existing component.

Regards,
ugsfdc
 
  • September 15, 2019
  • Like
  • 0
Hi All,
May i know the lightning life cycle with example.

Regards,
ugsfdc
  • September 14, 2019
  • Like
  • 0
Hi All,
We have order of execution in apex like this may i know the order of execution in lightning and which one is executed first like component, js cotroller,helper,server controller....

Regards,
Ugsfdc
  • September 14, 2019
  • Like
  • 0
Hi Experts,
I want to know can any one explain me service cloud developement scenario.
               Thanks in advance,

Regards,
ugsfdc.
Hi Experts,

Could you please guide me, How to develop App in salesforce DX with any example.



Regards,
Ugsfdc.
  • February 21, 2018
  • Like
  • 0
Hi Experts,
I am in newly started Integrations, could any one provide me some scenarios for CTI to Salesforce integrations.


Thanks,
ugsfdc.
  • November 18, 2017
  • Like
  • 0
Dear Experts,
I want to fetch the second highest salary from object using SOQL and i was tried to use inner query it showing error.Could you suggest me how we can do it.



Regards,
ugsfdc.
 
  • November 05, 2017
  • Like
  • 0
Hi Experts,
Please provide code for Below scenario,
Create a Lightning component to show the top 5 Opportunity from the current user’s opportunity on the homepage.

You may show the fields like opportunity name, Stage as input select list and amount.

Allow the user to update the stage from same table list.

Thanks & Regards,
Ugsfdc.
  • October 31, 2017
  • Like
  • 0
Hi Experts,

I want to learn lightning, can any one give me suggestions for Documents or Links with scenarios.


Thanks & Regards,
Ugsfdc. 
  • October 30, 2017
  • Like
  • 0
Hi all,
Could you pls share the Best practices for web services in salesforce.



Thanks ,
ug.
  • October 13, 2017
  • Like
  • 0
  • October 13, 2017
  • Like
  • 0
If count of contacts has a value 2, 2 contacts should be created on the account inserted, if its 3, 3 contacts should be created on the inserted account. 

Can you please help me debug or correct this? receiving null pointer  error. 

trigger CoCLikeNumberofContacts on Account (before insert) {
    
    List<Contact> conList = new List<Contact>();
    Account a = new Account();
    integer b = a.Count_of_Contacts__c.intValue();
    
        
    for(Account a : trigger.new) {
        
        
        if(b > 0) {
           
            
               for(integer b = 0; b > 0; b++) {
                  
               conList.add(new Contact(Lastname = a.Name, AccountId = a.Id)); 
             
                
            }
        }
        insert conList;
        
    }         
}
Dear Experts,
I want to fetch the second highest salary from object using SOQL and i was tried to use inner query it showing error.Could you suggest me how we can do it.



Regards,
ugsfdc.
 
  • November 05, 2017
  • Like
  • 0