Skip to content

Flow documentation · legacy product

Partner.PartnerType ​

Declaration ​

property PartnerType: See TFloPartnerType;

Example ​

pascal
procedure OnMapEvent(var Value:Variant);
begin
if Partner.PartnerType = fptCustomer then
Value := Partner.CustomerId
else
Value := Partner.SupplierId;
end;

Description ​

Returns the Partner Type of the active partner within your system. Depending on the result of partner type either CustomerId and TPSupplierId, or SupplierId and TPCustomerId will be available.

If PartnerType is fptCustomer then you can reference Partner.CustomerId and Partner.TPSupplierId.

if PartnerType is ftpSupplier then you can reference Partner.SupplierId and Partner.TPCustomerId.

If you reference the wrong fields they will return blank.