TPAdd()


Add a Trading Partner ID to the Session Network/Mailbox.

Public Function TPAdd(ByVal SessionID As String, _
                     
ByVal Qualifier As String, _
                      ByVal ID As String, _
                      ByVal Description As String) _
                     
As Integer

Parameters

SessionID
String - GUID
The current session's GUID in string format. This is a 32-character hexidecimal string in the format:
00000000-0000-0000-0000-000000000000. This is the value returned by the Login() function.
Qualifier
String(0,3)
The X12 or EDIFACT ID Qualifier for the ISA and UNB segments.
ID
String(1,35)
The X12 or EDIFACT ID for the ISA and UNB segments. 
Description
String(3,35)
The name associated with a Qualifier/ID pair. 

Returns

ECGridID
Integer
The ECGridID is a unique identifier on the ECGrid Network specifying a handle to a specific Qualifier/ID pair on a specific Network/Mailbox.

Remarks

The system will check for duplicates in the same Network/Mailbox and if the Qualifier/ID pair (QID) exists in a different Network/Mailbox, throwing an appropriate Soap Exception if found. Use TPMove() or TPMoveEx() to move a QID from one Network/Mailbox to another.

Use TPAddVAN() and TPAddEx() to add QIDs to other Network/Mailboxes.

Example

Visual Basic
[insert code sample]

EventID: 3001

See Also

TPAddEx()
TPAddVAN()
TPMove()
TPMoveEx()
ECGridID
Networks & Mailboxes
Session Network/Mailbox


© 2008-2011, Loren Data Corp.
All rights reserved.
ECGrid is a registered service mark of Loren Data Corp.
ECGridOS is a service mark of Loren Data Corp.