Using Panatrack Flex Fields within eConnect
When PanatrackerGP submits eConnect transactions, we pass along our flex fields in the event they can be used to update custom data within your GP system. This stored procedure provides a function that can be used to easily pull out a named flex field for use in your procedures.
- /* This is a helper function to assist in intercepting eConnect messages triggered from the Panatracker system.
- * For some transactions, Panatracker loads an additional field in the eConnect message with structured data that
- * can be used to retrieve information that is collected by Panatracker, but not necessarily used by Dynamics.
- * This function would typically be called from a eConnect pre or post trigger to retrieve the special data.
- *
- * EXAMPLE USAGE: Panatrack_ParseData(@I_vUSRDEFND5, 'ReferenceField1') --Will retrieve the data associated with the "ReferenceField1" field.
- */
-
- IF EXISTS (SELECT * FROM sysobjects WHERE type = 'FN' AND name = 'Panatrack_ParseData')
- BEGIN
- DROP FUNCTION Panatrack_ParseData
- END
- GO
-
- CREATE FUNCTION Panatrack_ParseData
- (
- @Input VARCHAR(8000),
- @TagName VARCHAR(30)
- )
- RETURNS VARCHAR(8000)
- AS BEGIN
-
- DECLARE @dataStartPos INT
- DECLARE @dataEndPos INT
- DECLARE @dataLength INT
- DECLARE @result VARCHAR(1000)
- DECLARE @startTag VARCHAR(30)
- DECLARE @endTag VARCHAR(30)
-
- SET @startTag = '[' + @TagName + ']'
- SET @endTag = '[/' + @TagName + ']'
- SET @dataStartPos = CHARINDEX(@startTag, @Input)
- SET @dataLength = CHARINDEX(@endTag, @Input) - (@dataStartPos + LEN(@startTag))
- IF @dataStartPos = 0
- SET @result = ''
- ELSE
- BEGIN
- SET @result = SUBSTRING(@Input, (@dataStartPos + LEN(@startTag)), @dataLength)
- END
-
- RETURN @result
- END
- GO
-
- GRANT EXECUTE ON Panatrack_ParseData TO DYNGRP
- GO
Related Articles
Flex Fields
Flex Fields are additional fields available to capture extra data during transactions. Most PanatrackerGP transactions support Flex Fields, and some transactions also include unit-level flex fields. Configuring Flex Fields Access Flex Field ...
eConnect Errors that may be encountered when using PanatrackerGP
"Error 1189: taSopHdrRecalc - Payment total does not match deposits+payments" Error: Payment total does not match deposits+payments entered for the document This error usually occurs when the taSopHdrIvcInsertPre stored procedure has been modified. ...
Implementing Panatrack - Overview
This guide outlines the PanatrackerGP implementation process from planning through go-live. Planning Successful implementation starts with thorough planning: Project Setup — Panatrack creates a project and assigns a project lead, importing standard ...
Panatrack Support Policy
Support Hours Panatrack offers phone and email support during regular business hours: Days — Monday through Friday Hours — 8:00 AM to 5:00 PM Central Time Holidays — Closed on United States holidays After-Hours — Planned installations, upgrades, or ...
Adding Fixed Assets Using PanatrackerGP
PanatrackerGP extends Dynamics GP's Fixed Asset Module by adding barcode data capture for tracking physical assets. This allows seamless integration for managing asset information without messy import and export steps. How it Works: Point & Scan You ...