When the flow tries to add the specific product to the new order I get the error: Error Occurred: This error occurred when the flow tried to create records: FIELD_INTEGRITY_EXCEPTION: field integrity exception: PricebookEntryId (must have the same currency as the order). You can look up ExceptionCode values in the SOAP API Developer Guide.
I'm confused as the pricebook entry ID currency ISO code is exactly the same as the order. I even doublecheck it in the flow. From the debug:
Outcome executed: Apps
Outcome conditions:
1. {!ProductSingle.Product2.Name} (On-site application training - EUROPE) Contains application
2. {!ProductSingle.PricebookEntry.CurrencyIsoCode} (EUR) Is null false
3. {!GetOrder.CurrencyIsoCode} (EUR) Is null false
Logic: All conditions must be true (AND)
Our organization does have multi currency enabled, but for this particular pricebook all the producs have the same currency iso code (EUR). I doublechecked using data loader. I did find out that the pricebook 2.currency iso code is different. Is that what I need to change? How can I change that currency?
3 réponses
Thanks Ankush,
I discovered it was because I did not set any currency in the new, created orders. Once I set it to match the original order the flow ran successfully. I did not have to change the pricebook2 currency. Maybe the currency iso code for pricebook2 does not apply for orders.