Hide flow actions in Actions Menu & the same assignment should be disabled in Case contents grid
Based on a flag, i want to hide the flow actions in actions menu and the same flow action should be disabled in Case contents grid. This flag will be reset based on other ad hoc actions. Flow action security cannot be used as there are around 10 flow actions that can be disabled in the case and i don't want to modify the security of each flow action for this purpose. Is there any other generic way to disable flow actions both in Case contents grid and Actions Menu?
I have used canPerform to disable the required assignments based on pxFlowName and flag that requires disabling in Case contents grid. But flow actions in Actions menu is not considering the canPerform.