Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Suggested answer

How to search text through all code in AOT ?

(1) ShareShare
ReportReport
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,156 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 230,370 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

News and Announcements

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,359 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans