#gpugsummit | #inreno15 #gpugsummit using gp power tools to write custom web services for microsoft...

Download #GPUGSummit | #INreno15 #GPUGSummit USING GP POWER TOOLS TO WRITE CUSTOM WEB SERVICES FOR MICROSOFT DYNAMICS GP David Musgrave MVP Managing Director, Winthrop

If you can't read please download the document

Upload: amanda-hill

Post on 18-Jan-2018

222 views

Category:

Documents


0 download

DESCRIPTION

#GPUGSummit | #INreno15  Managing Director of Winthrop Development Consultants  Microsoft Dynamics GP Most Valuable Professional (MVP)  Worked with Microsoft for 13 and a half years  Lives in Winthrop, a suburb in the city of Perth  Where is Perth, Western Australia? 3 DAVID MUSGRAVE

TRANSCRIPT

#GPUGSummit | #INreno15 #GPUGSummit USING GP POWER TOOLS TO WRITE CUSTOM WEB SERVICES FOR MICROSOFT DYNAMICS GP David Musgrave MVP Managing Director, Winthrop Development Consultants Mariano Gomez MVP Senior Software Engineer, Mekorma #GPUGSummit | #INreno15 Introductions History of GP Power Tools Service Based Architecture GP Power Tools and its Services implementation Demonstration Q & A 2 AGENDA #GPUGSummit | #INreno15 Managing Director of Winthrop Development Consultants Microsoft Dynamics GP Most Valuable Professional (MVP) Worked with Microsoft for 13 and a half years Lives in Winthrop, a suburb in the city of Perth Where is Perth, Western Australia? 3 DAVID MUSGRAVE #GPUGSummit | #INreno15 Senior Software Engineer at Mekorma Microsoft Dynamics GP Most Valuable Professional (MVP) Lives in Atlanta, Georgia, USA Born on a small Colombian island off the coast of Nicaragua Where is San Andres Island? 6 MARIANO GOMEZ #GPUGSummit | #INreno15 Introductions History of GP Power Tools Service Based Architecture GP Power Tools and its Services implementation Demonstration Q & A 9 AGENDA #GPUGSummit | #INreno15 Support Debugging Tool (SDT) initially created in August 2006 Publically released in September 2008 Last release was Build 19 in September 2014 (Day before losing job) Discontinued when David Musgrave left Microsoft in October 2014 Negotiations with Microsoft for exclusive rights finalized in March 2015 Renamed to Winthrop Development Consultants GP Power Tools (GPPT) Release Build 20 for GP 2010, GP 2013 and GP 2015 in August 2015 Distributed and Supported worldwide by Mekorma 10 HISTORY #GPUGSummit | #INreno15 Introduced with Microsoft Dynamics GP 2015 (Version 14.0) Service Enabled Procedures and.Net Interop Service Enabled Procedures Dexterity Global Procedures with Metadata to expose them externally as REST (Representational State Transfer) based web services Allows external code to directly call Dexterity based business logic .Net Interop Enables Dexterity sanScript code to re-use.Net objects with their methods and properties Allows Dexterity code to directly call and use.Net objects 11 SERVICE BASED ARCHITECTURE #GPUGSummit | #INreno15 GP Power Tools has five Service Enabled Procedures ServiceCreateCustomCreatePOSTin ServiceDeleteCustomDeleteDELETEin ServiceGetCustomGetGETin & out ServiceUpdateCustomUpdatePATCHin ServicePostCustomCustom*POSTin & out * Must include Custom action definition: GP-Custom-Action=Post 12 GP POWER TOOLS SERVICES #GPUGSummit | #INreno15 One parameter is passed with URI When calling the web service, there is a string parameter for Script ID The additional parameters as Payload The input parameter is a collection of strings: List The output parameter (for Get and Post) is also: List The Status returned is a Short The data contained on each line of the collection must be defined For Example: Line 1 = Customer Number Line 2 = Customer Name 13 GP POWER TOOLS PARAMETERS #GPUGSummit | #INreno15 The Script ID passed into the service specifies a Runtime Execute Script ID to be run when the service is called. The Runtime Execute window populates with a template script when the Custom Script Purpose for one of the Services is selected The.Net collection of Strings: List are converted to Text fields To make the script work with Runtime Execute, the payload in and out are converted to Text fields where each String in the collection is a line in the Text Field. The template script handles the parsing of the Text field. 14 GP POWER TOOLS SERVICE IMPLEMENTATION #GPUGSummit | #INreno15 While the template scripts for the five services provide example code, the actual functionality can be completely user defined. The Runtime Execute scripts can perform any action possible within the system The scripts can use Helper Functions to run other scripts You can run scripts created with Runtime Execute (Dexterity), SQL Execute (Transact-SQL) or.Net Execute (C# or Visual Basic.Net) The scripts can use the Helper Functions to pass parameters The Helper Functions can be used to pass values or scripts can be modified after they are loaded and before they are executed 15 GP POWER TOOLS SERVICE SCRIPTS #GPUGSummit | #INreno15 Going to use Services to create, update, get and delete a customer Tweet using #GPPT #MSDYNGP #GPUGSummit 16 GP POWER TOOLS DEMONSTRATION #GPUGSummit | #INreno15 DEMONSTRATION #GPUGSummit | #INreno15 GP Power Tools PortalGP Power Tools Product Pages 19 GP POWER TOOLS LINKS #GPUGSummit | #INreno15 David Musgraves Winthrop Development Consultants BlogThe Microsoft Dynamics GP Blogster blog (by Mariano Gomez)Developing for Microsoft Dynamics GP Blog retired (by David Musgrave & the Developer Support Team)or20 LINKS #GPUGSummit | #INreno15 QUESTIONS? Contact: & #GPUGSummit | #INreno15 Main Topic 1: Size 22pt Subtopic: Size 20 pt Main Topic 2: Size 22pt Subtopic: Size 20 pt Main Topic 3: Size 22pt Subtopic: Size 20 pt 23 HEADER TEXT: SIZE 30PT SECTION TITLE QUESTIONS? Contact: