Customize StrMenu or Dialog option at the time of Purchase Posting in D365 BC

Customize StrMenu or Dialog option at the time of Purchase Posting in D365 BC:

(1) In this blog, we will make an extension to change the menu or dialog option at the time of Purchase Order Posting or Purchase Return Order Posting.

(2) First, we will open Purchase Order Document and Press Post Button (Shortcut Key F9), as shown.

Purchase Order Document Post Options in D365 BC

(3) In the above image, the standard system shows the menu in this sequence. “Receive, Invoice & Receive and Invoice”. If you want to change option sequence, name and visibility, then follow the below steps.

Change Sequence of Options:
  • For this create a new extension and call the “OnBeforeConfirmPost” event, as shown.
call OnBeforeConfirmPost for purchase posting
  • After that create a new function for changing the sequence of options, as shown.
Code for changing sequence of option for Purchase posting
code 2 for changing sequence of option
  • After doing the above steps, publish the extension and see the result, as shown.
Sequence of option change for purchase posting
Changing the Name of Options:
  • For this create a new extension and call the “OnBeforeConfirmPost” event, as shown.
call OnBeforeConfirmPost for purchase posting
  • After that create a new function for changing the name of options, as shown.
Change the name option for purchase posting bc d3365
code 2 for changing sequence of option
  • After doing the above steps, publish the extension and see the result, as shown.
name option change for purchase posting in d365 bc
Hide Options:
  • For this create a new extension and call the “OnBeforeConfirmPost” event, as shown.
Create new extension to call OnBeforeConfirmPost in d365 bc
  • After that create a new function for hiding options, as shown.
Hide options coding for purchase posting in d365 bc
code 2 for changing sequence of option
  • After doing the above steps, publish the extension and see the result, as shown.
Option hide in purchase posting d365 bc

(4) For Purchase Return, follow the same steps and change the “ShipInvoiceQst” caption.

Change ShipInvoiceQst caption for For Purchase Return

Customize Post StrMenu or Dialog option at the time of Sales Posting in D365 BC
Correct or Cancel a Posted Sales Invoice in D365 BC
Show Amounts Field in General Ledger Setup in D365 BC
FlowFilter in Dynamics 365 BC
Creation and Usage of Temporary Table in BC D365
Posting Sales– Microsoft Docs

Leave a Reply