Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

NameTypeDescription
BrickId  
FirstNamestring 
LastNamestring 
MiddleNamesstring 
UserNamestring 
Emailstring 
PersonalNumberstring 
ResellerNostring 
ResellerIdGuid 
IsApprovedbool 
AddressCitystring 
AddressStreetstring 
AddressZipstring 
BICstring 
Commentstring 
ExternalReferencestring 
PassportNumberstring 
PhoneHomestring 
PhoneWorkstring 
IsTaxPayerbool 
IsInsuranceCompanybool 
IsInsuranceProductSupplierbool 
IsApprovedForStructsbool 
IsVerifiedbool 
GenderstringValue should be Male, Female, Company
TitlestringValue should be Miss, Mr, Ms, Dr, Mrs
CountrystringAccording to ISO-standard here: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
TaxCountrystringAccording to ISO-standard here: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
CustomerNostring 

Code examples

Code Block
languagec#
themeRDark
titleC# - Get all legal entities from a BFS instance
linenumberstrue
collapsetrue
//Use the GetPersons method to get all LegalEntities in the BFS instance and write
//the BrickId's and names in the console
var client = new BFSServiceReference.bfsapiSoapClient();
var credentials = new BFSServiceReference.Credentials()
{
    UserName = bfsusername, //Username of administrative user in your instance of BFS
    Password = bfspassword, //Password of the administrative user in your instance of BFS
};
var persons = client.GetPersons(new BFSServiceReference.GetPersonRequest()
{
    Credentials = credentials,
    identify = bfsidentifier, //Identifier is a unique token for your instance of BFS
   
    Fields = new BFSServiceReference.GetPersonFields()
    {
        BrickId = true,
        UserName = true,
        FirstName = true,
        LastName = true,
    },
});
foreach (var c in persons.Result)
{
    Console.WriteLine(c.BrickId + "," + c.FirstName + "," + c.LastName);
}