Business process flow I added an option set in one step (sub-category)
I am trying to clear the options in the options using the below code.
Xrm.Page.getControl("new_subcategory").removeOption(100000005)
Xrm.Page.getControl("new_subcategory").clearOptions()
This removes the options for the option set that is inside the form, but it is not removing for the same option set that is in the step of business process flow.
Here's a link that may help you.
Business process flows overview - Power Automate | Microsoft Learn