• Soundar
  • NEWBIE
  • 205 Points
  • Member since 2016

  • Chatter
    Feed
  • 3
    Best Answers
  • 1
    Likes Received
  • 1
    Likes Given
  • 33
    Questions
  • 61
    Replies
Hi Guys,

I need to send Email alert for today created contacts list . 
Contact records are inserted through automation. Manager expecting in single mail to fetch list of contact records creted by today .
Can you please guide me , how to i achive this ? 


Ex:Email template 

HI Manger,
Today Contact records listed below .

ID   name         mail                        phone    createddate
001  sasi         sasi@gmail.com       123         today
002   sachin     sacina@gmai.com    234         today
003  sehwag     sehwag@gmail.com  345        today

Thanks& Regards,
Sasidhar



















  
 
Hi All,

I am trying to calculate the time spent on each staff. I have taken 2 datetime fields and 3rd field to calulate time spent for each staff. 

What I am trying to do is : When record is getting created that time,status is 'NEW' and setting the 1st field to NOW(). Now on staff change and status not equals to 'NEW', updating fields i.e the 2nd datetime field to NOW(),Then calulating the timespent: 2nd datetime - 1st datetime and again
setting the 1st datetime field to NOW(). 

But the problem is while updating 3 fields at a time. The 2nd datetime field should be updated at the last but it is updating before calculating the time spent.

So, how to proceed with it. Please suggest for the same.

Thanks!
I see a lot of resoitces online to convert an unmanaged package to a managed one. Do we have the ability to convert a managed package to an unmanaged one?
How to add inline edit to VF page and pagination function? (for Title,Email and Birthdate)

Thanks!
 
<apex:page Controller="AccContact">
  <apex:form >
      
      <apex:pageBlock >
  <apex:pageBlockTable value="{!acclst}" var="a">
      
   
 <apex:column headerValue="Name">
  <apex:commandLink action="{!selacc}">
  <apex:param name="conlst" value="{!a.id}"/>
  <apex:outputText value="{!a.name}"/>
  </apex:commandlink>
  </apex:column>
  <!--accounts-->
   </apex:pageBlockTable>
    <apex:pageBlockTable value="{!accconts1}" var="a">
    <apex:column headerValue="Account Name" value="{!a.Name}"/>
    <!--contacts-->
    <apex:column headerValue="List contacts">
   <apex:pageBlockTable value="{!a.contacts}" var="c">
       
          <apex:column headerValue="Title">
  <apex:outputText value="{!c.title}"></apex:outputText>
  </apex:column>
  
       
    <apex:column headerValue="First Name">
  <apex:outputText value="{!c.firstname}"></apex:outputText>
  </apex:column>
       
  <apex:column headerValue="Last Name">
  <apex:outputText value="{!c.lastname}"></apex:outputText>
  </apex:column>
   
   <apex:column headerValue="Email">
  <apex:outputText value="{!c.email}"></apex:outputText>
  </apex:column>

     <apex:column headerValue="Birthdate">
  <apex:outputText value="{!c.birthdate}"></apex:outputText>
  </apex:column>
       
  
 </apex:pageBlockTable> <!-- End contact-->
 </apex:column>
 </apex:pageBlockTable><!--end account-->
  </apex:pageBlock>
         

  </apex:form>
</apex:page>
 
public with sharing class AccContact {

    public list<contact> conlst { get; set; }

   // public contact c { get; set; }
   /* public  void getSelacc() {
    }*/

    public list<account> accconts1 { get; set; }

    public PageReference selacc() {
    string getid=apexpages.currentpage().getparameters().get('conlst');
         accconts1=[select id,name,(select id,lastname,firstname,email,title,birthdate from contacts)  from account where id=:getid ];
            system.debug(accconts1);
      return null;
    }


    public List<Account> acclst { get; set; }
   public  AccContact (){
     acclst=[select id,name  from account ];
     system.debug(acclst);
   
   }

}


       

 
Hello

I have successfully installed the Know Your Enemy App from AppExchange by Salesforce Labs however, the News and Twitter Feeds don't work.  These are Visualforce pages.  Does anyone know how I can fix this?  

Many thanks in advance.
Dear Friends,

Could anyone give a Clear explaination the main difference between before insert & Update , after Insert & Update with good Example.

Regards,

Soundar.
Hi All,
I am new to the salesforce, i have a requirement like,

i have case standard page layout and custom picklist filed having values (A and B), if i select the option and click save the record will saved and one vf page will open in that vf page i have two options and one button if i select anyone option and click next button then it will open the another vf page in that page i have two fields and one button anyone option is selected and i click the save button it would the contact record that what are values given in pages that values will populate in that case record.

Please let met is any way to achieve this requirement.
Thanks in advance.
i want to create Opportunity and opportunitylineitem porducts using flow and process builder but i am getting  error in debug log it say Action name not found or null but i can not understand what is action name stands for? 
I have one Custom Email temple there I am currently uploading My Computer Documents,here we already uploaded some files into salesforce, How Can Send Salesforce files Attaching with Custom Email Template, (I need salesforce files selecting option in that custom Email Template) Moreover what i need the below image shows the option I want that option in my Custom Email template, How Can I do This...????


User-added image
 
Dear friends,

I like to reduce this Query size (four --> single ) . Kindly advise me once how it's possible by using Map
 
public class OppUsdUpdate {
    
    public static void usdUpdate(Id Opportunity, String str){
    
        List<Opportunity> oppList = New List<Opportunity>();
        
                          
        List<Opportunity> oppQry = [Select id, name, USD_Amount1__c,Amount, Currency__c from  Opportunity where Id =:Opportunity];
         
        CurrencyType__c cTypeInr  =[Select id,name,Conversion_Rate__c, ISO_Code__c from CurrencyType__c where 
                                    ISO_Code__c = 'INR'  Limit 1];
          
        CurrencyType__c cTypeUsd  =[Select id,name,Conversion_Rate__c, ISO_Code__c from CurrencyType__c where ISO_Code__c = 'USD'   Limit 1];
          
        CurrencyType__c cTypeEur  =[Select id,name,Conversion_Rate__c, ISO_Code__c from CurrencyType__c where ISO_Code__c = 'EUR' Limit 1];
          
        CurrencyType__c cTypeAud  =[Select id,name,Conversion_Rate__c, ISO_Code__c from CurrencyType__c where ISO_Code__c = 'AUD' Limit 1];
          
        /*INDIAN RUPEE*/
        for(Opportunity opp : OppQry){
        
            opportunity op = new Opportunity(Id = Opp.Id);
            
            if(opp.Currency__c == 'INR'){
                op.usd_amount1__c = opp.Amount * cTypeInr.Conversion_Rate__c;
            } 
            if(opp.Currency__c  == 'USD'){
                op.usd_amount1__c = opp.Amount * cTypeUsd.Conversion_Rate__c;
            //oppList.add(op);
            }  
            if(opp.Currency__c  == 'EURO'){
                op.usd_amount1__c = opp.Amount * cTypeEur.Conversion_Rate__c;
            } 
            if(opp.Currency__c  == 'AUD'){ 
                op.usd_amount1__c = opp.Amount * cTypeAUD.Conversion_Rate__c;            
            }
            oppList.add(op);
        }
        
        if(oppList.size() > 0){
            update opplist;
        }
        
   }

}

Regards,

Soundar Raj
+91-741842418​
best things to remember to write triggers?