Get your business online with free website builder (en)

Call “No.” field “OnValidate” trigger via “EventSubscriber” of Sales & Purchase Line Table in BC D365

Call “No.” field “OnValidate” trigger via EventSubscriber:

(1) In this blog we have seen that how to call the “No.” field OnValidate trigger of the Sales & Purchase Line table.

(2) For that call Event of “No.” field “OnAfterValidateEvent”.

(3) Example 01 (In case of Sales Line Table): In this, we have to auto-update Sales line table custom fields (GSTGroupCodeForSale and HSNSACCodeForSale) from Item Master when “No.” field “On-Validate” trigger call, as shown.

eventsubscriber example In case of Sales Line Table

(4) Example 02 (In case of Purchase Line Table): In this, we have to auto-update Purchase line table custom fields (GSTGroupCodeForSale and HSNSACCodeForSale) from Item Master when “No.” field “On-Validate” trigger call, as shown.

eventsubscriber example In case of Purchase Line Table

How to attach Report in Page in D365 BC
How to define Custom Object Range in AL in D365 BC
Usage of TESTFIELD in D365 BC
Creation and Usage of Temporary Table in BC D365
How to Move fields in Page via AL Extension in D365 BC
Page Extension Object– Microsoft Docs

Leave a Reply