Appearance
ActivatePartner
Declaration
function TFloActionManager.ActivatePartner(const aFID : TGuid): boolean;
Example
pascal
procedure OnMapEvent(var Value:Variant);
begin
GetDataSetFromSource(Data1, 'select x_partnerid from myreferencetable where custno=123');
Action.ActivatePartner(Data1['x_partnerid'].AsGuid) //eg {DDC40EAF-51BA-473D-941A-57D685A39815}
end;Description
Finds and activates a Trading Partner based on a specific aFID. aFID must match a value from the FID column on the FLO_TRADINGPARTNERS table.
If you have integrated your Trading Partners with an external system you should store the FID from the FLO_TRADINGPARTNERS table in the external system. This allows you to do a lookup in the external system to retrieve the FID and then pass it to this function to activate the partner.