Set objectList;Modify main method. Modify statement of following if conditions:
if (sysProjectFilterRunBase.prompt())To the following look:
sysProjectFilterRunBase.run(1); if (sysProjectFilterRunBase.prompt()) { sysProjectFilterRunBase.run(2); } sysProjectFilterRunBase.write();Modify run method:
public void run(int _runNum = 1)Add following set initialization before while statement:
if (!objectList) { objectList = new Set(Types::String); }Add following code after standard line ( set.add(path); ):
if (1 != _runNum && !objectList.in(path)) { continue; // skip as we want to collect objects that meet all queries } else if (1 == _runNum) { objectList.add(path); continue; // at first step we do not want to add any elements }Usage:
If you found value in what I share, I've set up a Buy Me a Coffee page as a way to show your support.
Buy Me a CoffeeNo comments. Be the first one to comment on this post.
DaxOnline.org is free platform that allows you to quickly store and reuse snippets, notes, articles related to Dynamics 365 FO.
Authors are allowed to set their own "buy me a coffee" link.
Join us.