• M An
  • NEWBIE
  • 20 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 6
    Questions
  • 6
    Replies
I need to count the number of edits on a record and to store the value in a field Number__c

I tried this in workflow using criteria: Ischanged (lastmodifieddate)
            Should field update: Number__c

I need this same scenario to be done using apex class.So that I tried to get contacts filter by lastmodifieddate..how to query this and how to get execute this scenario in class.

Can anyone explain and help me out from this?           
  • December 11, 2017
  • Like
  • 0
Scenario: When contact last name does not equal to null, send an email to that contact

public class sendemail_contacts 
{
list<contact>lstcont=new list<contact>();    
for(lstcont=[select id,name from contact where firstname!=''])
{
Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();  
string body = 'Hi ';
String[] toAddresses = new String[] {'example@gmail.com'}; 
mail.setToAddresses(toAddresses);
mail.setSubject('Test Subject'); 
}
}

I am new to Salesforce development. I dont know why this error has been occured.
Can you please anyone explain and suggest the answer for this below code?
 
  • December 04, 2017
  • Like
  • 0
Hi all,

I referred this link https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_gov_limits.htm
Here they said generally for synchronous and asynchronous. Also, they mentioned Total number of SOQL queries issued in the description table, here issue means? 
Also, I want to know how many SOQLcan uses in Trigger and in Class.
  • November 28, 2017
  • Like
  • 0
Hi all!
I am new to the Salesforce and I have no programming knowledge. I completed learning in Salesforce Admin part(customisation) and now I am entering into Salesforce development part(configuration).

Without programming knowledge (even I don't know about method or constructor or any other programming terms), it is difficult to learn the configuration part in Salesforce. So where I should start and how to start. 
Please anyone can suggest me  
 
  • November 24, 2017
  • Like
  • 0
If possible using time-dependent workflow. Can anyone share me
 
  • November 24, 2017
  • Like
  • 0
I want to convert lead to account,contact,opportunity at a time using trigger.

Please post any Ideas or else any trigger regarding this.
  • December 08, 2016
  • Like
  • 0
I need to count the number of edits on a record and to store the value in a field Number__c

I tried this in workflow using criteria: Ischanged (lastmodifieddate)
            Should field update: Number__c

I need this same scenario to be done using apex class.So that I tried to get contacts filter by lastmodifieddate..how to query this and how to get execute this scenario in class.

Can anyone explain and help me out from this?           
  • December 11, 2017
  • Like
  • 0
Scenario: When contact last name does not equal to null, send an email to that contact

public class sendemail_contacts 
{
list<contact>lstcont=new list<contact>();    
for(lstcont=[select id,name from contact where firstname!=''])
{
Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();  
string body = 'Hi ';
String[] toAddresses = new String[] {'example@gmail.com'}; 
mail.setToAddresses(toAddresses);
mail.setSubject('Test Subject'); 
}
}

I am new to Salesforce development. I dont know why this error has been occured.
Can you please anyone explain and suggest the answer for this below code?
 
  • December 04, 2017
  • Like
  • 0
If possible using time-dependent workflow. Can anyone share me
 
  • November 24, 2017
  • Like
  • 0