Skip to main content

MGCWardenProdOrderCreatePriv

Grants exactly one entry point: ProdTableNew, the display menu item that opens the Create production order dialog (ProdTableCreate), at Create, Read and Update with the dialog form attached, copied from the one entry in Microsoft's ProdTableCreationMaintain that carries that dialog. WHEN THIS GRANT APPLIES. D365 gives a form the security context of the menu item it was opened through, so this grant covers the dialog only when it is opened THROUGH ProdTableNew. Production control > Production orders > All production orders > New does that. The Production order button on the Sales order form (buttonLineProduction) has no menu item behind it, so on its own the dialog would inherit the context of whatever menu item opened the Sales order form (for this role, SalesTable at Read) and every field would be read-only. MGCWardenSalesLineTypeProdCreate_Extension passes ProdTableNew to the dialog when the user holds that menu item, the way Microsoft does for the neighboring New transfer order button, so the dialog runs under this grant from the sales line too. WHAT THE GRANT ENABLES: Create on ProdTable and InventDim and Read on BOMTable and RouteTable, which the dialog needs to create the order and to default the site, warehouse, dimensions, BOM and route from the sales line; without them those fields stay blank. DELIBERATELY WITHHELD: every other entry point of ProdTableCreationMaintain (ProdTable, ProdTableDetails, ProdTableEdit, ProdTableEditList, the list pages, and all Create and Update there), so this privilege cannot be used to open and edit existing production orders. Pair it with Microsoft's ProdTableView: the production order details form opens straight after OK so the user sees the order just created, and without Read on that form the second open fails. Update is granted on the entry point only because Microsoft grants it at that level: the dialog updates the record it is in the middle of creating. The explicit Allow on the buttonLineProduction control keeps the button available to a read-only user even if a platform update tightens the default for Manual controls.

  • Object type: Privilege

Grants​

Object typeObjectAccess
MenuItemDisplayProdTableNewCreate