Add Dynamics 365 Lookup functionality in HTML Web resource
In this blog we will look at how we can add the lookup functionality of dynamics 365 Customer Engagement in our HTML web resource.
Step 1 : We have already added a web resource in our app, you can refer to my blog on “ADD HTML page in Dynamics 365 Customer Engagement Apps”. Below is the screenshot of how it looks like
Step 2: Here we have a project field, and every time the Project button is clicked the select Project form opens up as shown in the below image. Please note that the Project entity we are using is a custom entity and not the Out of Box project entity
Step 3 : When the Project is selected from this and the Add option is clicked, the name of the project will be shown in the “Select Project” field on the HTML web resource.
Step 4: The HTML code for this is here.
Below shown in the code snippet that needs to be modified
<input class="form-control" id="selectedProjectRelatedLayout" type="text" placeholder="Select Layout" readonly="">
Hope this helped!