• Kkell
  • NEWBIE
  • 0 Points
  • Member since 2009

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 4
    Replies

We have a SF to Parature integration and need to update our Pick statement to include some addition coding to an if statement that will allow us to put values into some additional fields.  Can someone please look at this and give us an idea on how to make our statement work properly?

 

Here is the current statement that works:

 

 

IF (ISPICKVAL(Type,"Inactive"), "Inactive",


IF (Top_200__c, "Strategic","Standard"))

 

We want to include that break Strategic into "Diamond, Platinum,Gold"

 

When we try

 

IF (Top_200__c, "Diamond,Platinum,Gold","Standard"))

 

It fails.  Do I need to break up the statement into three pieces?  Any help is very appreciated!!

 

Thanks!

  • November 19, 2009
  • Like
  • 0

We have a SF to Parature integration and need to update our Pick statement to include some addition coding to an if statement that will allow us to put values into some additional fields.  Can someone please look at this and give us an idea on how to make our statement work properly?

 

Here is the current statement that works:

 

 

IF (ISPICKVAL(Type,"Inactive"), "Inactive",


IF (Top_200__c, "Strategic","Standard"))

 

We want to include that break Strategic into "Diamond, Platinum,Gold"

 

When we try

 

IF (Top_200__c, "Diamond,Platinum,Gold","Standard"))

 

It fails.  Do I need to break up the statement into three pieces?  Any help is very appreciated!!

 

Thanks!

  • November 19, 2009
  • Like
  • 0

We set up a new account trigger in salesforce today for our parature integration and received this error on the opportunity record changing a record type and then pressing save this error appeared.

 

There were custom validation error(s) encountered while saving the affected record(s). The first validation error encountered was "Apex trigger UpdateContact caused an unexpected exception, contact your administrator: UpdateContact: execution of AfterUpdate caused by: System.Exception: Too many DML rows: 112: Trigger.UpdateContact: line 11, column 13".

Click here to return to the previous page.

 

Account apex trigger

BodyDownload Apex
trigger UpdateContact on Account (after insert, after update)
{

    for (Account account : Trigger.new)
    {
        List<Contact> contacts = new List<Contact>();
        contacts = [SELECT Id FROM Contact WHERE AccountId = :account.ID];
        
        for(Contact c: contacts)
        {
            update contacts;
        }
    }
}

How can we fix this? Also strange happening on changing opportunity record type and saving.

  • September 15, 2009
  • Like
  • 0