Versions Compared

Key

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

...

Code Block
languagec#
themeRDark
titleC# - Get all FeeGroups from a BFS instance
linenumberstrue
collapsetrue
//Use the GetFeeGroups method
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 ordersfeeGroups = client.GetFeeGroups(new BFSServiceReference.GetFeeGroupRequest()
{
	Credentials = credentials,

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

	Args = new GetFeeGroupArgs(){},

	Fields = new BFSServiceReference.GetFeeGroupFields()
	{
		BrickId = true,
		Key = true
	},

});

foreach (var c in ordersfeeGroups.Result)
{
	Console.WriteLine(c.BrickId + ";" + c.Key );

}

...