SyncOpportunity_Polling Process

The SyncOpportunity_Polling process takes the previously mentioned task in hand.

The process is designed with the following activities:

The following table lists and explains the activities in the process.

Activity Description
GetLastPollingTime Gets the last polling time and locks this process.
QueryOpportunityHistory Salesforce Query All activity.
Gets the results of the opportunity history when the following conditions are met:
OpportunityHistory.State = ’Close Won’
OpportunityHistory.CreateDate > the last polling time
QueryOpportunity Salesforce Query All activity.

Gets results of the opportunities according to the following conditions: Opportunity.Id in OpportunityHistory(Queried before).OpportunityId Opportunity.HasLineitem = true

QueryOpportunityLineItem Salesforce Query All activity.

Gets results of the opportunity line items.

Transition Control Group
ErpUpdateOrder Updates the ERP_ORDER table in the ERP system.
ErpUpdateOrderLine Updates the ERP_ORDERLINE table in the ERP system.