Sync Data
Sync your DynamicWeb products, categories, content, customers, and orders to Clerk. This guide covers setting up data synchronization and configuring the REST API.
Before syncing data, make sure you have installed the Clerk SDK in your DynamicWeb store. See the Get Started guide for installation instructions.
Build repository index #
Navigate to Settings -> Repositories -> Clerk.
Click the Products index
Under Builds -> Build, click the Products button to build the index.
Follow the same procedure for all indexes (Categories, Contents, Customers, Orders)
Setup REST API #
Navigate to Content in the sidemenu and create a new folder named Clerk.
Inside this folder, create a new page
Click Add Empty Page and then choose Page as the type.
Name the page “Products”, and set the Page Status to Hide in menu
Click “New Paragraph” and scroll to Add paragraph. From here, choose App.
Give it the name “Products”.
Choose App > Content > Query publisher
Under Query, choose Products.query.
Under Template in the bottom, choose QueryPublisher/ClerkProducts.cshtml.
In the top of the page, click Save.
In the left menu, click the 3 dots to the right of the Products page, and click Properties.
Under URL, set Exact url for this page to "/clerk/products".
In the top-menu, uncheck all options above the Accessibility.
Click Layout in top-menu.
In the top menu, choose the template Rapido: JSON
Save the page again.
Repeat these steps for Contents, Orders, Categories and Customers, making sure to replace products/Products with the relevant data type throughout.
Run first sync #
Login to your my.clerk.io backend.
Navigate to the Data section.
Insert your webshops domain under Store URL and add your Shop ID to make sure Clerk syncs from the correct catalogue.
Choose any additional sync options you want.
Click Save.
Click Start New Data Sync.
Wait for the sync to finish.