In Touch with Dynamics GP

This blog is intended to be a useful resource for Microsoft Dynamics GP users and professionals in the UK and the wider Microsoft Dynamics GP community as a whole.

Thursday, 13 May 2010

Dynamics GP 2010 web services and Business Portal 5 installation

Hi folks




I have spent the morning configuring sharepoint services, Dynamics GP 2010 web services etc. to install Business Portal 5.

One of the pre requisites is that Dynamics GP 2010 web services are installed before business portal 5. Having followed the wizard I was convinced that the Dynamics GP 2010 web services were installed , however the business portal 5 installation wizard could not see them.

The Business Portal 5 installation wizard suggests the URL for the Dynamics GP 2010 web services should be :

http://computername/DynamicsGPWebServices



However this was not working.



The install documentation suggests the URL for Dynamics GP 2010 Web services should include the TCP/IP port (the default for Dynamics GP 2010 Web Services being 48620) as well as the web services being called DynamicsGPService.



http://computername:48620/DynamicsGPService



This does not work either.



However if you combine the two using the port number from the Install guide and the naming convention from the wizard you get:



http://computername:48620/DynamicsGPWebServices



This does work and you can continue with your Business portal 5 installation for dynamics GP 2010.



Tuesday, 11 May 2010

Searching on the New Microsoft Dynamics GP Forums

Hi Folks

The old Dynamics community newsgroups are now being phased out and replaced with the new forums. For the full details on this please see David Musgrave's blog on the below link.

http://blogs.msdn.com/developingfordynamicsgp/archive/2010/05/11/microsoft-responds-to-the-evolution-of-communities.aspx

We have been using the new Microsoft Dynamics GP forums for a while now and have had a good experience with them so far however we have discovered that there is a slight issue with the search. The only way to get meaningful results from your search is to enclose your criteria in double quotes.

For example Management Reporter will not return anything however "Management Reporter" will.

So enclose any query in double quotes and it will save you a lot of frustration.

I have copied in the links to the Microsoft Dynamics GP forums below from David Musgrave's article.

So the time has come to stop using the old newsgroups and shift to using the public community forum or the partner forum, see links below:


Microsoft Dynamics GP Community Forum

Microsoft Dynamics GP Partner Forum

Wednesday, 28 April 2010

Increase efficiency over 90% with Dynamics GP 2010

Several Touchstone clients were part of the Dynamics GP 2010 TAPs program. Central YMCA (a Touchstone Client) have completed a case study for Microsoft with their experiences of 2010.


In the case study central YMCA have seen a 90% increase in efficiency using Dynamics GP 2010.

You can down load the case study from:

http://www.microsoft.com/casestudies/Case_Study_Detail.aspx?casestudyid=4000006953

Paul Smith from Central YMCA will be presenting at our Dynamics GP 2010 UK launch event at the London Chamber of Commerce on the 19th of May. There will also be presentations from Errol Schoenfish, Director Product Management, Microsoft Dynamics GP.

If your interested in Dynamics GP 2010 come along (you don’t have to be a Touchstone client). You can sign up below. Its a lot easier to get to than Thames Valley Park in Reading (Microsoft Campus), you could say its a more efficient use of your time and you will be able to see what efficiencies you could gain through dynamics GP 2010

www.touchstone.co.uk/gp2010launch





Monday, 19 April 2010

Dynamics GP 2010 has now been released

Dynamics GP 2010 has now been officially released by Microsoft. To find out more about this latest feature rich version of Dynamics GP come along to our Dynamics GP 2010 launch event on the 19th of May at the London Chamber of commerce.


www.touchstone.co.uk/gp2010launch


Friday, 16 April 2010

Returning Ole Notes File names in Dynamics GP

Hi folks


Here is another tip from our tame Dex developer Jon, which I have written up as an article for us mere mortals. The below article should help you if you need to bring back an image from the OLE notes folder in Dynamics GP.

To start with you need to know how OLE notes get their file names. Well the file name is the hexadecimal version of the note index held in the Dynamics GP notes master table (SY03900).

Therefore to reference the file you are going to need to convert decimals to hexidecimals. The below function will allow you to do this.

udfConvertBase10NumberToAnyBase function:

CREATE FUNCTION udfConvertBase10NumberToAnyBase

