Skip to main content
Question

Workflow extension that doesn't run

  • July 29, 2022
  • 2 replies
  • 139 views

Tony Lanzer
Pro III
Forum|alt.badge.img+2

I am attempting to create a workflow extension for BusinessAccountWorkflow.  It adds a few actions that I want to suppress. My extension’s Configure method override basically doesn’t do anything, so that the base method doesn’t create actions.  My override method doesn’t seem to be running, though, because the actions still appear, and my breakpoint isn’t hit. Below is the extension.  What could I be missing to get this to override to run?

public class BusinessAccountWorkflowExt : PXGraphExtension<BusinessAccountWorkflow, BusinessAccountMaint>
{
public static bool IsActive() => false;

public override void Configure(PXScreenConfiguration configuration)
{
var context = configuration
.GetScreenConfigurationContext<BusinessAccountMaint, BAccount>();

context.AddScreenConfigurationFor(screen =>
{
return screen;
});

//context.RemoveScreenConfigurationFor();
}
}

 

2 replies

Tony Lanzer
Pro III
Forum|alt.badge.img+2
  • Author
  • Pro III
  • August 2, 2022

I did start noticing the breakpoint would be hit in certain circumstances, like DLL load, and was able to debug a bit further. I also noticed since I posted this that there are more levels of extension for Business Account than I first thought, and needed to extend multiple levels and extensions of other extensions. However, no matter what I've done so far, I haven't been able to hide the actions that I'm trying to. I might create another question for this specifically, though.


Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • October 28, 2022

Hi @tlanzer25  - were you ever able to find a solution? Thank you!