1

We're trying create a trigger that will fire when a new contact is added to SF (that contact is created via the Hubspot connector). Is the workflow below possible through triggers / Apex code? (I'm not specifically asking for code, just to know if this is possible. The code / error I'm currently getting is posted in another question)

The workflow:

When a contact is created via the Hubspot connector, this should happen:

  • Create a person account
  • Associate the contact with the Person account
  • Create an opportunity associated with the Person account

When a contact is updated via the Hubspot connector, this should happen:

  • Update some custom properties1 on the Opportunity associated with the Person account
  • Update the first name, last name, and email on the Person account

1 This could be a creation of a new value, or the old value could need to be updated.

Is it possible to do this? If not fully possible, then which parts might work?

1
  • Is the Contact you associate with it supposed to become part of the person account or just attached to it?
    – dphil
    Commented Dec 18, 2014 at 20:35

0

Browse other questions tagged .