• CloudComputingSFDC
  • NEWBIE
  • 0 Points
  • Member since 2013

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

we have profile "sales profile" with manage lead and view all permissions.

this profile is having 10 users and only one user should be restricted from transfer leads / take ownership of leads.

 

how to achive it by config or coding ?

 

Thanks in advance.

Hi,

 

we have lead assignment rule where it checks for Name and if bad words exist in it then it will assign it to "Spam Leads" Queue. 

 

Is there any way that SPAM leads are automatically rejected and not even created as a record within salesforce? 

 

Please suggest ASAP.

 

Thanks in Advance.

Parent object : Activity

Child Object : Claim (status is field in claim which can have values Cancelled / Closed).

 

Get all activities in SOQL for which all claims are closed / Cancelled.

 

Thanks

 

  • I am updating List of custom object through apex.
  • This causes multiple triggers to fire for same object and related object.
  • These triggers have SOQL quries.
  • If List is having 1000 records, then it fails in between due to error " Too Many SOQL" .
  • This is due to Trigger calls multiple times. For 1000 records it will call 5 times as 200 records in one execution. while doing this it counts number of SOQL quries and hits more than 100.

Please let me know my Solution is right or wrong :- one update starts one transaction in SFDC, so for 1000 records a trigger will fire 5 times (200 records in a batch) This causes SOQL Limit to hit easily. TO overcome this, I am splitting 1000 list of records into small list of 200 records so i will have 5 list with me. Now I am firing update statement in the loop for 5 times, so that i can process my whole data. Small list count 200 * 150 update statement = 30000 records I can process without any error.

 

Please let me know this approach is fine or not.