Announcements
No record found.
Hi,
MyMethod(RecId recId,Set _updateElementChecked = new Set(Types::Int64), Set _browsFormChecked = new Set(Types::String))
I want to make the 2 "Set" parameters as optional => I means when I call this method I can write this:
MyMethod(RecId recId);
in X there's no optional parameters, or at least they're not called optional but default value. You can do it like this:
MyMethod(RecId recId, Set _updateElementChecked = null, Set _browsFormChecked = null)
This will allow you to call the method like MyMethod(recId).
Adrià Ariste - Senior technical consultant @ Axazure - Read my blog!
In your code the Set parameters are already optional, since you provide default values for them.
Hi Basma,
As Nikolaos said, the parameters in your method are already optional.
Initialize the parameters in the method declaration. This will make the parameter an optional parameter.If no value is provided in the method call, the default value is used.
Simple test, you will find that the method can be called normally.
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.
Congratulations to our 2026 Super Stars!
Thanks to all of our 2025 Community Spotlight stars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Giorgio Bonacorsi 617
André Arnaud de Cal... 461 Super User 2026 Season 1
Syed Haris Shah 298 Super User 2026 Season 1