HI Eric
-
I want to follow this thread in case other people comment with something different.
-
As far as I know, in Genesys Cloud there isn't a guaranteed execution order between Outbound Rules (including Pre-Call or Wrap-Up rules) and Platform Triggers that subscribe to events like "v2.detail.events.conversation.{id}.outbound."
These components run in separate platform services, so they are processed asynchronously. Because of that, there is no design guarantee that a Pre-Call Rule will run before the outbound conversation event is handled by your trigger workflow. In some situations the rule evaluation may happen while the trigger workflow is still executing, which can create the race condition you're seeing.
Another complication is that the "OutboundInitEvent" ayload is relatively minimal. It includes fields such as:
conversationId
outboundCampaignId
outboundContactListId
outboundContactId
…but, it does not include attempt information, which makes it harder to coordinate state changes purely from that event.
------------------------------
Kaio Oliveira
GCP - GCQM - GCS - GCA - GCD - GCO - GPE & GPR - GCWM
PS.: I apologize if there are any mistakes in my English; my primary language is Portuguese-Br.
------------------------------