Procedures
Learn how to implement a procedure with the BDK.
Last updated
Was this helpful?
Learn how to implement a procedure with the BDK.
Last updated
Was this helpful?
To implement a procedure in a BDK project, define a Python function in your Book class and decorate it with the decorator.
Ensure the name of your procedure adheres to the syntax guidelines specified in the name
parameter of the decorator.
Your method should include the following sections:
A brief summary of the procedure
Input Concepts
Output Concepts
Examples are not required but are valuable for generating usage documentation.
Concepts and parameters must match to ensure they are properly mapped internally. Ensure your method definition adheres to the .
A singularized call is a way to call a procedure by phrasing it as if it returns a single item, even though it returns a list by definition. A procedure supports singularized calls in addition to standard calls if it meets all of the following conditions:
Returns a list.
The output of the procedure is the object itself.
The output noun phrase is plural.
The procedure accepts filters.
You don't need to implement additional logic for singular calls. BDK will automatically generate the singularized variation of any procedure that meets the above criteria.
Consider a procedure that retrieves users from Outlook. It can be called in two ways:
Standard Way: get some users from outlook whose whose mail is "example.com"
Singularized Way: get a user from outlook whose whose mail is "example.com"
Refer to for examples of procedure implementations.