-
Can someone explain how to update Account custom fields from Commerce Clould? I deployed b2c-crm-sync connector with SF_SCRATCHORGPROFILE=personaccount in env file. There is no ploblem to update standard fields from Commerce Cloud and vice-versa. But when we tried to add custom field Customer_Type__c: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Hi @Maralez , if the field is on Account and it's a person account record type, then it should show up as Customer_Type__pc on the contact record. There should be a field mapping custom metadata type where you specify the fields for each model. |
Beta Was this translation helpful? Give feedback.
-
Ok, after some digging. I think everything has to go through contact. See this class. So... one thing could do to test atleast is if you create a field on the contact to temporarily hold that value and reference the associated __pc field on account. Then you could use a record trigger flow to copy it to it's final destination. |
Beta Was this translation helpful? Give feedback.
Ok, after some digging. I think everything has to go through contact. See this class.
https://github.com/SalesforceCommerceCloud/b2c-crm-sync/blob/72f5c4e66bb883a7de71c5a1759f98bddd682388/src/sfdc/personaccounts/main/default/classes/B2CAccountManager.cls
So... one thing could do to test atleast is if you create a field on the contact to temporarily hold that value and reference the associated __pc field on account. Then you could use a record trigger flow to copy it to it's final destination.