Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Next »

Inputs (Array[]) inherits from EntityBase

NameTypeDescriptionMandatoryAvailable from version
Keystring

The type keys of the POA to be created

Full, Trade, View or Inactive

True2.02.20160603
AccountIDGuidThe BrickId of the Account for which the POA should be createdTrue2.02.20160603
POACustomerNostringThe customer number of who should receive the POATrue2.02.20160603
CustomFieldsobject[]CustomFields is an array of CustomField objects. Each CustomField consists of two strings, FieldName and Value. There are no datatypes associated with these properties, they are just a way for api-users to add custimized data to the object.False2.20
CommentstringA comment to add some information.False2.24

Response rows

NameTypeDescriptionAvailable from version
BrickIdGuidThe BrickId (unique id) of the created POA

Code examples

C# - CreatePOA
//Create Power of Attorney
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 response = client.CreatePOAs(new BFSServiceReference.CreatePOARequest()
{
    Credentials = credentials,

    identify = bfsidentifier, //Identifier is a unique token for your instance of BFS    

    Entities = new[]
    {
        new POA()
        {
            AccountId = new Guid("987a7c34-bbfd-4a78-bfc7-fe9b7d738e86"),
            Key = "View",
            POACustomerNo = "10000180"             
        },
    }

});

foreach (var c in response.Entities)
{
    Console.WriteLine(c.BrickId + ", " + c.POACustomerNo);
}


Blog stream

Create a blog post to share news and announcements with your team and company.

  • No labels