Versions Compared

Key

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

Filter inputs

NameTypeDescriptionMandatoryAvailable from version
BrickIdsGuid[] Filter by array of BrickIds. false  2.12
Descriptionsstring[] Filter by array of Descriptions false  2.12
ExecutionInterfaceSettingKeysstring[] Filter by array of ExecutionInterfaceSettingKeys false  2.12
 AccountsGuid[] Filter by array of Accounts false  2.12
 BusinessEventNosstring[] Filter by array of BusinessEventNos false  2.12
Comments[]string[]Filter by array of Commentsfalse 2.12

Response rows (Array) inherits from EntityBase

...

Code Block
languagec#
themeRDark
titleC# - Get all business events with specified descriptions from a BFS instance
linenumberstrue
collapsetrue
 public static void GetBusinessEvents()
        {
            var binding = new BasicHttpsBinding();
            binding.MaxReceivedMessageSize = Int32.MaxValue;

            var target = new bfsapi.bfsapiSoapClient(binding, new EndpointAddress("https://bfs1.bricknode.com/customerweb/api/bfsapi.asmx"));
            var req = new GetBusinessEventRequest();
            req.Credentials = new bfsapi.Credentials
            {
                UserName = "username",
                Password = "password"
            };

            req.identify = "identifystring";

            req.Args = new GetBusinessEventArgs
            {
                Description = new[] { "ManualOrder Sell" , "ManualOrder Buy" }

            };
            req.Fields=new GetBusinessEventFields
            {
                BrickId = true,
                Description = true,
                Account = true,
                Cash = true,
                Instrument=true
            };

            var resp = target.GetBusinessEvents(req);
            
        }

...