( @iNumber INT,

@iNewBase INT,

@bitUppercaseOnly BIT = 0,

@bitNoNumbers BIT = 0) --1 to use only alphas

RETURNS VARCHAR(120)

AS

BEGIN

DECLARE @vUppers VARCHAR(26)

DECLARE @vLowers VARCHAR(26)

DECLARE @vNumbers VARCHAR(10)



SELECT @vUppers = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'

SELECT @vLowers = 'abcdefghijklmnopqrstuvwxyz'

SELECT @vNumbers= '0123456789'



DECLARE @vCharactersInBase VARCHAR(62) --Max possible of 10 digits, 26 upper, 26 lower

SELECT @vCharactersInBase = @vUppers --all options allow this



IF @bitNoNumbers = 0

BEGIN

SELECT @vCharactersInBase = @vNumbers + @vCharactersInBase

END



IF @bitUppercaseOnly = 0

BEGIN

SELECT @vCharactersInBase = @vCharactersInBase + @vLowers

END



--If caller requests a "base" size > number of characters in conversion-characters-set, return error

IF LEN(@vCharactersInBase) < @iNewBase

BEGIN

RETURN 'udfConvertBase10NumberToAnyBase - ERROR: Requested Base-size greater than available characters in @vCharactersInBase'

END



DECLARE @vNewNumber VARCHAR(120)

SELECT @vNewNumber = ''





-- Algorithm for generating equivalant number in the new "base":

-- 1) The orignial (base-10) number is continually divided by the new base until the product

-- of the old number divided by the base is zero (meaning the number is finally smaller than the new base).

-- 2) On each cycle (loop iteration), the remainder is added to the number, which is each digit of the new base.

WHILE @iNumber <> 0

BEGIN

SELECT @vNewNumber = SUBSTRING(@vCharactersInBase, (@iNumber % @iNewBase) + 1, 1) + @vNewNumber

SELECT @iNumber = @iNumber / @iNewBase

END --While



RETURN @vNewNumber



END –Procedure



So now we have a function that can convert the decimal to hexidecimal to obtain the file name.

To be able to use this we then need to include this function in a script

See Below:



Select noteindx, right(‘00000000’ + dbo.udfConvertBase10NumberToAnyBase(noteindx, 16, 0,0), 8) as filename from SY03900

You can now bring back the OLE note file.



Tuesday, 13 April 2010

How to Use Microsoft Word mail merge to create a Dynamics GP import macro

Hi folks as promised in the previous article, here are the steps to use Microsoft's Word mail merge to create an import macro for Dynamics GP. The below will work for any repetative task in Dynamics GP.

Before starting this you will need an excel spread sheet with the values you wish to update. See below example of content.


Segmentid Number description

Segment1 100 Administrator

Segment2 100 Manager

Segment3 100 Tickets

Segment4 100 revenue



Open the window you wish to update. In this case Tools setup financial segment

Then go to Tools Macro Record

Give the macro a name e.g. Segment.

Save macro (the macro is now recording and all your key strokes will be recorded).

Enter one set of data you wish to update e.g. Segment ID , number and description.

Then select save.

Then go to Tools  macro  stop record

Go to where you saved the macro (.mac file) and right click and open Macro with word. You should have text similar to below example.

# DEXVERSION=10.0.193.0 2 2

ActivateWindow dictionary 'default' form 'GL_Segment_Maintenance' window 'GL_Segment_Maintenance'

MoveTo field 'Segment ID'

TypeTo field 'Segment ID' , '100'

MoveTo field Description

TypeTo field ' Description ' , 'Administration'

MoveTo field 'Save Button'

ClickHit field 'Save Button'

ActivateWindow dictionary 'default' form sheLL window sheLL



Now in the word document goto mailings and start the mail merge wizard.



Select directory as document type and got to next starting document



Select current document as starting document and go to next select recipients.



Use an existing list and the browse option to browse out to your spread sheet with the values you wish to update.



Do not go to the next stage of the wizard.



Highlight the value between the ‘’ on the type to line of the script. In the above example this would be the value 100, make sure you highlight just the value and not the’’ either side.



Now go to the insert merge field option from the tool bar, it should give you the column headers from your spread sheet (in this case we want number).



The field should now look like this '«Number»'

In the script.



Now repeat the process with the other type to fields in the script you wish to update e.g. description



TypeTo field Description , '«description»’



