Versions Compared

Key

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

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

Filter Inputs

...

NameTypeDescription
BrickIdGuid[]Filter by AllocationOrderId
AccountGuid?Filter by AccountId
ReBalanceInstanceGuid?Filter by ReBalanceInstanceId
CreatedDate
CreatedDateFromDateTime?
Filter by CreatedDate
When used, both from date and to date should be provided in the request
CreatedDateToDateTime?
AllocationItemsAllocationItems[]Filter by AllocationItems
ReservationItemsReservationItems[]Filter by ReservationItems
OrderNostringFilter by order number
CreatedByIdGuid?Filter by created user

Response rows (Array) inherits from EntityBase

NameTypeDescription
BrickIdGuidId of the allocation order
AccountGuid?Id of the account to which the order belongs
ReBalanceInstanceGuid?

Id of the pre trade report from an allocation profile (for those allocation orders that belongs to a pre trade report)

CreatedDateDateTimeDate when allocation order was created
AllocationItemsAllocationItems[]List of AllocationItem
ReservationItemsReservationItems[]List of ReservationItem
OrderNostringOrder number of the order
CreatedByIdGuid?Id of user that created the order

Code example

Code Block
languagec#
themeRDark
titleC# - Get Allocation Orders from a BFS instance
linenumberstrue
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 GetAllocationOrderRequest
{
    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 GetAllocationOrderFields
    {
        Account = true,
		AllocationItems = true,
        BrickId = true,
        CreatedById = true,
        CreatedDate = true,
        OrderNo = true,
        ReBalanceInstance = true,
        ReservationItems = true
    },
 
    //Empty filter gets all allocation orders from the system    
    Args = new GetAllocationOrderArgs()
};
 
 
var response = client.GetAllocationOrders(request); //result from the BFS instance 

...