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.CreateAssetAccountTypeLimitations(new BFSServiceReference.CreateAssetAccountTypeLimitationRequest()
{
Credentials = credentials,
identify = bfsidentifier, //Identifier is a unique token for your instance of BFS
Entities = new[]
{
new AssetAccountTypeLimitation()
{
AccountType = new Guid("66439e17-95c7-4313-8a83-954809785ee0"),
Asset = new Guid("2e3f8205-1a10-4de5-801c-65ed267283a7")
}
}
}); |