Lightning-Flow-Scanner / lightning-flow-scanner-core

A rule engine capable of conducting static analysis on the metadata associated with Salesforce Lightning Flows, Process Builders, and Workflows.
https://www.npmjs.com/package/lightning-flow-scanner-core
MIT License
27 stars 9 forks source link

Idea for new ruleset: identify copy of elements #30

Closed fkramer690 closed 1 year ago

fkramer690 commented 1 year ago

I often see that elements are copied in the flow and the API Names are not corrected. This leads to a lot of copy_of_elements which is not clean. A check could help here.

RubenHalman commented 1 year ago

would you be able to help me with a filter for those auto-generated names. is it always adding a number like myflow and myflow1?

fkramer690 commented 1 year ago

Hey Ruben, below I created two screenshots for you. The original element is called flServices. When I clone it the new element is called Copy 1 of flService.

image image image

If you have multiple such copies of elements, checking the Toolbox Resource Tab and finding the correct one may be messy. Apart from that, this would also not be the way in apex to call a variable copy_1_of_accountList :-)

RubenHalman commented 1 year ago

this has been merged in the latest version of the core. let us know if it suffices!