AL icon indicating copy to clipboard operation
AL copied to clipboard

Workflow action button return No approval request exist

Open Chris-Dsilva opened this issue 8 years ago • 11 comments

I've created an action button for a page. I've created an Event subscriber to subscribe to the action button. I've also enabled the workflow in the front end still while clicking on the action button, error is thrown No approval requests exist. action event subscriber workflow front end error1

Chris-Dsilva avatar Feb 26 '18 05:02 Chris-Dsilva

Does this work from C/SIDE?

kalberes avatar Feb 26 '18 08:02 kalberes

Yes it works from C/SIDE

Chris-Dsilva avatar Feb 26 '18 08:02 Chris-Dsilva

@Chris-Dsilva , WorkflowEventCodeunit , is your custom CU created in AL?if yes then can you please send me only that CU of AL ?Thanks in Advance .

shalu712 avatar Feb 26 '18 12:02 shalu712

In order to have a better understanding of the issue we would need some repro code.

kalberes avatar Feb 26 '18 15:02 kalberes

I'm attaching my codeunit for your reference

Codeunit 50000 - CF_POApprovalWorkflowEvents.zip

Chris-Dsilva avatar Feb 28 '18 09:02 Chris-Dsilva

@Chris-Dsilva, I'm a little low on resources this week, but will take a look next week and get back to you with my findings. I hope that is ok :-)

JesperSchulz avatar Feb 28 '18 10:02 JesperSchulz

Yes fine.

Chris-Dsilva avatar Mar 05 '18 08:03 Chris-Dsilva

@JesperSchulz, any progress on your findings?

Chris-Dsilva avatar Mar 07 '18 08:03 Chris-Dsilva

Will look into it today! I'll get back to you EOD.

JesperSchulz avatar Mar 07 '18 09:03 JesperSchulz

Sorry for the delay, but everything is extremely busy at the moment. Anyway, now I've taken a look...

I've tried to import your code sample, but I can't quite make it work, as the CF_FTLContracts record isn't a standard NAV object, just like page 50133 doesn't exist. In order to repro your issue, I would need a code sample and some repro steps, which illustrate the problem. It's extremely hard to identify the problem without it. Is there any chance you can provide that? Or maybe you could provide (a simplified) version of the dependent objects? Basically, I just need to be able to compile and run the code and be able to hit the same error you do...

JesperSchulz avatar Mar 07 '18 19:03 JesperSchulz

Closing due to inactivity. Please log a new issue if you're still facing this problem

StanislawStempin avatar Aug 03 '18 11:08 StanislawStempin