SalesforceCommerceCloud / b2c-crm-sync

... a contemporary perspective on how to integrate B2C Commerce and the Salesforce Customer 360 Platform to power frictionless customer experiences in the B2C domain.
https://salesforcecommercecloud.github.io/b2c-crm-sync/
BSD 3-Clause "New" or "Revised" License
65 stars 45 forks source link

Updating PersonAccount fields from SFDC to SFCC #130

Closed VALiNTRY360 closed 2 years ago

VALiNTRY360 commented 2 years ago

Describe the bug After a PersonAccount has been created in SFDC, we are trying to update certain fields (phone, email) and pass it back to SFCC.

To Reproduce

  1. Create profile in SFCC
  2. Record created in SFDC as personaccount
  3. Edit personaccount phone
  4. See error

Expected behavior No error messages and SFCC profile should reflect changes from SFDC.

** We are using the B2C Commerce Process: Create or Update flow.

Screenshots Screen Shot 2022-02-25 at 3 19 22 PM Screen Shot 2022-02-25 at 3 19 29 PM

ericszulc commented 2 years ago

Hi @VALiNTRY360 , can you provide debug logs where the error occurs in apex?

nek4life commented 2 years ago

I suspect that field is not mapped by default in the custom metadata mappings inside service cloud. Navigate to Custom Metadata Types > B2C Integration Field Mapping > Manage Records. Add the new mapping for your field following the other metadata as an example. I believe once you do that your error should go away.

VALiNTRY360 commented 2 years ago

Thank you @nek4life for the recommendation. Will give that try.

@ericszulc Will post the errors after our round of testing today.

VALiNTRY360 commented 2 years ago

Solved: Deployed the latest pull request #114