-
ChatterFeed
-
1Best Answers
-
0Likes Received
-
0Likes Given
-
12Questions
-
2Replies
How to Write a trigger which will create as many number of contacts on the account record equal to the value of a number field called count of contacts on account?
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;
}
}
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;
}
}
-
- Dileep Katari
- September 15, 2019
- Like
- 0
- Continue reading or reply
Facing the soql limit exception while follow the best practices also ?
Hi All,
I am facing soql limit exception with best practices also, May i know the reason please.
Regards,
ugsfdc
I am facing soql limit exception with best practices also, May i know the reason please.
Regards,
ugsfdc
-
- ugsfdc
- September 24, 2019
- Like
- 0
- Continue reading or reply
Aura Components Specialist for superbadge
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
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
-
- ugsfdc
- September 15, 2019
- Like
- 0
- Continue reading or reply
what is lightning life cycle ?
Hi All,
May i know the lightning life cycle with example.
Regards,
ugsfdc
May i know the lightning life cycle with example.
Regards,
ugsfdc
-
- ugsfdc
- September 14, 2019
- Like
- 0
- Continue reading or reply
What is the order of execution in lightning component ?
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
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
-
- ugsfdc
- September 14, 2019
- Like
- 0
- Continue reading or reply
Can you pls explain me in Service cloud any scenario?
Hi Experts,
I want to know can any one explain me service cloud developement scenario.
Thanks in advance,
Regards,
ugsfdc.
I want to know can any one explain me service cloud developement scenario.
Thanks in advance,
Regards,
ugsfdc.
-
- ugsfdc
- July 17, 2018
- Like
- 0
- Continue reading or reply
How to Develop Application in salesforce DX for devops requirement?
Hi Experts,
Could you please guide me, How to develop App in salesforce DX with any example.
Regards,
Ugsfdc.
Could you please guide me, How to develop App in salesforce DX with any example.
Regards,
Ugsfdc.
-
- ugsfdc
- February 21, 2018
- Like
- 0
- Continue reading or reply
Integration for CTI to Salesforce scenarios
Hi Experts,
I am in newly started Integrations, could any one provide me some scenarios for CTI to Salesforce integrations.
Thanks,
ugsfdc.
I am in newly started Integrations, could any one provide me some scenarios for CTI to Salesforce integrations.
Thanks,
ugsfdc.
-
- ugsfdc
- November 18, 2017
- Like
- 0
- Continue reading or reply
SOQL Issue
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.
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.
-
- ugsfdc
- November 05, 2017
- Like
- 0
- Continue reading or reply
Lightning App development for opportunity.
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.
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.
-
- ugsfdc
- October 31, 2017
- Like
- 0
- Continue reading or reply
I want to learn Lightning could you provide any documents/bloggs ?
Hi Experts,
I want to learn lightning, can any one give me suggestions for Documents or Links with scenarios.
Thanks & Regards,
Ugsfdc.
I want to learn lightning, can any one give me suggestions for Documents or Links with scenarios.
Thanks & Regards,
Ugsfdc.
-
- ugsfdc
- October 30, 2017
- Like
- 0
- Continue reading or reply
What are the Best practices for web services?
Hi all,
Could you pls share the Best practices for web services in salesforce.
Thanks ,
ug.
Could you pls share the Best practices for web services in salesforce.
Thanks ,
ug.
-
- ugsfdc
- October 13, 2017
- Like
- 0
- Continue reading or reply
How to call apex methods without using action in VF?
Hi Experts,
pls give me solution for me.
pls give me solution for me.
-
- ugsfdc
- October 13, 2017
- Like
- 0
- Continue reading or reply
How to Write a trigger which will create as many number of contacts on the account record equal to the value of a number field called count of contacts on account?
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;
}
}
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;
}
}
- Dileep Katari
- September 15, 2019
- Like
- 0
- Continue reading or reply
SOQL Issue
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.
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.
- ugsfdc
- November 05, 2017
- Like
- 0
- Continue reading or reply