### Example Usage of ApplyStationeryToDocument
Source: https://github.com/365businessdev/documentation/blob/master/365businesspdf/pdfapi/ApplyStationeryToDocument.md
This example demonstrates how to call the ApplyStationeryToDocument method. It retrieves setup information, transfers stationery content to a 'Temp Blob' codeunit, and then applies it to the document.
```javascript
procedure ApplyStationeryToDocument(var document: Codeunit "Temp Blob")
var
setupTable: Record "Your Setup Table";
stationery: Codeunit "Temp Blob";
pdfApi: Codeunit "bdev.PDF API";
begin
setupTable.Get();
// transfer blob content to temp blob
stationery.FromRecord(setupTable, setupTable.FieldNo("Stationery Document"));
pdfApi.ApplyStationeryToDocument(document, stationery);
end;
```
--------------------------------
### Calling SignDocument Method
Source: https://github.com/365businessdev/documentation/blob/master/365businesspdf/pdfapi/SignDocument.md
Example procedure demonstrating how to call the SignDocument method. It retrieves certificate and PIN from a setup table and then invokes the signing process.
```javascript
procedure SignDocument(var document: Codeunit "Temp Blob")
var
setupTable: Record "Your Setup Table";
certificate: Codeunit "Temp Blob";
pdfApi: Codeunit "bdev.PDF API";
certificatePin: Text;
begin
setupTable.Get();
// transfer blob content to temp blob
certificate.FromRecord(setupTable, setupTable.FieldNo("Certificate File"));
// get certificate pin
certificatePin := setupTable."Certificate PIN";
pdfApi.SignDocument(document, certificate, certificatePin);
end;
```
--------------------------------
### Example Usage of ConcatenateDocument
Source: https://github.com/365businessdev/documentation/blob/master/365businesspdf/pdfapi/ConcatenateDocument.md
Demonstrates how to call the ConcatenateDocument method by retrieving setup data and transferring its content to a 'Temp Blob' for concatenation.
```javascript
procedure ConcatenateDocument(var document: Codeunit "Temp Blob")
var
setupTable: Record "Your Setup Table";
document2: Codeunit "Temp Blob";
pdfApi: Codeunit "bdev.PDF API";
begin
setupTable.Get();
// transfer blob content to temp blob
document2.FromRecord(setupTable, setupTable.FieldNo("Concatenate Document"));
pdfApi.ConcatenateDocument(document, document2);
end;
```
--------------------------------
### Get Method Syntax
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/apiexception/Get2.md
This snippet shows the basic syntax for calling the Get method, which takes an exception dictionary as input.
```javascript
Get(var ex: Dictionary of [Text, Text])
```
--------------------------------
### Get Method Syntax
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/apiexception/Get1.md
This snippet shows the basic syntax for calling the Get method to retrieve an exception property's value.
```javascript
Get(keyName: Text)
```
--------------------------------
### Encode Item Number to QR Code
Source: https://github.com/365businessdev/documentation/blob/master/365businessbarcode/barcodeapi/Encode1.md
This example demonstrates how to use the Encode method to convert an item number into a QR code format. It then stores the resulting barcode data into a specified field of the Item record.
```javascript
procedure EncodeItemNo(var item: Record Item)
var
barcodeApi: Codeunit "bdev.Barcode API";
blobHelper: Codeunit "Temp Blob";
recRef: RecordRef;
format: Enum "bdev.Barcode Format";
begin
// encode item no. in qr-code format
barcodeApi.Encode(blobHelper, item."No.", format::QR_CODE);
if (not blobHelper.HasValue()) then
Error(''); // put your error handling in here
recRef.GetTable(item);
blobHelper.ToRecordRef(recRef, item.FieldNo(Barcode)); // transfer barcode into field
recRef.Modify(true);
recRef.SetTable(item);
end;
```
--------------------------------
### Get Method
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/apiexception/Get2.md
Returns the value for a requested key name from an exception dictionary, if present. This method is part of the API Exception handling mechanism.
```APIDOC
## Get Method
### Description
Returns the value for a requested key name from an exception dictionary, if present.
### Syntax
```javascript
Get(var ex: Dictionary of [Text, Text])
```
### Parameters
#### ex
Type: Dictionary of [Text]
Description: Exception dictionary object assigned with a previous Exception. This is a VAR parameter.
### Return Value
None
```
--------------------------------
### CallApi(Text)
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/README.md
Sends a GET request to the API service.
```APIDOC
## CallApi(Text)
### Description
Sends a GET request to the API service.
### Method
GET
### Endpoint
[Endpoint not specified in source]
### Parameters
#### Path Parameters
- **Text** (Text) - Description not specified in source
#### Query Parameters
[No query parameters specified in source]
#### Request Body
[No request body specified in source]
### Request Example
[No request example specified in source]
### Response
#### Success Response (200)
[No success response details specified in source]
#### Response Example
[No response example specified in source]
```
--------------------------------
### SetHideAddressSelection JavaScript Example
Source: https://github.com/365businessdev/documentation/blob/master/365businessaddressvalidation/addressvalidationapi/SetHideAddressSelection.md
Sets the HideAddressSelection property to true to hide the address selection UI when multiple addresses are returned. This method takes a boolean value.
```javascript
SetHideAddressSelection(value: Boolean)
```
--------------------------------
### Get Build API Version
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/365businessapi/GetBuildApiVersion1.md
Call this method to retrieve the build version number of the 365 business API. The return value is an integer.
```javascript
[Integer := ] GetBuildApiVersion()
```
--------------------------------
### CallApi(serviceName: Text)
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/365businessapi/CallApi1.md
Sends a GET request to the specified API service. This method does not support a request body.
```APIDOC
## CallApi(serviceName: Text)
### Description
Sends a GET request to the API.
### Method
GET
### Endpoint
This method does not define a specific HTTP endpoint, but rather a programmatic interface to call an API service.
### Parameters
#### Path Parameters
None
#### Query Parameters
None
#### Request Body
None
### Request Example
```javascript
CallApi("Version");
```
### Response
#### Success Response (200)
This method does not specify a return value, but implies a successful API call.
#### Response Example
None specified.
```
--------------------------------
### Get Minor API Version
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/365businessapi/GetMinorApiVersion1.md
Call this method to retrieve the minor version number of the 365 business API metadata. It returns an integer.
```javascript
GetMinorApiVersion()
```
--------------------------------
### Set Method Syntax
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/apiexception/Set.md
This snippet shows the basic syntax for the Set method, which takes a key name and a value as text parameters.
```javascript
Set(keyName: Text; value: Text)
```
--------------------------------
### GetBuildApiVersion Method Syntax
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/365businessapi/GetBuildApiVersion2.md
This is the syntax for calling the GetBuildApiVersion method. It requires the service name as a parameter and returns an integer representing the build version.
```javascript
[Integer := ] GetBuildApiVersion(serviceName: Code[50])
```
--------------------------------
### Get Exception Timestamp
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/apiexception/TimeStamp1.md
Retrieves the timestamp of an exception response. This method returns the timestamp as a string.
```javascript
TimeStamp()
```
--------------------------------
### CallApi Method Syntax
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/365businessapi/CallApi1.md
This snippet shows the basic syntax for the CallApi method. It takes a single text parameter for the service name.
```javascript
CallApi(serviceName: Text)
```
--------------------------------
### GetMajorApiVersion Method Syntax
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/365businessapi/GetMajorApiVersion2.md
This snippet shows the syntax for calling the GetMajorApiVersion method. It requires the service name as a parameter and returns an integer.
```javascript
[Integer := ] GetMajorApiVersion(serviceName: Code[50])
```
--------------------------------
### Status Method Syntax
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/apiexception/Status1.md
This snippet shows the basic syntax for calling the Status method. It returns the exception response status as a string.
```javascript
Status()
```
--------------------------------
### ApplyStationeryToDocument Method Signature
Source: https://github.com/365businessdev/documentation/blob/master/365businesspdf/pdfapi/ApplyStationeryToDocument.md
This is the syntax for the ApplyStationeryToDocument method, indicating it takes two Codeunit 'Temp Blob' parameters.
```javascript
ApplyStationeryToDocument(var document: Codeunit "Temp Blob"; stationery: Codeunit "Temp Blob")
```
--------------------------------
### Exception Constructor
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/apiexception/Exception1.md
Initializes a new instance of the Exception class by extracting information from an HttpResponseMessage object.
```APIDOC
## Exception Constructor
### Description
Initializes a new instance of the Exception class by extracting information from an HttpResponseMessage object.
### Syntax
```javascript
Exception(httpResponse: HttpResponseMessage)
```
### Parameters
#### httpResponse
- **httpResponse** (HttpResponseMessage) - Required - HttpResponseMessage object containing the API response of the HttpClient.
### Return Value
None
```
--------------------------------
### Define Dependency to 365 Business API
Source: https://github.com/365businessdev/documentation/blob/master/Get_Started.md
Add this JSON object to your app.json file to include the 365 Business API as a dependency for your extension.
```json
{
"appId": "0f94d4ef-5c3a-4002-93f2-2a2be05219c0",
"name": "365 business API",
"version": "1.0.0.0",
"publisher": "365 business development"
}
```
--------------------------------
### CallApi Method Syntax
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/365businessapi/CallApi2.md
This is the syntax for the CallApi method. It takes a service name and a request text as parameters.
```javascript
CallApi(serviceName: Text; request: Text)
```
--------------------------------
### GetApiVersion Method Syntax
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/365businessapi/GetApiVersion1.md
This snippet shows the syntax for calling the GetApiVersion method. It returns the API version as text.
```javascript
[Text := ] GetApiVersion()
```
--------------------------------
### GetApiVersion Method Syntax
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/365businessapi/GetApiVersion2.md
This snippet shows the syntax for calling the GetApiVersion method, which requires a service name and returns the API version.
```javascript
[Text := ] GetApiVersion(serviceName: Code[50])
```
--------------------------------
### GetExceptionStatus Method Syntax
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/365businessapi/GetExceptionStatus.md
This snippet shows the basic syntax for calling the GetExceptionStatus method. It returns the exception status as text.
```javascript
[Text := ] GetExceptionStatus()
```
--------------------------------
### GetException Method Signature
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/365businessapi/GetException.md
This is the syntax for the GetException method. It accepts a dictionary to store exception details.
```javascript
GetException(var ex: Dictionary of [Text, Text])
```
--------------------------------
### GetResponse(Record)
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/README.md
Returns the content of the API Response.
```APIDOC
## GetResponse(Record)
### Description
Returns the content of the API Response.
### Method
[Method not specified in source]
### Endpoint
[Endpoint not specified in source]
### Parameters
#### Path Parameters
- **Record** (Record) - Description not specified in source
#### Query Parameters
[No query parameters specified in source]
#### Request Body
[No request body specified in source]
### Request Example
[No request example specified in source]
### Response
#### Success Response (200)
[No success response details specified in source]
#### Response Example
[No response example specified in source]
```
--------------------------------
### Set Method
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/apiexception/Set.md
Assigns a value to a specified key name, typically used for exception properties.
```APIDOC
## Set Method
### Description
Assigns the value to a given key name. This method is used to set properties of an exception.
### Syntax
```javascript
Set(keyName: Text; value: Text)
```
### Parameters
#### keyName
Type: Text
Key name of the exception property.
#### value
Type: Text
Value of the exception property.
### Return Value
### None
```
--------------------------------
### Exception Constructor
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/apiexception/Exception3.md
This constructor initializes an Exception object from a provided JSON object, typically used for parsing API responses.
```APIDOC
## Exception(json: JsonObject)
### Description
Constructor method to extract information from JSON object.
### Parameters
#### json
- **json** (JsonObject) - Required - JSON object containing the API response.
### Return Value
None
```
--------------------------------
### Validate Method Syntax
Source: https://github.com/365businessdev/documentation/blob/master/365businessaddressvalidation/addressvalidationapi/Validate2.md
This snippet shows the syntax for the Validate method, which accepts a customer record.
```javascript
Validate(var customer: Record Customer)
```
--------------------------------
### GetMinorApiVersion Method Syntax
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/365businessapi/GetMinorApiVersion2.md
This is the syntax for the GetMinorApiVersion method. It takes a serviceName as input and returns an integer representing the minor API version.
```javascript
[Integer := ] GetMinorApiVersion(serviceName: Code[50])
```
--------------------------------
### Encode Method Syntax
Source: https://github.com/365businessdev/documentation/blob/master/365businessbarcode/barcodeapi/Encode3.md
This is the syntax for the Encode method. It requires a Temp Blob codeunit, the barcode value as text, and the barcode definition record.
```javascript
Encode(var tempBlobBuffer: Codeunit "Temp Blob"; barcodeValue: Text; barcodeDefinition: Record "bdev.Barcode Defintion")
```
--------------------------------
### CallApi Method Signature
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/365businessapi/CallApi3.md
This snippet shows the syntax for the `CallApi` method, which takes an API call method enum, a service name, and a request text as input.
```APIDOC
## CallApi(method: Enum "bdev.Api Call Method"; serviceName: Text; request: Text)
### Description
Sends a request to the API.
### Parameters
#### Method Parameter
- **method** (Enum `bdev.Api Call Method`) - Required - HTTP method to be used consuming the API service (e.g. `POST`).
#### Service Name Parameter
- **serviceName** (Text) - Required - Name of the API service (e.g. `PDF`) to consume.
#### Request Parameter
- **request** (Text) - Required - Request message to be sent to the API service.
### Return Value
None
```
--------------------------------
### Validate Method Syntax
Source: https://github.com/365businessdev/documentation/blob/master/365businessaddressvalidation/addressvalidationapi/Validate4.md
This snippet shows the basic syntax for calling the Validate method with an alternative address record.
```javascript
Validate(var altAddress: Record "Alternative Address")
```
--------------------------------
### Encode Method Syntax
Source: https://github.com/365businessdev/documentation/blob/master/365businessbarcode/barcodeapi/Encode4.md
This snippet shows the syntax for the Encode method, which takes a Temp Blob codeunit, barcode value, barcode format, and height as parameters.
```javascript
Encode(var tempBlobBuffer: Codeunit "Temp Blob"; barcodeValue: Text; barcodeFormat: enum "bdev.Barcode Format"; height: Decimal)
```
--------------------------------
### Exception Constructor with HttpResponseMessage
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/apiexception/Exception1.md
Initializes an Exception object using an HttpResponseMessage. This is used to capture details from an API response.
```javascript
Exception(httpResponse: HttpResponseMessage)
```
--------------------------------
### Encode Method Syntax
Source: https://github.com/365businessdev/documentation/blob/master/365businessbarcode/barcodeapi/Encode6.md
This is the syntax for the Encode method. It takes a Temp Blob codeunit, barcode value, format, height, width, and margin as input.
```javascript
Encode(var tempBlobBuffer: Codeunit "Temp Blob"; barcodeValue: Text; barcodeFormat: enum "bdev.Barcode Format"; height: Decimal; width: Decimal; margin: Decimal)
```
--------------------------------
### ApplyStationeryToDocument
Source: https://github.com/365businessdev/documentation/blob/master/365businesspdf/pdfapi/ApplyStationeryToDocument.md
Applies a stationery document to a PDF stream.
```APIDOC
## ApplyStationeryToDocument
### Description
Applies a stationery document to a PDF stream.
### Method Signature
```javascript
ApplyStationeryToDocument(var document: Codeunit "Temp Blob"; stationery: Codeunit "Temp Blob")
```
### Parameters
#### document
Type: Codeunit "Temp Blob"
"Temp Blob" Codeunit containing the PDF stream.
#### stationery
Type: Codeunit "Temp Blob"
"Temp Blob" Codeunit containing the stationery document stream.
### Return Value
None
### Example
```javascript
procedure ApplyStationeryToDocument(var document: Codeunit "Temp Blob")
var
setupTable: Record "Your Setup Table";
stationery: Codeunit "Temp Blob";
pdfApi: Codeunit "bdev.PDF API";
begin
setupTable.Get();
// transfer blob content to temp blob
stationery.FromRecord(setupTable, setupTable.FieldNo("Stationery Document"));
pdfApi.ApplyStationeryToDocument(document, stationery);
end;
```
```
--------------------------------
### GetApiVersion
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/365businessapi/GetApiVersion1.md
Returns the currently used API Version.
```APIDOC
## GetApiVersion
### Description
Returns the currently used API Version.
### Syntax
```javascript
GetApiVersion()
```
### Parameters
*None*
### Return Value
*Text*
Type: Text
The version of the 365 business API metadata.
### Remarks
Returned format is `MAJOR`.`MINOR`.`BUILD`.`REVISION`.
```
--------------------------------
### GetMajorApiVersion Method Syntax
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/365businessapi/GetMajorApiVersion1.md
This snippet shows the basic syntax for calling the GetMajorApiVersion method. It returns an integer representing the major API version.
```javascript
[Integer := ] GetMajorApiVersion()
```
--------------------------------
### SetApiVersion Method Syntax
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/365businessapi/SetApiVersion.md
This is the syntax for the SetApiVersion method. It requires the service name and the version number.
```javascript
SetApiVersion(serviceName: Code[50]; versionNo: Text[10])
```
--------------------------------
### Validate Method Syntax
Source: https://github.com/365businessdev/documentation/blob/master/365businessaddressvalidation/addressvalidationapi/Validate6.md
This snippet shows the basic syntax for calling the Validate method with a 'Ship-To Address' record.
```javascript
Validate(var shipToAddress: Record "Ship-To Address")
```
--------------------------------
### GetResponse Method Signature
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/365businessapi/GetResponse1.md
This snippet shows the syntax for the GetResponse method, which accepts a temporary API Buffer record to store the API response.
```javascript
GetResponse(var apiContentBuffer: Record "bdev.API Buffer" temporary)
```
--------------------------------
### GetBase64Content Method Signature
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/apidatatypemgmt/GetBase64Content1.md
This snippet shows the syntax for the obsolete GetBase64Content method. It is recommended to use the GetBase64Content(JsonObject, Text, Enum, Text) overload instead.
```APIDOC
## GetBase64Content
### Description
Obsolete. Get base64 content of an API Response.
### Syntax
```javascript
GetBase64Content(json: JsonObject; nodeName: Text; mimeType: Text; var base64String: Text)
```
### Parameters
#### json
Type: JsonObject
API Response as JSON object.
#### nodeName
Type: Text
Name of the requested JSON node.
#### mimeType
Type: Text
Expected MIME-Type of the base64 String.
#### base64String
Type: Text
Requested key name as string.
### Return Value
### None
### Remarks
**Obsolete.** Use MIME-Type from "bdev.API MIME Type" enum, instead of textual.
### See Also
[GetBase64Content(JsonObject, Text, Enum, Text)](./GetBase64Content2.md)
```
--------------------------------
### GetOutStreamFromBlobStorage Method Signature
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/apidatatypemgmt/GetOutStreamFromBlobStorage.md
This snippet shows the syntax for the GetOutStreamFromBlobStorage method. It requires a Temp Blob codeunit and an OutStream object as parameters.
```javascript
GetOutStreamFromBlobStorage(var blobHelper: Codeunit "Temp Blob"; var stream: OutStream)
```
--------------------------------
### GetBase64Content Method Signature
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/apidatatypemgmt/GetBase64Content1.md
This is the syntax for the obsolete GetBase64Content method. It takes a JsonObject, node name, mime type, and an output parameter for the base64 string.
```javascript
GetBase64Content(json: JsonObject; nodeName: Text; mimeType: Text; var base64String: Text)
```
--------------------------------
### GetExceptionMessage Syntax
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/365businessapi/GetExceptionMessage.md
This snippet shows the basic syntax for calling the GetExceptionMessage method. It returns the exception message as Text.
```javascript
[Text := ] GetExceptionMessage()
```
--------------------------------
### Exception(jsonString: Text)
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/apiexception/Exception2.md
Initializes a new instance of the Exception class with a JSON string. This constructor is used to parse API responses that are in JSON format.
```APIDOC
## Exception(jsonString: Text)
### Description
Constructor method to extract information from JSON string.
### Parameters
#### jsonString
Type: Text
String object containing the API response.
### Return Value
None
### See Also
[Exception(HttpResponseMessage)](./Exception1.md)
[Exception(JsonObject)](./Exception3.md)
```
--------------------------------
### GetException(Dictionary of [Text, Text])
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/README.md
Returns the exception caused by the previous API call.
```APIDOC
## GetException(Dictionary of [Text, Text])
### Description
Returns the exception caused by the previous API call.
### Method
[Method not specified in source]
### Endpoint
[Endpoint not specified in source]
### Parameters
#### Path Parameters
- **Dictionary of [Text, Text]** (Dictionary) - Description not specified in source
#### Query Parameters
[No query parameters specified in source]
#### Request Body
[No request body specified in source]
### Request Example
[No request example specified in source]
### Response
#### Success Response (200)
[No success response details specified in source]
#### Response Example
[No response example specified in source]
```
--------------------------------
### GetResponse Method Syntax
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/365businessapi/GetResponse2.md
This is the basic syntax for the GetResponse method. It accepts a JsonObject containing the API response.
```javascript
GetResponse(var json: JsonObject)
```
--------------------------------
### Exception Handling Methods
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/README.md
Represents common exception responses from the 365 Business API, allowing for extraction and manipulation of error details.
```APIDOC
## Exception Handling (Codeunit `5523566`)
### Description
Represents the common exception response returned from 365 business API, containing TimeStamp, ErrorCode and Message. Additional values are allowed and will be stored in a property directory.
### Methods
#### Exception (HttpResponseMessage)
Constructor method to extract information from HttpResponseMessage object.
#### Exception (Text)
Constructor method to extract information from JSON string.
#### Exception (JsonObject)
Constructor method to extract information from JSON object.
#### Set (Text, Text)
Assigning the value to given key name.
#### Get (Text)
Returns the value for requested key name, if present.
#### Get (Dictionary of [Text, Text])
Returns all properties from the exception object.
#### IsEmpty ()
Checks whether a exception object is empty or not.
#### TimeStamp ()
Returns the Timestamp from ExceptionResponse object.
#### TimeStamp (Text)
Sets the timestamp of a ExceptionResponse object.
#### TimeStamp (DateTime)
Sets an DateTime value as the timestamp of a ExceptionResponse object.
#### ErrorCode ()
Returns the Error Code from ExceptionResponse object.
#### ErrorCode (Text)
Sets the Error Code of a ExceptionResponse object.
#### ErrorCode (Integer)
Sets an Integer value as the Error Code from ExceptionResponse object.
#### Message ()
Returns the Message from ExceptionResponse object.
#### Message (Text)
Sets the Message of a ExceptionResponse object.
#### Status ()
Returns the Status from ExceptionResponse object.
#### Status (Text)
Sets the Status of a ExceptionResponse object.
```
--------------------------------
### SignDocument Method
Source: https://github.com/365businessdev/documentation/blob/master/365businesspdf/pdfapi/SignDocument.md
Digitally sign PDF stream. This method takes a PDF document stream, a certificate file, and the certificate PIN as input to perform the digital signing operation.
```APIDOC
## SignDocument
### Description
Digitally sign PDF stream.
### Syntax
```javascript
SignDocument(var document: Codeunit "Temp Blob"; certificate: Codeunit "Temp Blob"; certificatePin: Text)
```
### Parameters
#### document
Type: Codeunit "Temp Blob"
"Temp Blob" Codeunit containing the PDF stream.
#### certificate
Type: Codeunit "Temp Blob"
"Temp Blob" Codeunit containing the certificate file.
#### certificatePin
Type: Text
Certificate PIN as string.
### Return Value
None
### Example
```javascript
procedure SignDocument(var document: Codeunit "Temp Blob")
var
setupTable: Record "Your Setup Table";
certificate: Codeunit "Temp Blob";
pdfApi: Codeunit "bdev.PDF API";
certificatePin: Text;
begin
setupTable.Get();
// transfer blob content to temp blob
certificate.FromRecord(setupTable, setupTable.FieldNo("Certificate File"));
// get certificate pin
certificatePin := setupTable."Certificate PIN";
pdfApi.SignDocument(document, certificate, certificatePin);
end;
```
```
--------------------------------
### Message Method Syntax
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/apiexception/Message1.md
This snippet shows the basic syntax for calling the Message method on an ExceptionResponse object to retrieve the error message.
```javascript
Text := Message()
```
--------------------------------
### GetTextFromBlobStorage Method Signature
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/apidatatypemgmt/GetTextFromBlobStorage.md
This is the syntax for the GetTextFromBlobStorage method. It takes a 'Temp Blob' codeunit as input.
```javascript
GetTextFromBlobStorage(var blobHelper: Codeunit "Temp Blob")
```
--------------------------------
### GetException
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/365businessapi/GetException.md
This method checks the success of the previous API call. It takes an exception dictionary as input.
```APIDOC
## GetException
### Description
Checks whether the previous API call was successful or not.
### Syntax
```javascript
GetException(ex: Dictionary of [Text, Text])
```
### Parameters
#### ex
Type: Dictionary of [Text, Text]
Exception dictionary containing assigned with previous received error resulting to an exception.
### Return Value
None
### Remarks
The return value will be an empty dictionary if no previous API call has been operated.
```
--------------------------------
### Decode Method Signature
Source: https://github.com/365businessdev/documentation/blob/master/365businessbarcode/barcodeapi/Decode.md
This snippet shows the syntax for the Decode method. It takes a Temp Blob codeunit and an output text variable for the barcode value.
```javascript
Decode(var tempBlobBuffer: Codeunit "Temp Blob"; var barcodeValue: Text)
```
--------------------------------
### Encode Method Syntax
Source: https://github.com/365businessdev/documentation/blob/master/365businessbarcode/barcodeapi/Encode7.md
This is the syntax for the Encode method, which takes a temporary blob buffer, barcode value, format, dimensions, margin, and a boolean to include text.
```javascript
Encode(var tempBlobBuffer: Codeunit "Temp Blob"; barcodeValue: Text; barcodeFormat: enum "bdev.Barcode Format"; height: Decimal; width: Decimal; margin: Decimal; includeText: Boolean)
```
--------------------------------
### GetApiVersion()
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/README.md
Returns the currently used API Version.
```APIDOC
## GetApiVersion()
### Description
Returns the currently used API Version.
### Method
[Method not specified in source]
### Endpoint
[Endpoint not specified in source]
### Parameters
[No parameters specified in source]
### Request Example
[No request example specified in source]
### Response
#### Success Response (200)
[No success response details specified in source]
#### Response Example
[No response example specified in source]
```
--------------------------------
### Constructor for Exception from JSON String
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/apiexception/Exception2.md
Initializes an Exception object by parsing a JSON string. This is used when the API response is received as plain text.
```javascript
Exception(jsonString: Text)
```
--------------------------------
### GetInStreamFromBlobStorage Method Signature
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/apidatatypemgmt/GetInStreamFromBlobStorage.md
This is the syntax for the GetInStreamFromBlobStorage method. It takes a Temp Blob codeunit and an InStream as parameters to create an InStream object for reading data.
```javascript
GetInStreamFromBlobStorage(var blobHelper: Codeunit "Temp Blob"; var stream: InStream)
```
--------------------------------
### Exception Constructor with JSON Object
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/apiexception/Exception3.md
Use this constructor to create an Exception object by parsing a JSON object containing the API response. Ensure the input is a valid JsonObject.
```javascript
Exception(json: JsonObject)
```
--------------------------------
### Decode Method
Source: https://github.com/365businessdev/documentation/blob/master/365businessbarcode/barcodeapi/Decode.md
Decodes a barcode by taking a Temp Blob codeunit and returning the barcode value as text.
```APIDOC
## Decode Method
### Description
Decodes the barcode by processing a Temp Blob codeunit and outputting the barcode value.
### Syntax
```javascript
Decode(var tempBlobBuffer: Codeunit "Temp Blob"; var barcodeValue: Text)
```
### Parameters
#### tempBlobBuffer
- **Type**: Codeunit "Temp Blob"
- **Description**: Temp Blob codeunit instance to storing the barcode to encode.
#### barcodeValue
- **Type**: Text
- **Description**: Out variable for encoded Barcode Value.
### Return Value
None
```
--------------------------------
### GetApiVersion
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/365businessapi/GetApiVersion2.md
Retrieves the API version for a specified service. The version is returned in MAJOR.MINOR.BUILD.REVISION format.
```APIDOC
## GetApiVersion
### Description
Returns the API version for a specific service.
### Syntax
```javascript
[Text := ] GetApiVersion(serviceName: Code[50])
```
### Parameters
#### serviceName
- **serviceName** (Code[50]) - Required - Name of the API service (e.g. `PDF`).
### Return Value
#### Text
- **Text** (Text) - The version of the 365 business API service metadata.
### Remarks
Returned format is `MAJOR`.`MINOR`.`BUILD`.`REVISION`.
```
--------------------------------
### Encode Method Signature
Source: https://github.com/365businessdev/documentation/blob/master/365businessbarcode/barcodeapi/Encode1.md
This is the syntax for the Encode method, specifying the parameters it accepts: a Temp Blob codeunit, the barcode value as text, and the barcode format as an enum.
```javascript
Encode(var tempBlobBuffer: Codeunit "Temp Blob"; barcodeValue: Text; barcodeFormat: enum "bdev.Barcode Format")
```
--------------------------------
### GetExceptionErrorCode Syntax
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/365businessapi/GetExceptionErrorCode.md
This snippet shows the basic syntax for calling the GetExceptionErrorCode method. It returns the error code as text.
```javascript
[Text := ] GetExceptionErrorCode()
```
--------------------------------
### Barcode Encoding Method Signature
Source: https://github.com/365businessdev/documentation/blob/master/365businessbarcode/barcodeapi/Encode2.md
This is the syntax for the Encode method. It takes a Temp Blob codeunit, the barcode value as text, and the barcode definition code.
```javascript
Encode(var tempBlobBuffer: Codeunit "Temp Blob"; barcodeValue: Text; barcodeDefinitionCode: Code[20])
```
--------------------------------
### GetApiVersion(Code)
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/README.md
Returns the API Version for a specific service.
```APIDOC
## GetApiVersion(Code)
### Description
Returns the API Version for a specific service.
### Method
[Method not specified in source]
### Endpoint
[Endpoint not specified in source]
### Parameters
#### Path Parameters
- **Code** (Code) - Description not specified in source
#### Query Parameters
[No query parameters specified in source]
#### Request Body
[No request body specified in source]
### Request Example
[No request example specified in source]
### Response
#### Success Response (200)
[No success response details specified in source]
#### Response Example
[No response example specified in source]
```
--------------------------------
### Data Type Management Methods
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/README.md
Provides functionalities to handle API responses and requests, including JSON and Text objects, and interact with Blob Storage.
```APIDOC
## Data Type Management (Codeunit `5523565`)
### Description
Exposes common functionalities to handle with API responses and requests. It also contains functionalities to handle JSON and Text objects.
### Methods
#### GetInStreamFromBlobStorage
Initiate InStream object from Temp Blob codeunit to read data.
#### GetOutStreamFromBlobStorage
Initiate OutStream object from Temp Blob codeunit to write data.
#### GetTextFromBlobStorage
Read content from Temp Blob Codeunit and return Text object.
#### SetTextToBlobStorage
Write a text to Temp Blob Codeunit.
#### GetBase64Content (JsonObject, Text, Text, Text)
Get base64 content of an API Response.
#### GetBase64Content (JsonObject, Text, Enum, Text)
Get base64 content of an API Response.
#### TestJsonToken
Test whether the specified JSON token exists or not.
#### GetJsonToken
Retrieves the specified JSON token by given key name.
#### SelectJsonToken
Retrieves the specified JSON token by given path.
#### ConcatenateText (Text, Text)
Concatenate text with whitespace in between.
#### ConcatenateText (Text, Text, Text)
Concatenate text with specific merge text in between.
```
--------------------------------
### GetMinorApiVersion
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/365businessapi/GetMinorApiVersion1.md
Retrieves the minor version number of the 365 business API.
```APIDOC
## GetMinorApiVersion
### Description
Returns the minor version number of the currently used API Version.
### Method
N/A (This is a function call, not an HTTP endpoint)
### Endpoint
N/A
### Parameters
#### None
### Return Value
#### Text
Type: Integer
Description: The minor version no. of the 365 business API metadata.
```
--------------------------------
### GetRevisionApiVersion Syntax
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/365businessapi/GetRevisionApiVersion1.md
This is the basic syntax for calling the GetRevisionApiVersion method. It returns an integer representing the API's revision version.
```javascript
[Integer := ] GetRevisionApiVersion()
```
--------------------------------
### Status Method
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/apiexception/Status1.md
Returns the Message from ExceptionResponse object. This method does not take any parameters and returns the status of the exception response as a string.
```APIDOC
## Status Method
### Description
Returns the Message from ExceptionResponse object.
### Syntax
```javascript
[Text := ] Status()
```
### Parameters
*None*
### Return Value
*Text*
Status of the exception response as string.
```
--------------------------------
### CallApi Method Syntax
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/365businessapi/CallApi4.md
Defines the syntax for the CallApi method, specifying the types and order of parameters required for making an API call.
```javascript
CallApi(method: Enum "bdev.Api Call Method"; serviceName: Text; serviceVersion: Text[10]; request: Text)
```
--------------------------------
### SelectJsonToken Method Signature
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/apidatatypemgmt/SelectJsonToken.md
This is the syntax for the SelectJsonToken method, indicating the types of parameters it accepts.
```javascript
SelectJsonToken(json: JsonObject;
path: Text)
```
--------------------------------
### Status Method
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/apiexception/Status2.md
The Status method sets the status of an ExceptionResponse object. It takes a string representing the status code as a parameter.
```APIDOC
## Status Method
Sets the Status of a ExceptionResponse object.
### Syntax
```javascript
Status(string: Code[10])
```
### Parameters
#### string
Type: Code[10]
Status as a string to be assigned to the 'status' exception property.
### Return Value
### None
### See Also
[Status()](./Status1.md)
```
--------------------------------
### Validate Address from Table Record
Source: https://github.com/365businessdev/documentation/blob/master/365businessaddressvalidation/addressvalidationapi/Validate7.md
This snippet demonstrates how to use the Validate method to fill an address validation buffer from a table record, validate it, and then update the original table record with the validated address.
```javascript
procedure ValidateYourTable(yourTable: Record "Your Table")
var
buffer: Record "bdev.Address Validation Buffer" temporary;
validatedBuffer: Record "bdev.Address Validation Buffer" temporary;
addressValidationApi: Codeunit "bdev.Address Validation API";
begin
// fill address validation buffer
buffer.Address := yourTable.Address;
buffer."Address 2" := yourTable."Address 2";
buffer."Post Code" := yourTable."Post Code";
buffer.City := yourTable.City;
buffer.County := yourTable.County;
buffer."Country/Region Code" := yourTable."Country/Region Code";
// validate address
addressValidationApi.Validate(buffer, validatedBuffer);
// update original table data
yourTable.Address := validatedBuffer.Address;
yourTable."Address 2" := validatedBuffer."Address 2";
yourTable."Post Code" := validatedBuffer."Post Code";
yourTable.City := validatedBuffer.City;
yourTable.County := validatedBuffer.County;
yourTable."Country/Region Code" := validatedBuffer."Country/Region Code";
end;
```
--------------------------------
### GetValidationBuffer Method Syntax
Source: https://github.com/365businessdev/documentation/blob/master/365businessaddressvalidation/addressvalidationapi/GetValidationBuffer2.md
This is the syntax for the GetValidationBuffer method. It requires a Customer record and a temporary 'bdev.Address Validation Buffer' record.
```javascript
GetValidationBuffer(customer: Record Customer; var buffer: Record "bdev.Address Validation Buffer" temporary)
```
--------------------------------
### Encode Barcode (Multiple Overloads)
Source: https://github.com/365businessdev/documentation/blob/master/365businessbarcode/README.md
Provides multiple overloads for encoding barcode values using different parameters such as barcode format, definition, dimensions, and text inclusion.
```APIDOC
## Encode Barcode
### Description
Encodes the barcode value using various parameters.
### Methods
- Encode(Codeunit, Text, Enum)
- Encode(Codeunit, Text, Code)
- Encode(Codeunit, Text, Record)
- Encode(Codeunit, Text, Enum, Decimal)
- Encode(Codeunit, Text, Enum, Decimal, Decimal)
- Encode(Codeunit, Text, Enum, Decimal, Decimal, Decimal)
- Encode(Codeunit, Text, Enum, Decimal, Decimal, Decimal, Boolean)
### Parameters
- **Codeunit**: Type Text - Description of the codeunit.
- **Text**: Type Text - The barcode value to encode.
- **Enum**: Type Enum - The barcode format.
- **Code**: Type Code - The barcode definition code.
- **Record**: Type Record - The barcode definition.
- **Decimal**: Type Decimal - Represents dimensions (height, weight) or margin.
- **Boolean**: Type Boolean - Indicates whether to include text.
```
--------------------------------
### GetBuildApiVersion(Code)
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/README.md
Returns the build version number of a specific service API Version.
```APIDOC
## GetBuildApiVersion(Code)
### Description
Returns the build version number of a specific service API Version.
### Method
[Method not specified in source]
### Endpoint
[Endpoint not specified in source]
### Parameters
#### Path Parameters
- **Code** (Code) - Description not specified in source
#### Query Parameters
[No query parameters specified in source]
#### Request Body
[No request body specified in source]
### Request Example
[No request example specified in source]
### Response
#### Success Response (200)
[No success response details specified in source]
#### Response Example
[No response example specified in source]
```
--------------------------------
### GetBase64Content Method Signature
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/apidatatypemgmt/GetBase64Content2.md
This is the method signature for GetBase64Content. It takes a JSON object, a node name, a MIME type enum, and outputs a base64 string.
```javascript
GetBase64Content(json: JsonObject; nodeName: Text; mimeType: Enum "bdev.API MIME Type"; var base64String: Text)
```
--------------------------------
### GetBuildApiVersion
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/365businessapi/GetBuildApiVersion1.md
Returns the build version number of the currently used API version.
```APIDOC
## GetBuildApiVersion
### Description
Returns the build version no. of the currently used API Version.
### Syntax
```javascript
[Integer := ] GetBuildApiVersion()
```
### Parameters
*None*
### Return Value
*Text*
Type: Integer
The build version no. of the 365 business API metadata.
```
--------------------------------
### CallApi(Text, Text)
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/README.md
Sends a POST request to the API service.
```APIDOC
## CallApi(Text, Text)
### Description
Sends a POST request to the API service.
### Method
POST
### Endpoint
[Endpoint not specified in source]
### Parameters
#### Path Parameters
- **Text** (Text) - Description not specified in source
#### Query Parameters
[No query parameters specified in source]
#### Request Body
- **Text** (Text) - Description not specified in source
### Request Example
[No request example specified in source]
### Response
#### Success Response (200)
[No success response details specified in source]
#### Response Example
[No response example specified in source]
```
--------------------------------
### GetResponse
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/365businessapi/GetResponse1.md
This method retrieves the content of an API response and stores it in a provided temporary buffer. The buffer is expected to be a temporary record variable of type 'bdev.API Buffer'.
```APIDOC
## GetResponse
### Description
Returns the content of the API Response.
### Syntax
```javascript
GetResponse(var apiContentBuffer: Record "bdev.API Buffer" temporary)
```
### Parameters
#### apiContentBuffer
Type: Record [`bdev.API Buffer`](./Api_Buffer.md)
Temporary record variable to store the received API response.
### Return Value
None
### Remarks
`apiContentBuffer` is expected to be temporary to prevent from accidental written data.
### See Also
[GetResponse(JsonObject)](./GetResponse2.md)
```
--------------------------------
### Validate Method Signature
Source: https://github.com/365businessdev/documentation/blob/master/365businessaddressvalidation/addressvalidationapi/Validate4.md
The syntax for the Validate method, which takes an 'Alternative Address' record as input.
```APIDOC
## Validate(var altAddress: Record "Alternative Address")
### Description
Validates and auto-completes an alternative address.
### Parameters
#### Path Parameters
- **altAddress** (Record "Alternative Address") - Required - The 'Alternative Address' record to validate.
```
--------------------------------
### Validate Method
Source: https://github.com/365businessdev/documentation/blob/master/365businessaddressvalidation/addressvalidationapi/Validate2.md
Validates and auto-completes a customer's address. This method takes a customer record as input and performs address validation.
```APIDOC
## Validate Method
### Description
Validates and auto-completes a customer's address. This method takes a customer record as input and performs address validation.
### Method
```javascript
Validate(var customer: Record Customer)
```
### Parameters
#### customer
- **customer** (Record Customer) - Required - Customer record to validate.
```
--------------------------------
### Message Method
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/apiexception/Message1.md
Retrieves the error message from an ExceptionResponse object.
```APIDOC
## Message Method
### Description
Returns the Message from the ExceptionResponse object.
### Syntax
```javascript
[Text := ] Message()
```
### Parameters
*None*
### Return Value
### *Text*
Error message of the exception response as string.
```
--------------------------------
### GetOutStreamFromBlobStorage
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/apidatatypemgmt/GetOutStreamFromBlobStorage.md
Initiates an OutStream object from a Temp Blob codeunit to write data. This method is useful for scenarios where you need to write data to a temporary blob storage, such as for file exports or intermediate data processing.
```APIDOC
## GetOutStreamFromBlobStorage
### Description
Initiates an OutStream object from a Temp Blob codeunit to write data.
### Syntax
```javascript
GetOutStreamFromBlobStorage(var blobHelper: Codeunit "Temp Blob"; var stream: OutStream)
```
### Parameters
#### blobHelper
Type: Codeunit "Temp Blob"
Description: Temp Blob codeunit object to create the OutStream object at.
#### stream
Type: OutStream
Description: OutStream object to be created with the Temp Blob codeunit.
### Return Value
None
```
--------------------------------
### Setting Exception Status
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/apiexception/Status2.md
Use this method to assign a status code to an exception response. The status code is limited to 10 characters.
```javascript
Status(string: Code[10])
```
--------------------------------
### GetValidationBuffer Method Signature
Source: https://github.com/365businessdev/documentation/blob/master/365businessaddressvalidation/addressvalidationapi/GetValidationBuffer3.md
This is the syntax for the GetValidationBuffer method. It takes a Vendor record and a temporary 'bdev.Address Validation Buffer' record as parameters.
```javascript
GetValidationBuffer(vendor: Record Vendor; var buffer: Record "bdev.Address Validation Buffer" temporary)
```
--------------------------------
### Validate Method
Source: https://github.com/365businessdev/documentation/blob/master/365businessaddressvalidation/addressvalidationapi/Validate7.md
Validates and auto-completes an address using the Address Validation API. It takes an input address buffer and populates a validated address buffer with the results.
```APIDOC
## Validate Method
### Description
Validates and auto-completes an address provided in a temporary buffer. This method is part of the Address Validation API.
### Syntax
```javascript
Validate(address: Record "bdev.Address Validation Buffer" temporary; var validatedAddress: Record "bdev.Address Validation Buffer" temporary)
```
### Parameters
#### address
- **Type**: Record "bdev.Address Validation Buffer" temporary
- **Description**: A temporary record containing the address data to validate.
#### validatedAddress
- **Type**: Record "bdev.Address Validation Buffer" temporary
- **Description**: A temporary record that will be populated with the validated or completed address data.
### Return Value
None
### Example
```javascript
procedure ValidateYourTable(yourTable: Record "Your Table")
var
buffer: Record "bdev.Address Validation Buffer" temporary;
validatedBuffer: Record "bdev.Address Validation Buffer" temporary;
addressValidationApi: Codeunit "bdev.Address Validation API";
begin
// fill address validation buffer
buffer.Address := yourTable.Address;
buffer."Address 2" := yourTable."Address 2";
buffer."Post Code" := yourTable."Post Code";
buffer.City := yourTable.City;
buffer.County := yourTable.County;
buffer."Country/Region Code" := yourTable."Country/Region Code";
// validate address
addressValidationApi.Validate(buffer, validatedBuffer);
// update original table data
yourTable.Address := validatedBuffer.Address;
yourTable."Address 2" := validatedBuffer."Address 2";
yourTable."Post Code" := validatedBuffer."Post Code";
yourTable.City := validatedBuffer.City;
yourTable.County := validatedBuffer.County;
yourTable."Country/Region Code" := validatedBuffer."Country/Region Code";
end;
```
```
--------------------------------
### GetBuildApiVersion
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/365businessapi/GetBuildApiVersion2.md
Returns the build version number of a specific service API version.
```APIDOC
## GetBuildApiVersion
### Description
Returns the build version no. of a specific service API Version.
### Syntax
```javascript
[Integer := ] GetBuildApiVersion(serviceName: Code[50])
```
### Parameters
#### serviceName
- **serviceName** (Code[50]) - Required - Name of the API service (e.g. `PDF`).
### Return Value
#### Text
- **Integer** - The build version no. of the 365 business API metadata.
```
--------------------------------
### SignDocument Method Signature
Source: https://github.com/365businessdev/documentation/blob/master/365businesspdf/pdfapi/SignDocument.md
The syntax for the SignDocument method, specifying the types of its parameters.
```javascript
SignDocument(var document: Codeunit "Temp Blob"; certificate: Codeunit "Temp Blob"; certificatePin: Text)
```
--------------------------------
### GetValidationBuffer
Source: https://github.com/365businessdev/documentation/blob/master/365businessaddressvalidation/addressvalidationapi/GetValidationBuffer2.md
Fills the validation buffer table with Customer record data. This is a procedural method that takes a Customer record and a temporary buffer record as input.
```APIDOC
## GetValidationBuffer
### Description
Fills the validation buffer table with Customer record data.
### Syntax
```javascript
GetValidationBuffer(customer: Record Customer; var buffer: Record "bdev.Address Validation Buffer" temporary)
```
### Parameters
#### customer
Type: Record Customer
Customer record to validate the address with.
#### buffer
Type: Record "bdev.Address Validation Buffer" temporary
Temporary "bdev.Address Validation Buffer" record to be filled with the table data.
### Return Value
None
```
--------------------------------
### GetJsonToken Method Signature
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/apidatatypemgmt/GetJsonToken.md
This is the syntax for the GetJsonToken method. It takes a JsonObject and a keyName as input.
```javascript
GetJsonToken(json: JsonObject; keyName: Text)
```
--------------------------------
### SetTextToBlobStorage
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/apidatatypemgmt/SetTextToBlobStorage.md
Writes a given string to a Temp Blob Codeunit. This is useful for storing long text data in blob storage.
```APIDOC
## SetTextToBlobStorage
### Description
Writes a given string to a Temp Blob Codeunit. This is useful for storing long text data in blob storage.
### Syntax
```javascript
SetTextToBlobStorage(var blobHelper: Codeunit "Temp Blob"; string: Text)
```
### Parameters
#### blobHelper
Type: Codeunit "Temp Blob" - Temp Blob codeunit object to write the text into.
#### string
Type: Text - String to write into the Temp Blob codeunit object.
### Return Value
None
### Remarks
This should only be used for long text stored in blob.
```
--------------------------------
### CallApi(Enum, Text, Text)
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/README.md
Sends a request to the API service.
```APIDOC
## CallApi(Enum, Text, Text)
### Description
Sends a request to the API service.
### Method
[Method not specified in source]
### Endpoint
[Endpoint not specified in source]
### Parameters
#### Path Parameters
- **Enum** (Enum) - Description not specified in source
- **Text** (Text) - Description not specified in source
#### Query Parameters
[No query parameters specified in source]
#### Request Body
- **Text** (Text) - Description not specified in source
### Request Example
[No request example specified in source]
### Response
#### Success Response (200)
[No success response details specified in source]
#### Response Example
[No response example specified in source]
```
--------------------------------
### IsSuccessful()
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/README.md
Checks whether the previous API call was successful or not.
```APIDOC
## IsSuccessful()
### Description
Checks whether the previous API call was successful or not.
### Method
[Method not specified in source]
### Endpoint
[Endpoint not specified in source]
### Parameters
[No parameters specified in source]
### Request Example
[No request example specified in source]
### Response
#### Success Response (200)
[No success response details specified in source]
#### Response Example
[No response example specified in source]
```
--------------------------------
### GetResponse(JsonObject)
Source: https://github.com/365businessdev/documentation/blob/master/365businessapi/README.md
Returns the content of the API Response as JSON Object.
```APIDOC
## GetResponse(JsonObject)
### Description
Returns the content of the API Response as JSON Object.
### Method
[Method not specified in source]
### Endpoint
[Endpoint not specified in source]
### Parameters
#### Path Parameters
- **JsonObject** (JsonObject) - Description not specified in source
#### Query Parameters
[No query parameters specified in source]
#### Request Body
[No request body specified in source]
### Request Example
[No request example specified in source]
### Response
#### Success Response (200)
[No success response details specified in source]
#### Response Example
[No response example specified in source]
```