web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How to get Advance Find details from javascript AND records retrieved from advance find Query??

(0) ShareShare
ReportReport
Posted on by 1,157

Hi All,

I want to get Advance find xml or Advance Find page context to retrieve the view and query details of it.

Advance-Find-Ribbon.JPG

We have a new button on Contact subgrid.. On Click of this button we want to fetch Advance Find details like Advance find Query, View Name, View Description.

Along with these details we want to add the result records in subgrid of another Entity.

I have used document.getElementById('FetchXml') to get Advance find details, but its returning the null value.

Can anybody suggest a way to get the advance find details and to add result records in another entity's subgrid?

Thanks in advance.

*This post is locked for comments

I have the same question (0)
  • Inogic Profile Picture
    639 on at
    RE: How to get Advance Find details from javascript AND records retrieved from advance find Query??
    Check below link to get advanced find subgrid.
     
     
    Also may be sometimes subgrid takes time to load so you can try setTimeOut condition.
     
     
    Hope this helps!
     
    Thanks!
  • JayeshAC Profile Picture
    1,157 on at
    RE: How to get Advance Find details from javascript AND records retrieved from advance find Query??

    This is the requirement that they want this button on Result tab only.

  • Community Member Profile Picture
    on at
    RE: How to get Advance Find details from javascript AND records retrieved from advance find Query??

    Try to put button on advanced find tab, not on result tab.

  • JayeshAC Profile Picture
    1,157 on at
    RE: How to get Advance Find details from javascript AND records retrieved from advance find Query??

    Hi Uriy,

    Thanks for the reply.

    I have tried it too but the system was not able to find get_fetchXml.

    hence i'm getting an error.

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: How to get Advance Find details from javascript AND records retrieved from advance find Query??

    It's not really supported, but you can try to use following code:

    var fetchXml = $find('advFind').get_fetchXml();

    Just add application ribbon to solution and add new button to it with ribbon workbench. 

    After you get fetchXml i guess there is way to use it for your purposes. 

  • JayeshAC Profile Picture
    1,157 on at
    RE: How to get Advance Find details from javascript AND records retrieved from advance find Query??

    any solution on this??

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Community Member Profile Picture

Community Member 2

#2
Christoph Pock Profile Picture

Christoph Pock 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans