AL icon indicating copy to clipboard operation
AL copied to clipboard

New request for Codeunit 700

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

I need to add Global function in codeunit 700. I've tried creating an Integration Event in C/AL and calling it in AL but it throws error. How to resolve these? git1

git2

Chris-Dsilva avatar Feb 16 '18 07:02 Chris-Dsilva

Have you regenerated the application symbols using C/SIDE as described here: https://docs.microsoft.com/en-us/dynamics-nav/developer/devenv-running-cside-and-al-side-by-side ?

StanislawStempin avatar Feb 16 '18 08:02 StanislawStempin

Yes I've done that

On 16 Feb 2018 1:54 p.m., "Stanislaw Stempin" [email protected] wrote:

Have you regenerated the application symbols using C/SIDE as described here: https://docs.microsoft.com/en-us/dynamics-nav/developer/ devenv-running-cside-and-al-side-by-side ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Microsoft/AL/issues/1608#issuecomment-366171550, or mute the thread https://github.com/notifications/unsubscribe-auth/AXt_ebeE7OfTX7YwGNqJIqTzVRAQ3Kbnks5tVTstgaJpZM4SH9qe .

Chris-Dsilva avatar Feb 16 '18 11:02 Chris-Dsilva

Can you show the signature of the new global function that you added in codeunit 700? Is it an Integration Event? Does it have parameter named RecordRef?

For the second error - you cannot have a return value for event subscribers. Delete the : Integer; part

StanislawStempin avatar Feb 16 '18 11:02 StanislawStempin

I deleted the Integer part and it worked.

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