Unused Variables and Outputs Detector
27
Views
2
Comments
Out of scope
Service Studio

Problem

In large modules, unused local variables, input parameters, output parameters, and assignments can accumulate over time. This makes the code harder to maintain and can confuse developers during debugging.

How this suggestion can help 

A better unused element detector would improve code quality, reduce technical debt, and help teams clean modules before publishing.

Implementation example 

Service Studio could show warnings such as:

Local variable 'TempStatus' is never used.

Input parameter 'RequestId' is not referenced.

Output parameter 'SuccessMessage' is never assigned.

It could also provide a quick action:

Remove unused variable

Changed the category to
Service Studio
Changed the status to
Out of scope

This feature is already inplemented as for ever:

And with right click you have the option to delete them