Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Finance forum / How to search text thr...
Finance forum
Suggested answer

How to search text through all code in AOT ?

Posted on by 707

Hi,

Why I can't use the Find tools through all objects in AOT. I intend to search some text through all the classes but end up saying "No files were found to look in"

I go to AOT, then press Ctrl+Shift+F, then the window pop up "Find in files"

Put the text I want to search in Find What

Then Look in "All models", with include sub-folders. then "Find All"

pastedimage1610007282413v1.png

Then nothing happen, and result is those text saying no files to look in. 

Thanks

  • Suggested answer
    Lauras U Profile Picture
    Lauras U 955 on at
    How to search text through all code in AOT ?
    Metadata search all the way. But it's quite slow. For an instant results I would suggest enabling windows search service and adding PackagesLocalDirectory into windows indexing options filetypes xml (D365FO objects) and txt (for labels) contents are automatically indexed and could be searched instantly.
  • ShaqAX Profile Picture
    ShaqAX 707 on at
    RE: How to search text through all code in AOT ?

    Hi all,

    Actually, like Nikolaos mentioned, it used to be ok with Ctrl+Shift+F, the Find tools. I have used it long time ago, but with other company which of course different VM setting (I assumed), although it the same version of Visual Studio. I'm using 2015.

    That's why my question "why can't I" Is there some setting in Visual Studio that not being turn on ?

    Find reference is good, but this time I really only want to know specific word, just to know how it is being applied in coding.

    Thanks,

  • Suggested answer
    nmaenpaa Profile Picture
    nmaenpaa 101,148 on at
    RE: How to search text through all code in AOT ?

    For me it seems to work (I have actually never tried it before).

    searcg.png

  • Suggested answer
    Martin Dráb Profile Picture
    Martin Dráb 228,683 Most Valuable Professional on at
    RE: How to search text through all code in AOT ?

    You can use Dynamics 365 > Metadata search for this purpose. Type in code:"_args" as the search string. In a real scenario, you'll likely use more specific criteria.

    Also note that if you're intersted in a particular class, method, field etc, you can use Find references.

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

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

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,570 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,683 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans