Viewing and Troubleshooting API Messages
Learn The Five Stages of an API Message Lifecycle
Every API call is stored as an API message in Business Central, with the request, response, and related data, which is useful for testing and troubleshooting.
The Five Stages of an API Message
- Message Initialization
- The API function is selected and parameters are added
- Build Request
- The request is constructed from the function's configuration
- Send Request
- Business Central sends the request to the external system
- Receive Response
- The response comes back into Business Central
- Process Response
- A data buffer is created and mapped
Viewing Messages
-
Search for API Messages and select the related link
-
The API Message page includes:
-
General, Processing Timestamps, Related API Messages, Parameters, Request, Response (raw), and Query Request
-
-
Running a Message
- Execute runs the full lifecycle at once
- Manual Processing steps through each stage individually (very useful for testing)
Adding Parameters
-
Choose Add New Parameter, then select Table Record or Key Value
Message Data Buffers
-
The response also appears in structured form as a message data buffer
-
Open it from the Related ribbon's Message Data Buffer action
-