Seamlessly Importing Images via URLs in Bulk into Business Central
Whether you’re adding product catalogs or updating images for an extensive inventory, having an efficient way to bulk import images can save time and effort.
In this blog post, we will walk you through the steps to import images in bulk into Business Central, providing you with a seamless method to enhance your product data.
In today’s fast-paced business environment, efficiency and accuracy in managing product data are crucial for maintaining a competitive edge. Microsoft Dynamics 365 Business Central (BC) is a comprehensive enterprise resource planning (ERP) system that integrates all business functions into one platform. One of the most time-consuming tasks for businesses, especially those with large inventories, is managing and uploading product images.
1. Create a Codeunit or Processing Report:
Since Business Central doesn’t have a built-in feature for bulk image import, you can create a custom codeunit or processing report to handle this task. In this example, we’ll use a codeunit.
2. Add a New Field for Image URL:
Create an Item Table Extension and add a new field called “Product Image URL” to the Item table. This field will hold the URL or path for each product image.
3. Set the Image URLs Using a Configuration Package:
Use a config package to set the image URLs in the “Product Image URL” field for each item. This is where you will provide the path or URL for the image associated with each product.
4. Run the Codeunit to Update Items:
After populating the image URLs via the configuration package, run the codeunit in the foreground. The codeunit will process each item and update the products that have a valid URL set, linking them to the corresponding images.
Below is the logic which will use the url which is set in Item master table and update all the data in bulk
codeunit 50112 SetImageUrl
{
Permissions = tabledata Item = rimd;
Description = ‘Set Image URL’;
trigger OnRun()
var
RecItem: Record Item;
Rec_Item1: Record Item;
ItemPage: page “Item Card”;
PictureURLDialog: Page “Picture URL Dialog”;
begin
Clear(RecItem);
RecItem.Reset();
RecItem.SetFilter(“Product Image URL”, ‘<>%1’, ”);
if RecItem.FindSet() then
repeat
Rec_Item1.SetRange(“No.”, RecItem.”No.”);
if Rec_Item1.FindFirst() then begin
PictureURLDialog.SetItemInfo(Rec_Item1.”No.”, Rec_Item1.Description, Rec_Item1.”Product Image URL”);
PictureURLDialog.ImportItemPictureFromURL();
end;
until RecItem.Next() = 0;
end;
}
This approach allows you to automate the bulk import of product images into Business Central efficiently.
Conclusion
Importing images in bulk into Business Central can significantly enhance your operational efficiency and ensure your product records are complete and accurate. By following the steps outlined in this blog, you can easily upload and manage product images, creating a more professional and visually appealing online presence, as well as improving internal processes.
Whether you’re dealing with thousands of items or just a few, these steps will guide you through the bulk image import process, saving time, reducing errors, and providing a better user experience for both your team and customers.
If you need further assistance or have specific questions about your Business Central setup, feel free to reach out for personalized guidance. Happy importing!
We hope you found this blog useful, and if you would like to discuss anything, you can reach out to us at transform@cloudfonts.com.
Share Story :
SEARCH BLOGS :
FOLLOW CLOUDFRONTS BLOG :
Enter your email address to follow this blog and receive notifications of new posts by email.
Categories
- Azure (98)
- Azure and Office 365 (107)
- Azure App Services (1)
- Azure Databricks (3)
- Azure DevOps Services (5)
- Azure Function (12)
- Azure Synapse Analytics (3)
- Blog (1,322)
- Business Process Flow (2)
- C# (5)
- Cloud flows (20)
- CloudFlows (9)
- Copilot (1)
- Customer Success (79)
- d365 (2)
- D365 Business Central (294)
- D365 Commerce (5)
- D365 Customer Service (59)
- D365 Field Service (21)
- D365 Finance (5)
- D365 Finance and Operations (206)
- D365 General (300)
- D365 Project Operations (4)
- D365 Project Service Automation (56)
- D365 Retail (60)
- D365 Sales (54)
- D365 SCM (11)
- Dataverse (8)
- Demand and Supply Forecasting (1)
- Dot Net (1)
- Dynamics 365 (234)
- Dynamics 365, Business (17)
- Dynamics AX (40)
- Dynamics CRM (137)
- Dynamics NAV (14)
- InforLN (1)
- JavaScript (8)
- Logic App (26)
- LS Central (13)
- Model-Driven App (5)
- MS Teams (5)
- Power Automate (56)
- Power BI (195)
- Power Plattform (16)
- Power Query (4)
- Power Virtual Agent (1)
- PowerApps (54)
- PowerApps Portal (6)
- Press Releases (50)
- Project Management (3)
- Project Service Automation (7)
- Ribbon Workbench (1)
- Ribbon Workbench (1)
- Salesforce (2)
- SharePoint (4)
- SQL Server (7)
- SSIS (1)
- Thought Leadership Article (6)
- Tibco (3)
RECENT UPDATES
- From Connection to Intelligence: Building the Future with Microsoft
- Business Central Translations: Working with XLIFF Files – Part 2
- Business Central Translations: Language Setup and Customization – Part 1
- A Comprehensive Guide to Backups and Restores in Dynamics 365 Business Central
- How to Recover Azure Function App Code