ACTION_SEARCH ACTION Endpoint
  /rpc/action/?method=ACTION_SEARCH  
  DETAILS    
  Prefix Action  
  SUB SEARCHES    
  ActionBy SETUP_USER_SEARCH  
  ActionType SETUP_ACTION_TYPE_SEARCH  
  Attachment CORE_ATTACHMENT_SEARCH  
  ContactBusiness CONTACT_BUSINESS_SEARCH  
  ContactPerson CONTACT_PERSON_SEARCH  
  Issue ISSUE_SEARCH  
  Opportunity OPPORTUNITY_SEARCH  
  Project PROJECT_SEARCH  
  Recipient ACTION_EMAIL_RECIPIENT_SEARCH  
  SourceAction ACTION_SEARCH  
  ATTRIBUTES TYPE  
  ActionBy Numeric Id of the user the action is for
  ActionByText Text Name of the user the action is linked to
  ActionReference Text  
  ActionType Numeric Id of the action type. You can define your own, plus there are standard ones. eg 1=Phone Call,2=Site Visit,3=Meeting
  ActionTypeText Text As above
  AttachmentCount Numeric  
  BillingStatus Numeric Id of the billing status. 1=Billable,2=Non-Billable,3=Don't Know,4=Approved For Billing,5=Has Been Billed
  BillingStatusText Text As above
  Completed Date  
  CompletedTimeZone Numeric  
  CompletedTimeZoneText Text (50)  
  CompletedTime Date Has both date & time
  ContactBusiness Numeric Id of the business the action is linked to
  ContactBusinessText Text Name of the business the action is linked to
  ContactPerson Numeric Id of the person the action is linked to
  ContactPersonText Text Name of the person the action is linked to
  Date Date Alias for DueDate - primarily for saved Messages Searches
  Description Date  
  DueDate Date  
  DueDateTime Date Has both date & time
  DueDateTimeZone Numeric  
  DueDateTimeZoneText Text (50)  
  EmailSent Text Y/N. For draft emails, has the email been sent
  Id Numeric  
  Lock Text Y/N
  Message Text This will contain the HTML for email actions
  Object Numeric  
  ObjectContext Numeric Type of object that the action is linked to. For the full list of values click here
  ObjectText Text  
  Priority Numeric Id of the priority. 1=Low,2=Medium,3=High,4=Critical
  PriorityText Text As above
  Private Text Y/N
  SourceAction Numeric Id of parent action
  SourceActionText Text  
  Status Numeric Id of the action status. 1=Completed,2=Not Started,3=Cancelled,4=In Progress
  StatusText Text As above
  Subject Text Alias for ActionReference - primarily for saved Messages Searches
  Text Text Extended text. For eg if the action is an email, this field would contain the email text
  TotalTimeHrs Text Action time in hours
  TotalTimeMin Text Action time in minutes
       
  Audit Fields   Click here for more information
  RETURN  
  Selected Attributes  
  EXAMPLE
  1. Return actions created this month
  oSearch.method = 'ACTION_SEARCH';
oSearch.addField('contactbusinessText,contactPersonText,actionby');
oSearch.addFilter('createddate', 'MONTH_TO_DATE');
oSearch.getResults(function(asData) { SearchComplete(asData);});