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

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.

In the previous post on seting an update date, I briefly mentioned an “update window”, but didn’t go into any detail. Well, in addition to being able to set an update date which is the earliest date the update will be applied you can also define an update window which is the times between which the update will be installed, once the update date has been reached. The update window allows you to specify times when your system will not be in active use, such as overnight, to allow updates to be applied without disrupting your users.

Like the update date, the update window is set in the Dynamics BC Admin Center. When you access the admin center, you’ll see your environments listed; click the name of the one you want to set an update window for (you will need to repeat if you have multiple environments):

Dynamics BC admin center listing the environments

Continue reading “In Microsoft Dynamics 365 Business Central (Administration), how do I… Set Update Window”

Error Running Dag.exe For C# Modifications In Microsoft Dynamics GP

Microsoft Dynamics GPA little while ago I did some work with a client who was migrating their Microsoft Dynamics GP VBA modifications into C# so that they could make more use of the web client. We had the C# code created, and the VBA-mess modified forms and reports loaded into Dynamics GP. The next step is to use dag.exe to create the managed code assembly which provides access to resources in an application dictionary.

On one of the machines we installed Dexterity in order to get access to dag.exe and then ran the command required to create the managed code assembly. Unfortunately, the following error was produced:

Dag.exe error message

Unhandled exception: System.IO.FileNotFoundException: Could not load file and assembly 'Microsoft.Dynamics.GP.BusinessObjects, Version=18.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad64e35' or ne of its dependencies. The system cannot find the file specified.

It was only seeing the error message that I remembered having been told about this by the developer. The Microsoft.Dynamics.GP.BusinessObjects.dll file needs to be copied from the Dynamics GP install folder (typically %ProgramFiles(x86)%\Microsoft Dynamics GP) into the Dexterity install folder (typically %ProgramFiles(x86)%\Microsoft Dexterity\Dex 18.0).

Once this has been done, the dag.exe command can be run successfully.

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

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.

In the previous post on understanding the Dynamics BC rollout timeline, I mentioned that updates to an environment can be scheduled; this allows you to choose when an environment will be updated, allowing you time to thoroughly test to make sure that nothing will break or change in a way which needs to be explained to users.

You can set the update date through the Dynamics BC Admin Center. Open the admin center to see your available environments.

In the 6th and 7th columns you will see the Current Version and the Available Update Version; click the name of the environment for environment for which you want to an update date (you will need to repeat for each environment to be changed):

Dynamics BC Admin Center showing list of companies

Continue reading “In Microsoft Dynamics 365 Business Central (Administration), how do I… Set Update Date”

Move All Steps for a Microsoft Dynamics GP Workflow Approval Type Under one Workflow Process

Microsoft Dynamics GPI created the script in this post for a client a while ago who wanted to use workflow approvals for purchase orders, but didn’t quite understand how a workflow process should be built.

He needed approximately thirty different approvals and build a step for each approver, all correct so far. Unfortunately, he created them each as a single step under a separate workflow process instead of thirty steps under one workflow process. Asking him to manually recreate all of the steps correctly under one workflow process was not going to be feasible so I did a little table exploring and came up with the below script which will move all steps for a specified workflow type under a single specified workflow process.

The two highlighted parameters at the top are where you need to specify a valid workflow type and destination workflow process. because of how the client had named his workflow processes and steps this script will change the name and description of each step to be the workflow process name and step name concatenated together and separated with a hyphen.

