b2c-crm-sync icon indicating copy to clipboard operation
b2c-crm-sync copied to clipboard

Update Person Account triggering multiple times

Open filipecarvalho15 opened this issue 3 years ago • 2 comments

Is your feature request related to a problem? Please describe. Triggers and flows run multiple times when a person account is updated, this is happening in a production environment with the connector syncing between Commerce and Service. Is it possible to change this behavior with an active connector?

Describe the solution you'd like They should run only once.

Describe alternatives you've considered None.

filipecarvalho15 avatar Dec 13 '21 09:12 filipecarvalho15

Hello @filipecarvalho15,

Thank you for posting this issue. Can you please provide more details?

  • What are the steps to reproduce the issue. Does it occur when updating the profile from core to b2c, or b2c to core, or both?
  • Are all the fields changes triggering the same behavior?
  • Do you have some logs related to these flows' execution?

Thanks in advance

jbachelet avatar Dec 13 '21 16:12 jbachelet

Hi @jbachelet, i created a flow that makes a http callout(future) whenever a Person Account is updated in Service Cloud either saving directly or updating it from the storefront(this affects the number of times it may run), when I update a record I think the Connector flow B2C Commerce: Platform Event: Process Contact Update is doing DML updates to the Record Type that make my callout run multiple times.

The test i made was deactivating the Process Contact Update flow and doing an update(any field) and then my callout runs fine and only once.

Thank you

filipecarvalho15 avatar Dec 14 '21 09:12 filipecarvalho15