• pradeep prakash
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 4
    Replies
NOT(
OR(
ISBLANK(DOS_ID__c),
REGEX(DOS_ID__c,"^([CT]{2}[0-9]{8}\s?)+([,]\s?([CT]{2}[0-9]{8}\s?)+)*$")
)
)

I get syntax error using this. please help.

Requirement: in a custom field the value entered should be CT***********, CT***********, etc or CT*********

CT followed by 8 digits. it can be single entry or comma seperated repeated entry.
 
 Case is created via E2C and the owner of the case is changed from a group to an individual.All chatter comment updates are sent to the group also. Is there a way to prevent this?
NOT(
OR(
ISBLANK(DOS_ID__c),
REGEX(DOS_ID__c,"^([CT]{2}[0-9]{8}\s?)+([,]\s?([CT]{2}[0-9]{8}\s?)+)*$")
)
)

I get syntax error using this. please help.

Requirement: in a custom field the value entered should be CT***********, CT***********, etc or CT*********

CT followed by 8 digits. it can be single entry or comma seperated repeated entry.
 
 Case is created via E2C and the owner of the case is changed from a group to an individual.All chatter comment updates are sent to the group also. Is there a way to prevent this?

I'm running apex queries against an account to retrieve its related activity history records. However that account has alot of history and as a result i'm running into the error "unexpected exception activity history cannot be queried" somewhere after it recieves over 200 records. When i limit this query to less than 200, 199 for instance, that error goes away.

 

Is this a bug? I cannot find any official documentation on this limit.

 

Here is the query:

 

for(Account account : [Select Id, (Select Id, Description From ActivityHistories limit 199) From Account Where Id = 'some id'])
{
  for(ActivityHistory histories : account.ActivityHistories)
  {
    System.debug(histories.Id); 
  }
}

 

This is not ok as i need all of the activity histories returned. I cannot run additional queries based off of the exception either as it is not possible to catch an 'unexcepted exception'. Anyone have any ideas on how to retrieve all of the activity histories for accounts that would have over 200?