﻿![]()

#### 

In the previous blog posts, I explained how to implement [Import Price Books](https://www.brimit.com/blog/sitecore-commerce-9-import-price-books) and [Export Price Books](https://www.brimit.com/blog/sitecore-commerce-9-export-price-books) features for Sitecore Commerce.
In this blog post, I will explain how to extend BizFx interface to support import/export features.

You can find the source code here: [https://github.com/Frog911/Sitecore.Commerce.ImportExport](https://github.com/Frog911/Sitecore.Commerce.ImportExport)

I would add two buttons for importing and exporting Price Books to PriceBooks Dashboard.

It will be required to create PopulateImportPricingDashboardActionBlock:

[![Sitecore Commerce 9: Extend BizFx Part 1](https://www.brimit.com/-/media/project/brimit/blog/2020/apaliakou/post-3/11.png?w=900&amp;hash=C6FC6AB94DE4EDCE78C9E6B985BD2DB2)](https://www.brimit.com/-/media/project/brimit/blog/2020/apaliakou/post-3/11.png)

After that, I would create GetPricebookExportViewBlock, which will build a view with a Download File component. It will be possible to provide the path where the exported file should be saved.

[![Sitecore Commerce 9: Extend BizFx Part 1](https://www.brimit.com/-/media/project/brimit/blog/2020/apaliakou/post-4/1.png?w=900&amp;hash=0816E7E0E901C2F93C7D449F3233B4D5)](https://www.brimit.com/-/media/project/brimit/blog/2020/apaliakou/post-4/1.png)

For supporting File Upload, we have to create another ViewBlock. It will provide a possibility to select file for import process. 

[![Sitecore Commerce 9: Extend BizFx Part 1](https://www.brimit.com/-/media/project/brimit/blog/2020/apaliakou/post-4/2.png?w=900&amp;hash=CEEE2156925E95D9E233858E4E074284)](https://www.brimit.com/-/media/project/brimit/blog/2020/apaliakou/post-4/2.png)

Now we have to create DoActionPricebookImportBlock, which will be responsible for reading the imported file stream and starting the import of Price Books. The importing process will run as a long running operation. As a result, it will send the response TaskId. From the BizFx website on the front end side a call will be triggered to check the status by TaskId with an interval of few seconds. 

[![Sitecore Commerce 9: Extend BizFx Part 1](https://www.brimit.com/-/media/project/brimit/blog/2020/apaliakou/post-4/3.png?w=900&amp;hash=2FB4AB4A6F5709197A57284592A0E46F)](https://www.brimit.com/-/media/project/brimit/blog/2020/apaliakou/post-4/3.png)

In addition, we have to register our created blocks as our last step:

[![Sitecore Commerce 9: Extend BizFx Part 1](https://www.brimit.com/-/media/project/brimit/blog/2020/apaliakou/post-4/4.png?w=900&amp;hash=69421E61BCCD97A9E418DCBC5F480FC9)](https://www.brimit.com/-/media/project/brimit/blog/2020/apaliakou/post-4/4.png)

That is all what we have done from the Sitecore Commerce Engine prospective.

In the next blog post, I will explain how to extend BizFx website to support this logic.

Stay tuned!

###### More from author

[##### Sitecore OrderCloud: Restricting access to a custom middleware endpoints for Anonymous customers
August 13, 2024](https://www.brimit.com/blog/sitecore-ordercloud-restricting-access-to-custom-middleware-endpoints-for-anonymous-customers)[##### Sitecore OrderCloud: Cannot Create a Buyer and a Supplier with the Same ID
March 31, 2023](https://www.brimit.com/blog/sitecore-ordercloud-cannot-create-a-buyer-and-a-supplier-with-the-same-id)[##### Sitecore OrderCloud: How to Start Using “Me and My Stuff”
November 29, 2021](https://www.brimit.com/blog/sitecore-ordercloud-how-to-start-using-me-and-my-stuff)

###### Author

[!\[apaliakou\](https://www.brimit.com/-/jssmedia/feature/blogs/authors/apaliakou.jpg?h=216&amp;iar=0&amp;w=360&amp;hash=5BE96F17AE5B47F66D9F684B87773675)
Andrei Paliakou
Sitecore MVP/ Lead Developer](https://www.brimit.com/blog/author?authors=Andrei%20Paliakou)

###### More By Categories

[#How-to](https://www.brimit.com/blog?categories=#How-to)

###### More by Platform

[DXP](https://www.brimit.com/blog?platforms=DXP)

#### More on Sitecore and How to

[!\[How Vercel Will Help You Save Effort When Deploying Sophisticated Sitecore Projects\](https://www.brimit.com/-/jssmedia/project/brimit/blog/2024/vercel_cover-image.png)
#Guides#How-toDXPE-commerce
##### How Vercel Will Help You Save Effort When Deploying Sophisticated Sitecore Projects
Optimize and accelerate the development and deployment of complex multisite Sitecore projects.
Alexei Vershalovich on July 17, 2024](https://www.brimit.com/blog/how-vercel-will-help-you-save-effort-when-deploying-sophisticated-sitecore-projects)

[!\[Training Up Tomorrow's Sitecore MVPs: a Mentoring Success Story\](https://www.brimit.com/-/jssmedia/project/brimit/blog/2023/sitecore-mentoring---cover-image.png)
#How-toDXP
##### Training Up Tomorrow's Sitecore MVPs: a Mentoring Success Story
How to participate in the Sitecore Mentor program and help younger colleagues jump-start a career in Sitecore development.
Sergey Baranov on October 2, 2023](https://www.brimit.com/blog/training-up-tomorrows-sitecore-mvps)

[!\[Going Headless. Part 2: When a Headless CMS Is Your Best Bet (if you have Sitecore)\](https://www.brimit.com/-/jssmedia/project/brimit/blog/2022/headless/adobestock_456986731.jpg)
#How-toDXPE-commerce
##### Going Headless. Part 2: When a Headless CMS Is Your Best Bet (if you have Sitecore)
Discover how a headless CMS can benefit organizations that use Sitecore.
Daniil Raschupkin, Palina Trokhautsava on September 15, 2022](https://www.brimit.com/blog/going-headless-part-2-when-a-headless-cms-is-your-best-bet-if-you-have-sitecore)

![](https://bat.bing.net/action/0?ti=187017043&amp;tm=gtm002&amp;Ver=2&amp;mid=817ba416-d54c-4c88-9300-ce3d32cf7955&amp;bo=2&amp;gtm_tag_source=1&amp;pi=0&amp;lg=en-US&amp;sw=800&amp;sh=600&amp;sc=24&amp;nwd=1&amp;tl=Sitecore%20Commerce%209%3A%20Extending%20BizFx%20(Part%201)&amp;p=https%3A%2F%2Fwww.brimit.com%2Fblog%2Fsitecore-commerce-9-extend-bizfx-part-1&amp;r=&amp;lt=372&amp;evt=pageLoad&amp;sv=2&amp;asc=D&amp;cdb=AQAY&amp;rn=892852)