As mentioned in the last post I’ve had a couple of scripts recently which I needed to create in order to facilitate clients easily making live to test copies without issues arising.
The script, below, can be used to set the EFT file locations in Checkbook Master. For the client I was working with, we only needed to set the file location of the Domestic Payments File Location field, but I am including all of the file location fields in the script.
Simply change the highlighted path locations to the required paths and set the Checkbook ID at the bottom:
/*
Created by Ian Grieve of azurecurve|Ramblings of a Dynamics GP Consultant (https://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).
*/
UPDATE
CM00101
SET
DomPmtsFile = '{path}'
,ForeignPmtsFile = '{path}'
,DomDirDbtCollectFile = '{path}'
,DomDirDbtRefundFile = '{path}'
,EFTPMPrenoteFile = '{path}'
,EFTRMPrenoteFile = '{path}'
,EFTCommunicationFile = '{path}'
WHERE
CHEKBKID = '{chequebook id}'
As always with scripts, please make sure you have a good backup before using the script.
What should we write about next?
If there is a topic which fits the typical ones of this site, which you would like to see me write about, please use the form, below, to submit your idea.
1 thought on “SQL Script to Set EFT Output Locations When Copying Live To Test”