-
Notifications
You must be signed in to change notification settings - Fork 2
GetSupplier
Leandro Rowies edited this page Sep 27, 2022
·
8 revisions
The GetSupplier
function retrieves a single Supplier given its supplier code from an entity.
public WSResult2OfSupplier GetSupplier(string token, string suppliercode)
Public Function GetSupplier(ByVal token As String, ByVal supplier As String) As WSResult2OfSupplier
Parameter | Type | Description |
---|---|---|
token | String | The session token retrieved during authentication. |
supplierCode | string | The code of the supplier to retrieve. |
Integration ws = new Integration();
String auth = ws.Login(entityID, partnerKey, userKey);
if (auth != null)
{
WSResult2OfSupplier wssupplier = ws.GetSupplier(auth, "TESTINTEGR");
Supplier supplier = wssupplier.Result;
}
Dim ws As New Integration
Dim auth As String = ws.Login(entityID, partnerKey, userKey)
If (Not Me.auth Is Nothing) Then
Dim supplier As Supplier = Me.ws.GetSupplier(Me.auth, "TESTINTEGR").Result
End If