---
title: "View Purchase Order Comments on Your Handheld"
app: "Warehouse Insight"
section: "Developer"
last_updated: "2020-07-03"
url: "https://insight-works.com/kb/warehouse-insight/display-purchase-comments-on-device/"
---

# View Purchase Order Comments on Your Handheld

### Objective

In some cases, users of Warehouse Insight will want to view purchase order comments on their mobile device. This article will walk through the steps and code required to display Purchase Order comments when a Purchase Order is opened.

### Requirements

This article requires the following:

- Business Central version 15 or higher
- Warehouse Insight Advanced WMS version 2.0 or higher

### Steps

The following steps/code can be modified or extended as required and assume a base level familiarity with Business Central and Warehouse Insight.

- Add Comments

   - Create a Purchase Order and add Comments that you would like shown on the device.
   - In this example multiple comments will be separated by new lines on the device.

![Comment Sheet](/wp-content/uploads/kb-legacy/Comment-Sheet.png)

- Create the Extension

   - Create an extension codeunit to extend the open Purchase Order event.
   - For this example, we will add our “message” after the base product functionality has occurred.  Therefore, we will be subscribing to the “OnAfterProcessEvent” and listening for event ID 50005.

![Comment](/wp-content/uploads/kb-legacy/Comment-3.png)

 Note: Event ID’s can be determined by looking at the Warehouse Insight Events page in Business Central.

The code for adding the comments will utilize the “addMessage” function provided by the Warehouse Insight.

![Comments](/wp-content/uploads/kb-legacy/Comments.png)

### Result

Once the extension codeunit has been published the comments will be shown on the device whenever the Purchase Order is opened.

![Message](/wp-content/uploads/kb-legacy/Message.png)

 Note: The codeunit .al file has been attached to this article for easier reference.

[Download the Codeunit](/wp-content/uploads/kb-legacy/Codeunit50500.zip)
