I don't have any idea to do import and export functionality in Magento 2 for my custom module grid. Kindly help and suggest me some solutions.

1 Answer 1


You can added this code into the ui files so it added export button on your grid.

<exportButton name="export_button">
            <argument name="data" xsi:type="array">
                <item name="config" xsi:type="array">
                    <item name="selectProvider" xsi:type="string">sales_order_grid.sales_order_grid.sales_order_columns.ids</item>


you need to replace sales_order_grid with your provider.

  • i am asking for my custom admin grid.. the answer you provided it for sales module Aug 1, 2020 at 12:22
  • Read the note, where I mention what you want to replace in above code. Aug 1, 2020 at 12:23
  • Shall i add this code inside my UI component file's <listing> tag Aug 1, 2020 at 12:28
  • Yes you need to add the code there. Aug 1, 2020 at 12:29
  • export is working...kindly help me in import functionality Aug 1, 2020 at 16:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.