web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Business Central forum

Showing error when defining parameter in a function.

(0) ShareShare
ReportReport
Posted on by 245

Hello all ,

 I am getting error when defining parameter in a function(in Subscriber event). my code is like below.

event.PNG

Error : "The member referenced by event subscriber 'GetResultMessageWeb' parameter 'MesgP' is not found."

I have the same question (0)
  • Verified answer
    Hannes Holst Profile Picture
    5,767 on at

    Hi,

    The function underneath a event subscriber declaration can take only parameters that are provided by the event.
    The event "OnAfterPostWhseJnlLine" provides a record variable to the Warehouse Shipment Line which you could add as a parameter to your function and utilize in the function.

    5086.Untitled.png

  • Manikanta_501 Profile Picture
    245 on at

    Ok ., Thank you.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Business Central

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans