Versions Compared

Key

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

...

Code Block
languagec#
themeRDark
titleC# - Get cash from a BFS instance
collapsetrue
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 request = new GetCashRequest
{
	Credentials = credentials,
    identify = bfsidentifier, //Identifier is a unique token for your instance of BFS
 
    //Select the fields you want the response to contain
	Fields = new GetCashFields
	{
    	BrickId = true,
    	Currency = true,
    	Name = true,
	    DecimalPlaces = true,
    	DefaultCustodyAccount = true,
	    InstrumentStatus = true,
    	Key = true
    },

	//Empty filter gets all cash from the system
	Args = new GetCashArgs()
};

var response = client.GetCash(request); //result from the BFS instance

 

Blog Posts
sortcreation
contenttitles
labelsgetcash

...