• TKone
  • NEWBIE
  • 0 Points
  • Member since 2012

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

new to triggers. 

 

I have a custom object Pledge_c.

  1. New Pledge created 
  2. Create new Oppty
  3. Set Account, Amount, Date from PLedge_c as values on new oppty. 
  4. Set new Oppty stage to "Pledged" / Record type to "Pledge"

Thanks for the help. Currently in progress but as this is a first trigger it is a bit more complex than I can derive from samples. 

key ?
Does this trigger start as "on Pledge" or should it be "on Opportunity"?


// first attempt


trigger InitialPledge on Pledge_c (after insert) {
       List<Opportunity> listOppor = new List<Opportunity>();
                for(Pledge_c  newPLedge_c : Trigger.new)

     ip.add (new Opportunity ==   {$Pledge_c.Donor} "TODAY" {$Pledge_c.Pledge Amount}
            Account Name = {$Pledge_c.Donor}
            Amount = {$Pledge_c.Pledge Amount}
            RecordType="Pledge"
            Stage = "Pledged"        
            }

insert ip;

}

 

  • October 25, 2012
  • Like
  • 0

Trying to save a PersonAccount record and update a couple of checkboxes on a record and save with one click of URL button. 

But keep getting this error:
Error: Invalid Data. 
Review all error messages below to correct your data.
The page you submitted was invalid for your session. Please click Save again to confirm your change.

Removing save=x or save=1 results in checkboxes filled but on Edit page. 

I have seen a few other posts on SFDC forums but no systematic solution.

 

failed code../{!Account.Id}/e?retURL=/{!Account.Id}&00NU0000000OenS=1&save=1

  • September 06, 2012
  • Like
  • 0

I have some records that have text 'deceased' entered into PersonAccounts under Primary Address.

 

However when I create a table query I cannot seem to find the correct field to populate a report. I have tried several fields and changed 'includes' to contains under the query.

 

---- Any suggestions on creating a query that will display the results I am seeing when I am logged into SFDC.

 

I even ran a full query of all 30K records and then tried to search with Excel 'Find' feature but it gives me no results.

 

 ---  Is there a syntax to find text within other text using Excel?

 

 

  • July 31, 2012
  • Like
  • 0