ContactsUpsert flow
-
Contacts need to be linked to the owning account in Salesforce. The Salesforce Account Id,
which was saved after account creation or account query, is placed in the AccountNumber for
mapping into each contact.
-
Contacts from the incoming message are mapped to sobjects in the upsert operation of the SOAP message.
The sobjects are of type Contact and the account link is mapped into each contact.
-
A web service request is made to Salesforce.
The URL used is that set up in the LocalEnvironment by the GetSession flow.
-
If the service call returns a fault then the fault code is checked and an exception thrown
to generate error handling process. If the fault code is INVALID_SESSION_ID then the shared variable SessionSet will be cleared:
this will cause GetSession to login to Salesforce when next called.
-
If the service call returns a fault then the fault code is checked and an exception thrown to generate error handling process.
If the fault code is INVALID_SESSION_ID then the shared variable SessionSet
will be cleared.
-
If the service call returns a response then the success status in the response is checked.
If success is true the service call is logged otherwise
an exception thrown to generate error handling process.
Back to the overview