b2c-crm-sync | contemporary perspective on how to integrate B2C Commerce | REST library

 by   SalesforceCommerceCloud JavaScript Version: v3.0.2 License: BSD-3-Clause

kandi X-RAY | b2c-crm-sync Summary

kandi X-RAY | b2c-crm-sync Summary

b2c-crm-sync is a JavaScript library typically used in Web Services, REST applications. b2c-crm-sync has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

b2c-crm-sync enables the resolution, synchronization, viewing, and management of Salesforce B2C Commerce Customer Profiles within the Salesforce Platform as either Accounts / Contacts or Person Accounts. The project serves as foundation for customized integration between B2C Commerce and the Salesforce Platform. It is designed to teach the data strategy used to synchronize B2C Customer Profiles -- and extended to support multi-cloud use-cases between B2C Commerce, Marketing Cloud, and the Salesforce Platform (ex. Service, Sales, Loyalty Cloud, etc). Please note that this integration is an 'above the API' integration achieved via REST services -- and is not a low-level platform integration. Think of this repository as a guide for integrating B2C Commerce and the Salesforce Customer 360 Platform leveraging REST APIs, custom code, and a subset of its declarative features. b2c-crm-sync leverages Salesforce B2C Commerce Open Commerce REST APIs to interact with B2C Customer Profiles -- and a Salesforce Platform REST API to 'announce' when shoppers register or modify B2C Commerce Customer Profiles. Through these announcements, the Salesforce Platform requests the identified data objects (ex. customers) via REST APIs -- and then ingests elements of those data objects to create Account / Contact or PersonAccount representations of B2C Commerce Customer Profiles.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              b2c-crm-sync has a low active ecosystem.
              It has 54 star(s) with 42 fork(s). There are 20 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 51 open issues and 63 have been closed. On average issues are closed in 89 days. There are 1 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of b2c-crm-sync is v3.0.2

            kandi-Quality Quality

              b2c-crm-sync has no bugs reported.

            kandi-Security Security

              b2c-crm-sync has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              b2c-crm-sync is licensed under the BSD-3-Clause License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              b2c-crm-sync releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of b2c-crm-sync
            Get all kandi verified functions for this library.

            b2c-crm-sync Key Features

            No Key Features are available at this moment for b2c-crm-sync.

            b2c-crm-sync Examples and Code Snippets

            No Code Snippets are available at this moment for b2c-crm-sync.

            Community Discussions

            QUESTION

            How to redirect in React Router v6?
            Asked 2022-Mar-24 at 17:22

            I am trying to upgrade to React Router v6 (react-router-dom 6.0.1).

            Here is my updated code:

            ...

            ANSWER

            Answered 2022-Mar-18 at 18:41

            I think you should use the no match route approach.

            Check this in the documentation.

            https://reactrouter.com/docs/en/v6/getting-started/tutorial#adding-a-no-match-route

            Source https://stackoverflow.com/questions/69868956

            QUESTION

            Is every "complete" object a "most-derived" object?
            Asked 2022-Mar-21 at 02:30

            Per [intro.object]/2:

            [..] An object that is not a subobject of any other object is called a complete object [..].

            So consider this snippet of code:

            ...

            ANSWER

            Answered 2022-Mar-21 at 00:32
            1. An object is not a class.
            2. An object is an instantiation of a class, an array, or built-in-type.
            3. Subobjects are class member objects, array elements, or base classes of an object.
            4. Derived objects (and most-derived objects) only make sense in the context of class inheritance.

            Source https://stackoverflow.com/questions/71551522

            QUESTION

            Filter out everything before a condition is met, keep all elements after
            Asked 2022-Feb-23 at 21:32

            I was wondering if there was an easy solution to the the following problem. The problem here is that I want to keep every element occurring inside this list after the initial condition is true. The condition here being that I want to remove everything before the condition that a value is greater than 18 is true, but keep everything after. Example

            Input:

            ...

            ANSWER

            Answered 2022-Feb-05 at 19:59

            QUESTION

            "Configuring the trigger failed, edit and save the pipeline again" with no noticeable error and no further details
            Asked 2022-Feb-16 at 10:33

            I have run in to an odd problem after converting a bunch of my YAML pipelines to use templates for holding job logic as well as for defining my pipeline variables. The pipelines run perfectly fine, however I get a "Some recent issues detected related to pipeline trigger." warning at the top of the pipeline summary page and viewing details only states: "Configuring the trigger failed, edit and save the pipeline again."

            The odd part here is that the pipeline works completely fine, including triggers. Nothing is broken and no further details are given about the supposed issue. I currently have YAML triggers overridden for the pipeline, but I did also define the same trigger in the YAML to see if that would help (it did not).

            I'm looking for any ideas on what might be causing this or how I might be able to further troubleshoot it given the complete lack of detail that the error/warning provides. It's causing a lot of confusion among developers who think there might be a problem with their builds as a result of the warning.

            Here is the main pipeline. the build repository is a shared repository for holding code that is used across multiple repos in the build system. dev.yaml contains dev environment specific variable values. Shared holds conditionally set variables based on the branch the pipeline is running on.

            ...

            ANSWER

            Answered 2021-Aug-17 at 14:58

            I think I may have figured out the problem. It appears that this is related to the use of conditionals in the variable setup. While the variables will be set in any valid trigger configuration, it appears that the proper values are not used during validation and that may have been causing the problem. Switching my conditional variables to first set a default value and then replace the value conditionally seems to have fixed the problem.

            It would be nice if Microsoft would give a more useful error message here, something to the extent of the values not being found for a given variable, but adding defaults does seem to have fixed the problem.

            Source https://stackoverflow.com/questions/68819306

            QUESTION

            Multiple labels per item on Kendo chart
            Asked 2022-Jan-02 at 21:14

            I'm trying to get multiple label per item on Kendo Column chart Desired layout looks like this

            I was able to get only this layout

            ...

            ANSWER

            Answered 2022-Jan-02 at 08:18

            I don't think kendo provides any native solution for that but what I can suggest is to:

            1. Use legends to display each bar meaning. like the example here.

            2. Use some self generated labels and position them under the table which is risky for UI. I provided an example here.

            Source https://stackoverflow.com/questions/70465893

            QUESTION

            Python 3.10 pattern matching (PEP 634) - wildcard in string
            Asked 2021-Dec-17 at 10:43

            I got a large list of JSON objects that I want to parse depending on the start of one of the keys, and just wildcard the rest. A lot of the keys are similar, like "matchme-foo" and "matchme-bar". There is a builtin wildcard, but it is only used for whole values, kinda like an else.

            I might be overlooking something but I can't find a solution anywhere in the proposal:

            https://docs.python.org/3/whatsnew/3.10.html#pep-634-structural-pattern-matching

            Also a bit more about it in PEP-636:

            https://www.python.org/dev/peps/pep-0636/#going-to-the-cloud-mappings

            My data looks like this:

            ...

            ANSWER

            Answered 2021-Dec-17 at 10:43

            QUESTION

            Redirect in react-router-dom V6
            Asked 2021-Dec-15 at 05:41

            I need to navigate back to the original requested URL after login.

            For example, user enters www.example.com/settings as user is not authenticated, it will navigate to login page www.example.com/login.

            Once authenticated, it should navigate back to www.example.com/settings automatically.

            My original approach with react-router-dom v5 is quite simple:

            ...

            ANSWER

            Answered 2021-Dec-15 at 05:41

            In react-router-dom v6 rendering routes and handling redirects is quite different than in v5. Gone are custom route components, they are replaced with a wrapper component pattern.

            v5 - Custom Route

            Takes props and conditionally renders a Route component with the route props passed through or a Redirect component with route state holding the current location.

            Source https://stackoverflow.com/questions/70358626

            QUESTION

            Patch request not patching - 403 returned - django rest framework
            Asked 2021-Dec-11 at 07:34

            I'm trying to test an API endpoint with a patch request to ensure it works.

            I'm using APILiveServerTestCase but can't seem to get the permissions required to patch the item. I created one user (adminuser) who is a superadmin with access to everything and all permissions.

            My test case looks like this:

            ...

            ANSWER

            Answered 2021-Dec-11 at 07:34
            Recommended Solution

            The test you have written is also testing the Django framework logic (ie: Django admin login). I recommend testing your own functionality, which occurs after login to the Django admin. Django's testing framework offers a helper for logging into the admin, client.login. This allows you to focus on testing your own business logic/not need to maintain internal django authentication business logic tests, which may change release to release.

            Source https://stackoverflow.com/questions/70221003

            QUESTION

            Haskell: Can I read integers directly into an array?
            Asked 2021-Dec-05 at 11:40

            In this programming problem, the input is an n×m integer matrix. Typically, n≈ 105 and m ≈ 10. The official solution (1606D, Tutorial) is quite imperative: it involves some matrix manipulation, precomputation and aggregation. For fun, I took it as an STUArray implementation exercise.

            Issue

            I have managed to implement it using STUArray, but still the program takes way more memory than permitted (256MB). Even when run locally, the maximum resident set size is >400 MB. On profiling, reading from stdin seems to be dominating the memory footprint:

            Functions readv and readv.readInt, responsible for parsing integers and saving them into a 2D list, are taking around 50-70 MB, as opposed to around 16 MB = (106 integers) × (8 bytes per integer + 8 bytes per link).

            Is there a hope I can get the total memory below 256 MB? I'm already using Text package for input. Maybe I should avoid lists altogether and directly read integers from stdin to the array. How can we do that? Or, is the issue elsewhere?

            Code ...

            ANSWER

            Answered 2021-Dec-05 at 11:40

            Contrary to common belief Haskell is quite friendly with respect to problems like that. The real issue is that the array library that comes with GHC is total garbage. Another big problem is that everyone is taught in Haskell to use lists where arrays should be used instead, which is usually one of the major sources of slow code and memory bloated programs. So, it is not surprising that GC takes a long time, it is because there is way too much stuff being allocation. Here is a run on the supplied input for the solution provided below:

            Source https://stackoverflow.com/questions/70143678

            QUESTION

            Typescript: deep keyof of a nested object, with related type
            Asked 2021-Dec-02 at 09:30

            I'm looking for a way to have all keys / values pair of a nested object.

            (For the autocomplete of MongoDB dot notation key / value type)

            ...

            ANSWER

            Answered 2021-Dec-02 at 09:30

            In order to achieve this goal we need to create permutation of all allowed paths. For example:

            Source https://stackoverflow.com/questions/69126879

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install b2c-crm-sync

            b2c-crm-sync leverages node.js enabled CLI and SFDX (Salesforce CLI) commands. You'll want to ensure that you have node v15.2.1 running. If you're new to node, we recommend setting up nvm to manage multiple node versions. Use these articles to set up nvm on your local workstation. It's worth the effort to set this up, as it introduces great flexibility if you have projects that are dependent on specific node versions.
            You can install nvm on the mac using brew.
            You can also install nvm on windows.
            b2c-crm-sync is designed to work with existing B2C Commerce storefronts. In the event that you do not have a storefront, you can use the existing leverage Salesforce's Storefront Reference Architecture storefronts provided by Salesforce. The RefArch and RefArchGlobal storefronts can be installed in any B2C Commerce sandbox using these instructions. If you have a B2C Commerce Sandbox, you can install the latest SFRA Build from the Administration Menu. This will not impact any other sites that may already exist in your sandbox environment. If you are new to B2C Commerce, please use the default SFRA build to deploy in your sandbox. The deployment and setup process takes about 10 minutes, and your sandbox environment will notify you via email when the deployment is complete. b2c-crm-sync supports multiple sites and customerLists. To see this in action, please ensure that the RefArchGlobal site leverages its own CustomerList. SFRA ships with multiple customerLists -- but with its default setup, the RefArch customerList is associated to both the RefArch and RefArchGlobal sites. b2c-crm-sync's integration tests require that the SFRA RefArchGlobal storefront map to the RefArchGlobal CustomerList. This association can be made by editing the CustomerList association on the RefArchGlobal site. Please note that this isn't a requirement -- but if you want a 100% pass-rate on our multi-cloud unit tests, you should make this change. A number of our unit-tests exercise the RefArch and RefArchGlobal customer lists to test our customer resolution business rules. A subset of the Multi-cloud unit tests will fail if your RefArch and RefArchGlobal sites leverage the same customerLists vs. having their own. If you experience test failures, please review the test description for references to multiple customerLists. The Order on Behalf Of (Assisted Shopping) use-case requires that Business Manager users representing Customer Service Agents have B2C Commerce permissions to login and place orders on behalf of registered storefront shoppers. The Administrator role can be extended to include these permissions. In a production environment, a separate role should be created for Agents that provides the minimally required functional permissions. Do not provide Agents with access to an over-permissioned Administrator role. The Order on Behalf Of experience minimally requires the Login_On_Behalf, Login_Agent, and Create_Order_On_Behalf_Of functional permissions. The other permissions can be included to extend the Agent capabilities. b2c-crm-sync will audit all authentication and REST API call-outs made to the Salesforce Platform via customLogs. The generated logFiles are instrumental when troubleshooting unexpected behaviors. Please enable the debug logging-level in your B2C Commerce sandbox prior to deploying b2c-crm-sync. The log files are instrumental when you need to troubleshoot scenarios like "why isn't my customer syncing to Salesforce when I make an update in B2C Commerce?". Pro-actively enable logging to simplify future troubleshooting. Log entries can be viewed via Log Center or directly from the Site Development landing page within Business Manager. Use the generated log files to inspect REST API calls made from B2C Commerce to the Salesforce Platform. B2C Commerce offers Access Keys as an alternative form of authentication when logging into to Business Manager via external applications: WebDAV File Access, UX Studio Agent, User Login, OCAPI, and Protected Storefront Access. You can use these keys to access log files as well as to authenticate Agents for the Order on Behalf Of use-case. Please use these instructions to generate the Agent User Login and OCAPI and WebDAV File Access and UX Studio access keys for your login. Please copy and download the generated access key -- and keep it in a safe place. You'll need to place this key in your .env file and use it as part of your password for Agent authentication. Please copy and download the generated access key -- and keep it in a safe place. You'll need to authenticate against your sandbox if you want to view logFiles directly. A B2C Commerce Client ID is necessary to facilitate REST API authentication between B2C Commerce and the Salesforce Platform. You can create a B2C Client ID via Account Manager Portal. b2c-crm-sync leverages B2C Client IDs to identify a B2C Commerce instance to Account Manager and authorize REST API interactions via JWT. We recommend creating a new B2C Client ID for b2c-crm-sync vs. leveraging an existing B2C Client ID. Please note that you will need API User rights in Account Manager to create a B2C Client ID. Please request access from your Account Manager Administrator if you do not see the API Client or Add API Client options in the Account Manager menu. Re-open the ClientID page -- and keep it open until the last section of the setup. You'll have to update the B2C Client ID configuration to include the JWT certificate you'll create later during setup. Remember to capture the B2C Client ID value and password applied during this process. You will need to add both properties to the .env file via the B2C_CLIENTID and B2C_CLIENTSECRET properties. We use the dotenv node.js library to store environment-specific configuration settings used to authenticate against a given B2C Commerce environment. Before installing any of the project package dependencies, please follow these instructions to build-out a .env file that contains your environment's configuration settings. This file shouldn't be checked into the repository, and is automatically being ignored by Git. The following table describes each of the B2C Commerce specific .env file variables that are leveraged by b2c-crm-sync's build and deployment tools. The CLI build tools present within this solution will use this information to remotely authenticate against your environment via B2C Commerce REST APIs prior to attempting any import, upload, or re-index activity. They are also used to automate the creation of Salesforce Platform meta-data describing the B2C Commerce environment and Named Credentials used to access the B2C Commerce instance. Prior to saving your file, please verify that the url is correct, that the instanceName has no spaces, hyphens, or underscores -- and that the clientId / clientSecret are accurate. This information must be accurate in order for these activities to successfully process the site-import. The build scripts in this repository leverage B2C Commerce's sfcc-ci automation library. This library performs a number of continuous-integration related tasks that enable the site-data uploading and import. Before we can leverage the automation tasks, the Salesforce B2C Commerce environment's OCAPI Data API permissions must be enabled to support remote interactions. Yes, we will be porting this to leverage the new B2C Commerce APIs in a future release. For now, all use-cases can be satisfied via OCAPI. We leverage the Shop API to facilitate enable Headless use-cases, multi-cloud unit tests that can be executed via the CLI, and to support Assisted Shopping (OOBO) via the B2C Commerce storefront. In your configuration, please remember to nest these configuration settings inside the clients array. Map the OCAPI REST API configuration settings displayed below to the client_id that will be used to facilitate this integration. Remember to paste this configuration within the clients array -- as explained above. Depending on your sandbox configuration, you may need to copy these configuration settings to specific Sites (vs. applying them globally). We leverage the Data API to facilitate server-to-server updates from the Salesforce Platform to B2C Commerce. When a user modifies a customer profile in the Salesforce Platform, the platform publishes those updates to B2C Commerce via the B2C Commerce DATA API. In your configuration, please remember to nest these configuration settings inside the clients array. Map the OCAPI REST API configuration settings displayed below to the client_id that will be used to facilitate this integration. Remember to paste this configuration within the clients array -- as explained above. Remember to replace the client_id and allowed_origins examples included here with values that reflect your own security and environment configuration settings. The build scripts in this repository require that the clientId configured in the .env file also have read / write WebDAV permissions. Please use the following instructions to configure the WebDAV permissions for your clientId. Remember to replace the 'client_id' with the clientId that is configured in your .env file. If you already have clientId permissions created, please add the resources outlined in the snippet below to the existing clientId configuration.
            Open the Business Manager Administration Menu.
            Under Site Development, select the Site Import / Export menu option.
            In the import section, select Storefront Reference Architecture Demo Sites and click the Import Button to continue.
            Select which SFRA build you'd like to leverage, scroll down to the bottom of the page and click the Deploy Button to install the site.
            Open the Business Manager Administration Menu.
            Select theManage Sites option under the Sites menu.
            Select the RefArchGlobal site from the list of available sites by clicking on the siteId.
            Update the CustomerList association by changing the select value to RefArchGlobal.
            Click Save to save your changes.
            Open the Business Manager Administration Menu.
            Select the Roles and Permissions option from the Organization menu.
            Select the Administrator role.
            Select the Functional Permissions tab within the Administrator role properties.
            Select the RefArch and RefArchGlobal sites from the Context modal. This will set the context for permission changes applied to the Administrator role.
            Click the Apply button to view the functional permissions for these sites.
            Add the following functional permissions to the Administrator role by clicking each permission's checkbox: Login_On_Behalf Login_Agent Adjust_Item_Price Adjust_Shipping_Price Adjust_Order_Price Create_Order_On_Behalf_Of Search_Orders Handle_External_Orders
            Click Update to apply these functional permissions to the Administrator role.
            Open the Business Manager Administration Menu.
            Select the Custom Log Settings option from the Operations menu.
            Set the root log level to DEBUG using the available picklist.
            Ensure that INFO and DEBUG are among the selected log levels that will be written to log files.
            Include an e-mail address where FATAL errors can be emailed when caught.
            Click Save to apply these settings and enable b2c-crm-sync logs to be written to your sandbox.
            Click on your userName (full name) in the header navigation menu.
            From your profile, click on the link titled Manage Access Keys.
            Click on the Generate Access Key button to select an access key to generate.
            Select Agent User Login and OCAPI from the Generate Access Key picklist.
            Click on the Generate button to generate your access key.
            Click on the Generate Access Key button to select an access key to generate.
            Select WebDAV File Access and UX Studio from the Generate Access Key picklist.
            Click on the Generate button to generate your access key.
            Go to https://account.demandware.com
            Go to the API Client menu
            Click on the Add API Client button at the top right of the page
            Enter a display name and a password. The password corresponds to the B2C_CLIENTSECRET environment variable that you'll set up in the next section.
            Specify your company's organization as the organization for this B2C Client ID.
            Within the OpenID Connect section, please ensure to configure at least the following:
            Default Scopes: mail
            Allowed Scopes:
            Token Endpoint Auth Method: private_key_jwt
            Access Token Format: UUID
            Click the Save button to apply these changes to your ClientID's configuration.
            Rename the example file 'sample.env' to '.env' in the root of the repository.
            Open the .env file and edit the following information. Please update these values to reflect your sandbox environment's configuration properties.
            Log into the Business Manager.
            Navigate to Administration > Site Development > Open Commerce API Settings.
            Select Shop API and Global from the available select boxes.
            Add the following permission set for your clientId to the existing configuration settings. Map your allowed-origins to point to your Salesforce environment (you may have to come back and set this after your scratchOrg is created below).
            Always remember to save your changes and confirm that they've been written to your Business Manager environment.
            Select 'Data API' and 'Global' from the available select boxes.
            Add the following permission set for your clientId to the existing configuration settings. Map your allowed-origins to point to your Salesforce environment (you may have to come back and set this after your scratchOrg is created below).
            Always remember to save your changes and confirm that they've been written to your Business Manager environment.
            If your existing settings are empty, first add the base 'clients' element referenced above
            Log into the Business Manager.
            Navigate to Administration > Organization > WebDAV Client Permissions.
            Add the following permission sets for your clientId to the existing configuration settings.
            All Salesforce Customer 360 Platform code and meta-data can be deployed to a scratch org leveraging SFDX. CLI commands in this repository support automation of the deployment process, and the .env file can be extended to include additional variables to automate B2C Commerce service and metadata configuration. Please use Trailhead's Quick Start: Salesforce DX as a guide to set up a DevHub that can generate Salesforce scratchOrgs. ScratchOrgs can be configured using the base or personaccounts profiles. The base profile supports Accounts / Contacts, while the personaccounts profile supports PersonAccounts. The following table describes each of the Scratch Org specific .env file variables that are leveraged by b2c-crm-sync's build and deployment tools. The build tools will use this information to create scratchOrgs, set default preferences, and control whether deployments should force overwrites to their target environment. Prior to saving your file, please verify that the scratchOrg profile uses one of the two supported values ('base' or 'personaccounts'). Any values not set will automatically default to base preferences managed via the /config/default.js configuration file. You will leverage the .env file's configuration properties to dramatically simplify the build and deployment of b2c-crm-sync. Check the package.json for the complete set of CLI commands that can be used to automate meta-data generation, service definition creation, and validate environment configurations prior to deployment.
            Open the .env file and edit the following information. Please use these defaults -- and edit them to accommodate your org creation and deployment preferences.
            This activity will seed the B2C Client ID (B2C_Client_ID__c) custom object in the Salesforce Platform using the .env file's B2C_CLIENTID value. The CLI Command will verify the record has been created or reset the record with its default definition if the record exists. This activity will seed the B2C Instance (B2C_Instance__c) custom object in the Salesforce Platform using the .env file's B2C_HOSTNAME and associate the previously created B2C_CLIENTID value. The CLI Command will verify the record has been created, or reset the record with its default definition if the record exists. Executing this CLI command will trigger a flow retrieves the B2C CustomerLists and Sites from your B2C Commerce Instance -- and seeds their configuration records in your Salesforce Org. These records will also be assigned the default B2C Client ID for REST API authentication. b2c-crm-sync does not make changes to any existing page layouts. We expect partners and customers to work through layout requirements and customizations on their own.
            With the JWT certificate in place, you can begin to set up the b2c-crm-sync application on the Salesforce Platform. The first activity to perform is to create a B2C Client ID. This ID will be used by the Salesforce Platform to authenticate against the B2C Commerce Account Manager. You can create a default B2C Client ID via the following CLI command:
            b2c-crm-sync requires that a B2C Instance representing the B2C Commerce environment that will be integrated. The B2C Instance record will enable the seeding of B2C CustomerLists and Sites from your B2C Commerce environment. This default B2C Instance record can be created via the CLI via the following CLI command:
            b2c-crm-sync includes alternative pageLayouts for Contacts (for Account and Contact support) as well as PersonAccounts. You can use these layouts as starting points to consider how to customize your existing Salesforce Customer layouts.
            B2C (Contact) Support Layout for Accounts and Contacts
            B2C (PersonAccount) Support Layout for PersonAccounts
            App Customization Lite
            Customize the User Interface for a Travel App
            Lightning Experience Customization
            Generate the B2C Commerce metadata required by b2c-crm-sync and deploy both the code metadata to the Salesforce B2C Commerce instance by executing the following CLI command:
            The B2C Commerce instance's OCAPI permissions must be extended to allow the Salesforce org to create a storefront session for the Order on Behalf Of shopping experience. This can be done by adding the scratchOrg urls to the OCAPI shop permissions as allowed origins.
            Log into the Business Manager.
            Navigate to Administration > Site Development > Open Commerce API Settings.
            Select 'Shop API' and 'Global' from the available select boxes.
            Add your Salesforce scratchOrg urls to the allowed origins section of the configuration.
            Always remember to save your changes and confirm that they've been written to your Business Manager environment.
            b2c-crm-sync is manage by several storefront SitePreferences. These sitePreferences controls which customerProfile synchronization features are enabled in the B2C Commerce instance. You can use this CLI command to enable all settings:
            The B2C Commerce Order on Behalf Of feature only supports the creation of shopping sessions for registered storefront customers. b2c-crm-sync extends this capability to anonymous storefront shoppers.
            Exercise the multi-cloud unit-tests by executing the following CLI command. These tests exercise integration from both B2C Commerce and the Salesforce Platform:
            b2c-crm-sync includes extras that expose federated access to B2C Commerce Customer Addressbook contents via Salesforce Connect. This extra provides read and edit access to B2C Commerce Customer Addresses from within the Salesforce Platform.
            Enter Setup.
            Search for External Data Sources via the quick-find search.
            Select the External Data Sources menu option.
            Verify that a dataSource named B2C_Customer_Address_Book is present in the list of external dataSources.
            Click on the name B2C_Customer_Address_Book to view the dataSource details.
            From the details display, click on the Validate and Sync button.
            From the Validate External Data Source display, confirm that the table name B2C_CustomerAddress is visible in the list of tableNames.
            Check the Select checkbox to the left of the B2C_CustomerAddress tableName.
            Click on the Sync button to trigger the External Data Source validation and synchronization process.

            Support

            This project is maintained by the Salesforce Community, and it is contributed to by the Salesforce SCPPE and Service Delivery teams within the Customer Success Group (CSG) and Alliances and Channels. Salesforce Commerce Cloud or Salesforce Platform Technical Support do not support this project or its setup. :confetti_ball:   We are always seeking contributions from our community of Architects and developers. If you are looking to learn how to integrate these products, consider extending this project to support your use-case. For feature requests or bugs, please open a GitHub issue. Contributions are ALWAYS WELCOME -- and they benefit the broader community.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/SalesforceCommerceCloud/b2c-crm-sync.git

          • CLI

            gh repo clone SalesforceCommerceCloud/b2c-crm-sync

          • sshUrl

            git@github.com:SalesforceCommerceCloud/b2c-crm-sync.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular REST Libraries

            public-apis

            by public-apis

            json-server

            by typicode

            iptv

            by iptv-org

            fastapi

            by tiangolo

            beego

            by beego

            Try Top Libraries by SalesforceCommerceCloud

            pwa-kit

            by SalesforceCommerceCloudJavaScript

            sfcc-ci

            by SalesforceCommerceCloudJavaScript

            sfcc-sample-apps

            by SalesforceCommerceCloudJavaScript

            create-commerce-app

            by SalesforceCommerceCloudTypeScript

            raml-toolkit

            by SalesforceCommerceCloudTypeScript