This image shows the Subsidiary Integration Flow - Fetch Customer Record from NetSuite. This flow is triggered by a REST service
in the main integration flow. As a parameter, it receives the PartyId
(AccountId
) of the customer record associated with the opportunity won in Oracle Engagement Cloud. Using this parameter, the flow checks
if the corresponding customer record exists in NetSuite. If the record exists, it returns the internal ID of the record to
the main flow. If the record doesn't exist (that is, if it's a new customer), the flow fetches the account details of the
customer record from Oracle Engagement Cloud and creates a new customer record in NetSuite. Finally, it returns the internal
ID of this record to the main flow.