Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Suggested answer

Automating Daily Item Synchronization Between Business Central and Shopify

Posted on by 59
Hello,
 
We are about to start using the default Shopify Connector with Business Central. I can currently add all the items we plan to put on Shopify using the ‘Add Item’ report for the initial setup.

However, we create approximately 100 items per week, and these need to be synchronized with Shopify. To achieve this, I want to automate the ‘Add Item’ job queue by scheduling it daily.

I’ve attempted to schedule it daily by checking the ‘created at’ filter, but the input ‘today’ is not dynamic. It only uses today’s date and repeats it for subsequent days.
Is there any way to schedule a daily job queue for the ‘Add Items’ report, filtered with specific item entities and created on that day? Or is there any better solution for it?
 
Thanks in advance for your precious contributions!
 
 
  • CU29041409-0 Profile Picture
    CU29041409-0 33 on at
    Automating Daily Item Synchronization Between Business Central and Shopify

    To automate the synchronization of new items created in Business Central with Shopify on a daily basis, you can implement a custom solution using a combination of Business Central's native features and possibly some custom development. Here's a proposed solution: Custom Job Queue: Instead of relying on the default Shopify Connector's 'Add Item' report, create a custom job queue specifically for synchronizing new items to Shopify. This job queue should be programmed to run daily. Filtering by Creation Date: Within the custom job queue, implement logic to filter items based on their creation date. You mentioned that the 'created at' filter only uses today's date and repeats it for subsequent days. To address this limitation, you'll need to incorporate custom logic to dynamically filter items based on their creation date. Custom Logic for Dynamic Date Filtering: You can achieve dynamic date filtering by utilizing Business Central's APIs and custom development. Write code to retrieve items created on the current day programmatically. This involves querying the Business Central database for items created within the last 24 hours. Integration with Shopify API: Once you've retrieved the newly created items, integrate with the Shopify API to add these items to your Shopify store. You'll need to map the fields from Business Central to the corresponding fields in Shopify. Error Handling and Logging: Implement robust error handling mechanisms to handle any failures during the synchronization process. Additionally, ensure that detailed logs are generated for troubleshooting purposes. Testing and Monitoring: Thoroughly test the synchronization process in a development or staging environment before deploying it to production. Monitor the job queue regularly to ensure that it runs as expected and troubleshoot any issues promptly. By following these steps, you can automate the synchronization of new items from Business Central to Shopify on a daily basis, ensuring that your inventory remains up-to-date across both platforms.

  • Suggested answer
    Oguzhan Gok Profile Picture
    Oguzhan Gok 59 on at
    Automating Daily Item Synchronization Between Business Central and Shopify
    Hello again,
     
    I can also start the job que of "Add Items" report in daily basis without setting this "Created At" value. In this case, does system only synchronize only unsynchronized materials? In UAT version, I've already added 5K items to Shopify from BC. Then, even though I create only one new item in BC that fits the filters of the "Add Items" report and run it, it takes around 10min, so I felt like its re-check all the items previously added as well.
     
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 68,480 Super User 2024 Season 2 on at
    Automating Daily Item Synchronization Between Business Central and Shopify
    Yes, as far as I know, date formulas, including Today, cannot be entered in the Request page of Job Queue.
    If you don't set this value (leave it empty), will you achieve your goal? The system should synchronize unsynchronized materials.
     
     
    Hope this helps.
    Thanks.
    ZHU

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 9th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,263 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,112 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans