Hi All,
This is a long shot, but I thought I would ask.
Currently we have this property DisableWriteInsideTryFunctions set to False on our NST's.
This is because in the past we have incorrectly implemented Try Functions which modify/insert data into the DB.
I would now like to refactor these functions to use IF Codeunit.RUN instead.
To do this, I would ideally like to get a list of all the Try Functions in our Objects.
I am just wondering if there is a way to do this, I have checked PRISM and there doesn't seem to be an option to find just Try Functions.
The only other option I can think of is to write a Powershell Script to analyze the objects and return the procedure names with the object ID.
Has anyone done this previously, or does anyone have a suggestion?
Thanks.
0
Answers
If you use Notepad++ you can use Mark Line functionality and mark all lines having [Try Function] string, and all lines starting from PROCEDURE, you can the copy all bookmarked lines an you will have complete list of your try functions.
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
Perfect, not sure why that didn't occur to me. Thanks very much.