<b>1) Update GoFlyyGetOrder.php Add id in Button<br> Vendor/Module/Ui/Component/Listing/Column/GoFlyyGetOrder.php</b> public function prepareDataSource(array $dataSource) { if (isset($dataSource['data']['items'])) { $fieldName = $this->getData('name'); foreach ($dataSource['data']['items'] as & $item) { $order = $this->orderRepository->get($item["entity_id"]); $goFlyyOrderId = $order->getData("goflyy_order_id"); if($goFlyyOrderId){ $item[$fieldName] = "<button class='button' id='FlyyOrderId_$goFlyyOrderId'><span>$goFlyyOrderId</span></button>"; } } } return $dataSource; } <b>After Call Phtml in Sales Order Grid</b> <b> 2) Create a File and add the code given below <br> File : Vendor/Module/view/adminhtml/layout/sales_order_grid.xml</b> <?xml version="1.0" encoding="UTF-8"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <body> <referenceContainer name="root"> <block class="Vendor\Module\Block\Adminhtml\FlyOrder" template="Vendo_Module::view/flyorder.phtml" name="vendor.fly.order" /> </referenceContainer> </body> </page> <b> 3) Create a block class and add a code <br> File : Vendor\Module\Block\Adminhtml\FlyOrder.php </b> namespace Vendor\Module\Block\Adminhtml; class FlyOrder extends \Magento\Backend\Block\Template { //Get Collection of goFlyyOrderId add you Logic public function getFlyyOrderId(){ --------------------- return } } <b> 4) Create a template file flyorder.phtml in path <br> File : Vendor/Module/view/adminhtml/templates/view/flyorder.phtml </b> <script type="text/javascript"> require([ 'jquery', 'Magento_Ui/js/modal/modal' ], function($, modal) { $(document).ready(function(){ var options = { type: 'popup', responsive: true, innerScroll: true, title: 'Open Modal' }; $("#FlyyOrderId_<?php echo $block->getFlyyOrderId();?>").on('click',function(){ $("#popup-modal-main<?php echo $block->getFlyyOrderId();?>").modal(options).modal('openModal'); }); }); }); </script>