Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Load entity list page without reloading the CRM

(0) ShareShare
ReportReport
Posted on by

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

  • Suggested answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 Moderator on at
    RE: Load entity list page without reloading the CRM

    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

  • Suggested answer
    gdas Profile Picture
    gdas 50,089 Moderator on at
    RE: Load entity list page without reloading the CRM

    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.

  • RE: Load entity list page without reloading the CRM

    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.

  • RaviKashyap Profile Picture
    RaviKashyap 55,410 Moderator on at
    RE: Load entity list page without reloading the CRM

    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.

  • RE: Load entity list page without reloading the CRM

    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.

  • Suggested answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 Moderator on at
    RE: Load entity list page without reloading the CRM

    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:

    https://docs.microsoft.com/en-us/previous-versions/dynamicscrm-2016/developers-guide/gg328483(v=crm.8)#url-addressable-forms-and-views

    Hope this helps.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,409 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans