I have designed a Cti Connector as of AMC and looking to replicate the same behavior as shown at 5:05 in the video, need to load entity list page e.g. account list page inside crm but without reloading the crm.
At the moment, entity form can be loaded using Xrm.utility.openEntityForm("entity", entity_id); but I am unable to find any such utility for the list/view page of entities.
I open the page using window.open('pageUrl','_self'); it reloads the page, which is undesired behavior. It should work same as Xrm.utility.openEntityForm("entity", entity_id);
Thanks
*This post is locked for comments
Hi Rizwan,
Unfortunately there is no method similar to OpenEntityForm to open the entity list. The only way mentioned in the docs is the use the URL with paramters. The paramters navbar & cmdbar can be used to show hide main navigation&command bar. You can check if that helps.
The other option which might work for you (based on the video) is to use the new method loadlookupObject. This methods loads the out of box lookup pop up and allows users to select the records from the list. The list can be a any view.
Check this:
www.inogic.com/.../show-lookup-dialog-in-dynamics-365-v9-0
docs.microsoft.com/.../lookupobjects
Hope this helps
Hi Rizwan ,
Why you are not using Xrm.utility.openEntityForm("entity", entity_id); ?
Is there any specific reason to use window.open('pageUrl','_self');. What is the value of pageUrl here ? When you are using window.open its depends on which URL you are redirecting.
Lets take an example when you are write location.href , inside form its basically give you the content page URL(with id , formid etc ) instead of the URL you can see in the browser. But when you will use window.parent.location.href it will give you the browser URL.
So there is two things from where you are triggering the redirect method and which URL you are redirecting.
Considering above point I believe you should consider location.href instead of window.parent.location.href which means you should always redirect to content page instead of the URL which you can see in the browser.
Hope you understand what I am trying to say.
Hi,
Here is the short video, you can see in case of first call, a single record is open without reloading the whole content but in second can when I need to open the list page of contact entity, it reloads the whole page that is not required. It should work same as the single record case.
Hi,
Are you looking to load entity list page i.e home page grid or entity form? can you share a screenshot please?
Or you are looking to refresh a subgrid. Even OpenEntityForm reloads the page so i am little confused what behavior you are looking.
Thanks Ravi for your kind response.
But this is not what I need. Actually, I need some sdk reference so page is not reloaded same way as it is not reloaded in case of xrm.sdk.openEntityForm(); because page reload gives very awkward user experience. I am accessing these pages from inside the crm not from outside.
Hi,
You would still need to use window.open but you need to build the correct url. Belos is the sample to open the closed opportunity view-
myorg.crm.dynamics.com/main.aspx;pagetype=entitylist&viewid=%7b00000000-0000-0000-00AA-000010003006%7d&viewtype=1039
Refer below docs:
Hope this helps.
Mohamed Amine Mahmoudi
83
Super User 2025 Season 1
Community Member
52
Victor Onyebuchi
6