With the use of a Popdock widget you can integrate a Popdock list or multiple lists directly into your Dynamics 365 Customer Engagement user interface as an Iframe. The following example is a common scenario we see for embedding widgets in CE.
Important Tip
A Popdock widget will need to be created prior to following these steps because you will need the widget URL. Click Here to learn how to create a Popdock widget.
A sample solution with a widget can be downloaded here.
Adding a Popdock Tab:
![](https://linuxeqa.eonesolutions.com/wp-content/uploads/2023/09/6307d9d470b3613776758bbd_CE_Widget.png)
1. Click the gear icon at the top right next to your profile icon, then select “Advanced Settings”.
![](https://linuxeqa.eonesolutions.com/wp-content/uploads/2023/09/6307d9d470b361556d758b7c_CE_Advanced_Settings.png)
2. In the top navigation bar go to Settings > Customization > Customizations > Customize the System
3. Select > Entities > Account (or any other entity you want to use) > Forms > Account (Or any form you want to modify)
![](https://linuxeqa.eonesolutions.com/wp-content/uploads/2023/09/6307d9d470b3618a5a758b32_CE_Forms.png)
4. Click the tab you want the Popdock tab to come after, and go to the Insert tab in the Toolbar and click “One Column”.
![](https://linuxeqa.eonesolutions.com/wp-content/uploads/2023/09/6307d9d470b3612bd6758b6c_CE_Add_Tab.png)
5. Give the tab a Name and Label
![](https://linuxeqa.eonesolutions.com/wp-content/uploads/2023/09/6307d9d470b361509e758b0d_CE_Tab_Properties.png)
6. Select the section on the new Tab > Add IFRAME from the Insert menu
![](https://linuxeqa.eonesolutions.com/wp-content/uploads/2023/09/6307d9d470b36170d1758b99_CE_Add_Iframe.png)
7. Enter the below settings
- Name: Enter “IFRAME_Popdock”
- URL: The URL for your widget as generated in Popdock
- Display label on the form: False
- Restrict cross-frame scripting: False
![](https://linuxeqa.eonesolutions.com/wp-content/uploads/2023/09/6307d9d470b3617354758afd_CE_IFrame_General.png)
8. Go to the Formatting tab and enter the below settings
- Number of Rows: 14
- Automatically expand to use available space: True
- Scrolling: Never
- Display Border: False
![](https://linuxeqa.eonesolutions.com/wp-content/uploads/2023/09/6307d9d470b3612ce3758afe_CE_IFrame_Format.png)
9. Click Save on the Iframe window, then Save and Publish form
10. In another window open the Account form and validate the Iframe is now embedded and showing data.
If you need to filter the widget to only show records for certain data, continue below. If you don’t need to filter the data in the widget, you can stop here.
Adding Filter Parameters:
1. Click Web Resources > and create a new Web Resource > Give the Web Resource a name and set the type to “Script (JScript)”
![](https://linuxeqa.eonesolutions.com/wp-content/uploads/2023/09/6307d9d470b361a9c7758bdb_WebResource.png)
2. Click “Text Editor” and enter the script to apply the parameter filter based on a form field.
- If you want to filter with a different CRM field, replace the technical name on line 5 from “accountnumber” to your field.
- If your Iframe has a different name, replace the Iframe name on line 7 from “IFRAME_Popdock” to your Iframe name.
- If your parameter in Popdock has a different name, replace the parameter name on line 11 from “customer_number” to your parameter name.
3. Click the “Save” button, then “Publish”
4. Open the form with the Iframe > Open Form Properties.
![](https://linuxeqa.eonesolutions.com/wp-content/uploads/2023/09/6307d9d470b3612bb9758bd7_CE_Form_properties.png)
5. Add a new Form Library by clicking “Add” and looking up your Web Resource.
![](https://linuxeqa.eonesolutions.com/wp-content/uploads/2023/09/6307d9d470b361ec8b758b8c_lookup_web_resource.png)
6. In the Event Handlers Section on the Control “Form” and Event “OnLoad” click add and select the following.
- Library: Your Web Resource
- Function: The name of your function in the JaveScript Web Resource
- Enabled: True
- Pass Execution Context: True
![](https://linuxeqa.eonesolutions.com/wp-content/uploads/2023/09/6307d9d470b36192dd758b74_Handler_properties.png)
7. Click Save and Publish on the form.
8. In a new window open the Account form and validate the Iframe is now embedded and filtered based on your field.