/*
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 @WorkflowType VARCHAR(50) = 'Purchase Order Approval' DECLARE @WorkflowName VARCHAR(50) = 'PO Approval v1'; WITH WFUpdate AS( SELECT ['Workflow Step Table'].Workflow_Name ,['Workflow Step Table'].Workflow_Step_Name ,ROW_NUMBER() OVER(ORDER BY ['Workflow Step Table'].Workflow_Name,['Workflow Step Table'].Workflow_Step_Sequence) * 10 AS ROWNUMBER FROM WF100003 AS ['Workflow Step Table'] -- Workflow Step Table (WF100003) INNER JOIN WF100002 AS ['Workflow Master - Step Parent'] -- Workflow Master (WF100002) ON ['Workflow Master - Step Parent'].Workflow_Name = ['Workflow Step Table'].Workflow_Name WHERE ['Workflow Master - Step Parent'].Workflow_Type_Name = @WorkflowType AND ['Workflow Step Table'].Workflow_Step_Order = 0 ) UPDATE ['Workflow Step Table'] SET Workflow_Name = @WorkflowName ,Workflow_Step_Name = LEFT(RTRIM(['Workflow Master - Step Parent'].Workflow_Name) + - + RTRIM(['Workflow Step Table'].Workflow_Step_Name), 50) ,WF_Step_Description = LEFT(RTRIM(['Workflow Master - Step Parent'].Workflow_Name) + - + RTRIM(['Workflow Step Table'].WF_Step_Description), 100) ,Workflow_Step_Sequence = ISNULL(WFUpdate.ROWNUMBER, ['Workflow Step Table'].Workflow_Step_Sequence) ,WF_Step_Predecessor = CASE WHEN LEN(['Workflow Step Table'].WF_Step_Predecessor) > 0 THEN LEFT(RTRIM(['Workflow Master - Step Parent'].Workflow_Name) + - + RTRIM(['Workflow Step Table'].WF_Step_Predecessor), 100) ELSE '' END FROM WF100003 AS ['Workflow Step Table'] -- Workflow Step Table (WF100003) INNER JOIN WF100002 AS ['Workflow Master - Step Parent'] -- Workflow Master (WF100002) ON ['Workflow Master - Step Parent'].Workflow_Name = ['Workflow Step Table'].Workflow_Name LEFT JOIN WFUpdate ON WFUpdate.Workflow_Name = ['Workflow Step Table'].Workflow_Name AND WFUpdate.Workflow_Step_Name = ['Workflow Step Table'].Workflow_Step_Name WHERE ['Workflow Master - Step Parent'].Workflow_Type_Name = @WorkflowType

As always with scripts, before you run the one above please make sure you understand what the script will do and have a good backup of your company database.

Installing Microsoft Dynamics 365 Business Central 2022 Wave 2 On-premise Demo

Microsoft Dynamics 365 Business CentralBack in August of this year, I did a short series of articles on installing the Microsoft Dynamics 365 Business Central 2022 Wave 1 demo. In October, 2022 Wave 2 was released; I’ve decided to install a new on-premise demo environment using this version, which will allow me to use that demo environment when travelling if I don’t have an Internet connection.

The environment I am using is a similar one as I used for the Wave 1 demo series; there is a VM and client server, both running Windows Server 2022 Standard.

You can download Dynamics BC 2022 Wave 2 here.

Once you’ve downloaded the installation media and extracted the files, launch the setup.exe installation routine and click Next on the welcome page:

Welcome to the Microsoft Dynamics Business Central Setup

Continue reading “Installing Microsoft Dynamics 365 Business Central 2022 Wave 2 On-premise Demo”

SQL View to Return the Microsoft Dynamics GP Workflow Step Assignments

Microsoft Dynamics GPA common request from clients using Microsoft Dynamics GP workflow was a way to easily be able to review to whom workflow steps were assigned; this was often a request from auditors.

I produced a SQL view which could easily be deployed for use in any reporting tool (SmartList Designer or SmartList Builder, SSRS, refreshable Excel, etc.) and which returned who the step was assigned as well showing the predecessor step.

/*
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). */
CREATE VIEW uv_AZRCRV_GetWorkflowSetupStepAssignment AS SELECT ['Workflow Step Instance Table'].Workflow_name ,['Workflow Step Instance Table'].WF_Step_Predecessor ,['Workflow Step Instance Table'].Workflow_Step_Name ,['Workflow Step Instance Table'].WF_Step_Description ,['Workflow Step Instance Table'].EmailMessageID ,['Workflow Users'].ADLogin ,['Workflow Users'].ADDisplayName FROM WF100003 AS ['Workflow Step Instance Table'] LEFT JOIN WF40200 AS ['Workflow Users'] ON ['Workflow Step Instance Table'].Workflow_Step_Assign_To = ['Workflow Users'].UsersListGuid GO GRANT SELECT ON uv_AZRCRV_GetWorkflowSetupStepAssignment TO DYNGRP GO

Microsoft Dynamics 365 Business Central Prior Release End of Servicing

Microsoft Dynamics 365 Business CentralMicrosoft transitioned many of their software applications to a Modern Lifecycle which provides support for only a limited number of releases in the expectation/requirement that users will upgrade regularly.