Now go next , next next in the wizard and save to a new document. You should end up with a script similar to below.



# DEXVERSION=10.0.193.0 2 2

ActivateWindow dictionary 'default' form 'GL_Segment_Maintenance' window 'GL_Segment_Maintenance'

MoveTo field 'Segment ID'

TypeTo field 'Segment ID' , '100'

MoveTo field Description

TypeTo field Description , 'Administrator’

MoveTo field 'Save Button'

ClickHit field 'Save Button'

ActivateWindow dictionary 'default' form sheLL window sheLL # DEXVERSION=10.0.193.0 2 2

ActivateWindow dictionary 'default' form 'GL_Segment_Maintenance' window 'GL_Segment_Maintenance'

MoveTo field 'Segment ID'

TypeTo field 'Segment ID' , '100'

MoveTo field Description

TypeTo field Description , 'Manager’

MoveTo field 'Save Button'

ClickHit field 'Save Button'

ActivateWindow dictionary 'default' form sheLL window sheLL # DEXVERSION=10.0.193.0 2 2

ActivateWindow dictionary 'default' form 'GL_Segment_Maintenance' window 'GL_Segment_Maintenance'

MoveTo field 'Segment ID'

TypeTo field 'Segment ID' , '100'

MoveTo field Description

TypeTo field Description , 'Tickets’

MoveTo field 'Save Button'

ClickHit field 'Save Button'

ActivateWindow dictionary 'default' form sheLL window sheLL # DEXVERSION=10.0.193.0 2 2

ActivateWindow dictionary 'default' form 'GL_Segment_Maintenance' window 'GL_Segment_Maintenance'

MoveTo field 'Segment ID'

TypeTo field 'Segment ID' , '100'

MoveTo field Description

TypeTo field Description , 'revenue’

MoveTo field 'Save Button'

ClickHit field 'Save Button'

ActivateWindow dictionary 'default' form sheLL window sheLL



Before this script will work we need to remove the repeated line DEXVERSION=10.0.193.0 2 2

This should only appear once at the start of the script so the script now looks like the below.



# DEXVERSION=10.0.193.0 2 2

ActivateWindow dictionary 'default' form 'GL_Segment_Maintenance' window 'GL_Segment_Maintenance'

MoveTo field 'Segment ID'

TypeTo field 'Segment ID' , '100'

MoveTo field Description

TypeTo field Description , 'Administrator’

MoveTo field 'Save Button'

ClickHit field 'Save Button'

ActivateWindow dictionary 'default' form sheLL window sheLL #

ActivateWindow dictionary 'default' form 'GL_Segment_Maintenance' window 'GL_Segment_Maintenance'

MoveTo field 'Segment ID'

TypeTo field 'Segment ID' , '100'

MoveTo field Description

TypeTo field Description , 'Manager’

MoveTo field 'Save Button'

ClickHit field 'Save Button'

ActivateWindow dictionary 'default' form sheLL window sheLL #

ActivateWindow dictionary 'default' form 'GL_Segment_Maintenance' window 'GL_Segment_Maintenance'

MoveTo field 'Segment ID'

TypeTo field 'Segment ID' , '100'

MoveTo field Description

TypeTo field Description , 'Tickets’

MoveTo field 'Save Button'

ClickHit field 'Save Button'

ActivateWindow dictionary 'default' form sheLL window sheLL #

ActivateWindow dictionary 'default' form 'GL_Segment_Maintenance' window 'GL_Segment_Maintenance'

MoveTo field 'Segment ID'

TypeTo field 'Segment ID' , '100'

MoveTo field Description

TypeTo field Description , 'revenue’

MoveTo field 'Save Button'

ClickHit field 'Save Button'

ActivateWindow dictionary 'default' form sheLL window sheLL



Now save this document as a .mac file



Go into dynamics, Open the window you wish to update. In this case Tools setup financial segment



Then go to Tools Macro Play and select the .mac file you just created.

The macro should now run and update the data for you

Monday, 12 April 2010

Hurry hurry hurry Dynamics GP 2010 UK launch event filling up fast.

Just a quick reminder our Dynamics GP 2010 UK launch event is on the 19th May at the London chamber of commerce. There has been a huge amount of interest in this event so sign up below and find out what Dynamics GP 2010 is all about.


Follow the below link to find out more

www.touchstone.co.uk/gp2010launch