• ramk
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 7
    Questions
  • 0
    Replies

Hi

 i have a date time value Datetime dt = DateTime.parse( '10/14/2011 11:46 AM');

 

now can i convert this into total seconds for that date value???

  • April 01, 2013
  • Like
  • 0

Hi

 

i have a picklist <availability__c : custom field> which has values<availabile,offline>. i need to calculate the time difference

between the 2 picklist values when the user changes the availability between these 2 values .how can i do this???

thanks

  • March 27, 2013
  • Like
  • 0

Hi

I have a Contact Object in case Detail

Now whenever i change the contact in case the last modified date must be update

How can i acheive this??

Thanks

 

 

  • February 20, 2013
  • Like
  • 0

public static void insert task

{

   For each agent in agent role

  instantiate task obj

populate task object

insert task

 

 

 

 }

 

how to write for each in apex.....

  • September 28, 2012
  • Like
  • 0

hi

i have method which retreives account records...

 

how do i retreive  account records after the for loop.....

 

public List<Account> searchPhones(String phone)
        
          {
                    
               
             Account [] acc = [Select FirstName, LastName, MiddleName__pc, PersonMailingCity, PersonMailingState,
                               PersonHomePhone, PersonMobilePhone, Fax, 
                                PersonBirthdate, PersonMailingPostalCode
                               // ,
                              //  (Select FirstName__c, LastName__c, MiddleName__c From NameHistories__r)
                               From Account
                              where SearchWorkPhone7__c = :phone
                              or SearchMobilePhone7__c  = :phone 
                                 or SearchFax7__c = :phone limit 100];
                   
                          
                              for ( Account account: acc ) {
                         
                 
                                                   
                     }
              return account; 
          }

  • September 28, 2012
  • Like
  • 0

Hi

Is it possible to compress phone # is the reverse of the phone number  (example phone #  2177627123 search phone # = 3217267712) in apex?????

thanks

 

 

  • September 13, 2012
  • Like
  • 0

How to create a valiation rule:: i am new to sfdc

 

If the field “A” is populated then the field “B” must be blank OR if “B” is populated then “A” must be blank.  Error message should display below the "Attn" attribute; error message should read:"Only A or B may be filled in, but not both"

 

  • August 23, 2012
  • Like
  • 0