web
You’re offline. This is a read only version of the page.
close
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

I have the same question (0)
  • Suggested answer
    RaviKashyap Profile Picture
    55,410 Moderator on at

    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.

  • Community Member Profile Picture
    on at

    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.

  • RaviKashyap Profile Picture
    55,410 Moderator on at

    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.

  • Community Member Profile Picture
    on at

    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.

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at

    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.

  • Suggested answer
    RaviKashyap Profile Picture
    55,410 Moderator on at

    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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans