• Jim Notaro
  • NEWBIE
  • 10 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 2
    Replies
I'm using Pervasive/Actian's Data Integrator to update records each night.  Just recently, any data map that uses more than one lookup to Salesforce will fail immediately with the error:
 
GetRecord: error Server.userException (Error posting message: Error 0 reading reply)
Has anyone run into this before?  Can someone point me in the right direction as to how to debug it on the Salesforce side?
 
Executive Summary:  How do I create a test class that creates a task/event with multiple contacts associated to it in apex?

I created a custom object to allow our users to track their own last activity on contacts.  I wrote a trigger on the EVENT and TASK objects to check to see if the ASSIGNED TO user has flagged any of the contacts on the event/task and, if the activity in question has a later date than the existing last activity date for the user/contact pair it will update that date.

I ran into a little hiccup with multiple contacts because, for whatever reason, it doesn't identify the secondary contacts until just after the records are commited to the database.  I overcame that with a workflow rule that causes the trigger to re-fire an hour later.

The last hurdle I have to overcome is code coverage.  I'm having trouble writing a test on the code because I'm not sure how to create a new event/task with association to multiple contacts.
I am trying to build an excel type look and feel onto a new custom object.  What I would like it to look like during an edit on the edit page is...
User-added image
but then when I click save I would like it to look like this...
User-added image
Is this possible.  If so how would I set this up.  
Executive Summary:  How do I create a test class that creates a task/event with multiple contacts associated to it in apex?

I created a custom object to allow our users to track their own last activity on contacts.  I wrote a trigger on the EVENT and TASK objects to check to see if the ASSIGNED TO user has flagged any of the contacts on the event/task and, if the activity in question has a later date than the existing last activity date for the user/contact pair it will update that date.

I ran into a little hiccup with multiple contacts because, for whatever reason, it doesn't identify the secondary contacts until just after the records are commited to the database.  I overcame that with a workflow rule that causes the trigger to re-fire an hour later.

The last hurdle I have to overcome is code coverage.  I'm having trouble writing a test on the code because I'm not sure how to create a new event/task with association to multiple contacts.