Now I’ve only been working with Microsoft Dynamics BC 365 Business Central for a short time, but from what I’ve seen the upgrades for the online/cloud version are released on a schedule where you can only choose to delay the upgrade for a certain length of time. All good as it means you will always be on a supported version.

The full lifecycle for on-premise Dynamics BC is here.

What brought his to mind, was a Product Lifecycle showing the end date of applications in 2023 which covers on-premise implementations of Dynamics BC.

The versions coming out of support in 2023 are:

  • Dynamics 365 Business Central on-premises (Modern Policy), 2021 release wave 2, version 19.x on 12th April.
  • Dynamics 365 Business Central on-premises (Modern Policy), 2021 release wave 2, version 19.x on 12th April.

Even though these applications are installed locally users should adhere to the support policy which requires regular upgrades. If you’re on one of the above versions, you should be looking to upgrade to 2022 release wave 2, which came out in October.

Microsoft Dynamics NAV 2013 and 2013 R2 are also out of support on 10th January 2023 which may affect some clients running older versions of the software.

Enable Email for All Microsoft Dynamics GP Workflow Steps

Microsoft Dynamics GPI did some work for a client a while ago where we created a lot of email steps in Microsoft Dynamics GP workflow after which the client decided they would be using email after all and needed email on those steps activating and a custom message assigned. Rather than going through each step manually and switching the email on, I created a small script to do the job for us.

The script was for a PM Batch Approval type so also enables the include Document Attachment option.

The highlighted section is the name of the E-Mail Message ID to assign:


UPDATE
	WF100003
SET
	EmailMessageID = 'AZRCRV PO APPROVAL'
	,Workflow_Step_Send_Email = 1
	,WFIncludeDocumentAttach = 1
WHERE
	Workflow_Step_Send_Email = 0

As always before running a script make sure you understand what it does, test it on a test system before deploying live and make sure you have a good backup before running and verify afterwards.

In Microsoft Dynamics 365 Business Central (Administration), how do I… Understand the Update Rollout Timeline

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.

Having just finished posting a series on the New Functionality In Microsoft Dynamics 365 Business Central 2022 Wave 2, I thought it might be useful to take a quick look at the rollout timeline for Dynamics BC.

There was a lot of changes in recent years to the Microsoft Dynamics GP rollout timeline in recent years, which I was working with until quite recently. I think the rollout timeline for Dynamics BC also went through some flux at the same time, but both have now settled down to a regular cadence.

There are two types of update for Dynamics BC; major and minor.

New capabilities roll out in “release waves” which consist of both major and minor updates. The series I just finished posting, was the announcement of the release wave from October to March and included both major and minor releases staged throughout that time period. While most of the new functionality comes in the major update, some will become at later times in minor updates and critical updates will be rolled out as soon as possible after they pass testing.

Major updates are released twice a year with availability typically in early April and early October; previews and sandboxes are usually available four to five weeks before this date so that you can do testing prior to rollout starting.

Rollout timeline example for 2022 release ware 1 and 2

Continue reading “In Microsoft Dynamics 365 Business Central (Administration), how do I… Understand the Update Rollout Timeline”

New Functionality In Microsoft Dynamics 365 Business Central 2022 Wave 2: Search in Company Data

Microsoft Dynamics 365 Business CentralThis post is part of the New Functionality In Microsoft Dynamics 365 Business Central 2022 Wave 2 series in which I am taking a look at the new functionality introduced in Microsoft Dynamics 365 Business Central 2022 Wave 2.

The first of the new functionality in the User Experience section is search in company data.

Office workers spend up to 20 percent of their working time searching for information. Finding specific information in a timely manner across different areas of a business management solution often requires tailored queries within different parts of it. Because the volume of data constantly increases, it becomes increasingly important to get relevant content fast.

Business Central now lets you search across all data that’s relevant for your role, and not just business transactions. The most relevant results show first, which saves valuable time and gives users the opportunity to focus on higher-value tasks.

Enabled for: users, automatically
General Availability: March 2023

You can start a search from your Role Center or by using the Ctrl+Alt+F shortcut key combination anywhere in Business Central.

Shows Search in data action on business manager role center

Continue reading “New Functionality In Microsoft Dynamics 365 Business Central 2022 Wave 2: Search in Company Data”