SQL Scripts for Microsoft Dynamics GP: Change Email Notification Assignment

Microsoft Dynamics GPThis script is part of the SQL Scripts for Microsoft Dynamics GP where I will be posting the scripts I wrote against Microsoft Dynamics GP over the 19 years before I stopped working with Dynamics GP.

This script will change en masse the email message assigned to workflow steps; it was created for a client after they created new messages for each workflow type and had a lot of workflow steps which needed to be assigned to the new email message.

The two parameters to set are highlighted; care needs to be taken, especially with the @EmailMessageID as there is no validation in the script.

/*
Created by Ian Grieve of azurecurve | Ramblings of an IT Professional (http://www.azurecurve.co.uk) This code is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0 Int). */
DECLARE @Workflow_Type_Name VARCHAR(40) = 'Purchase Requisition Approval' DECLARE @EmailMessageID VARCHAR(30) = 'AZRCRV POREQ ASSIGNED' UPDATE ['Workflow Step Table'] SET EmailMessageID = @EmailMessageID ,Workflow_Step_Send_Email = 1 FROM WF100003 AS ['Workflow Step Table'] --Workflow Step Table (WF100003) INNER JOIN WF100002 AS ['Workflow Master'] --Workflow Master (WF100002) ON ['Workflow Master'].Workflow_Name = ['Workflow Step Table'].Workflow_Name WHERE ['Workflow Master'].Workflow_Type_Name = @Workflow_Type_Name AND ['Workflow Step Table'].Workflow_Step_Send_Email = 0 GO

Click to show/hide the SQL Scripts for Microsoft Dynamics GP Series Index

In Microsoft Dynamics 365 Business Central (Administration), how do I… Understand Posting Groups

Microsoft Dynamics 365 Business CentralThis post is part of the In Microsoft Dynamics 365 Business Central (Administration), how do I… series and of the wider In Microsoft Dynamics 365 Business Central, how do I… series which I am posting as I familiarise myself with Microsoft Dynamics 365 Business Central.

Posting groups are how Dynamics BC determines to which G/L accounts transactions are posted. They work by mapping entities, such as customers, vendors, items, sale documents, purchasing documents and so on, to the G/L accounts in order to save time and reduce errors.

There are three types of posting group in Dynamics BC:

  1. General posting groups are used to define how transactions should be posted to the general ledger for a particular customer, vendor, item, or resource. They allow you to specify default accounts for different types of transactions based on the entity being used in the transaction. For example, you might use a General Posting Group to specify the default accounts for sales or purchases for a particular customer or vendor.
  2. Specific posting groups which are used to specify how transactions should be posted to the general ledger for a particular item or resource. They allow you to define default accounts for different types of transactions involving a specific item or resource. For example, you might use a Specific Posting Group to specify the default accounts for inventory transactions for a particular item.
  3. Tax which are used to specify the VAT (Value Added Tax) posting setup for a customer or vendor. They allow you to define default VAT accounts for different types of transactions involving a particular customer or vendor. For example, you might use a Tax Posting Group to specify the default VAT accounts for sales or purchases for a particular customer or vendor

In the next few articles in this series, I’ll take a deeper look into each of the posting group types.

In Microsoft Dynamics 365 Business Central, how do I…

In Microsoft Dynamics 365 Business Central (Administration), how do I…