Create and view Alerts for SAP Business One

Create an Alert for SAP Business One

Alerts for SAP Business One can be created by posting the following XML format to the B1WebAPI [<profile>]/message/send.aspx.

<Message>
  <Priority>pr_Normal</Priority>
  <Subject>Subject</Subject>
  <Text />
  <User />
  <RecipientCollection>
    <Recipient>
      <CellularNumber>123456789</CellularNumber>
      <EmailAddress>manager@zedsuite.com</EmailAddress>
      <FaxNumber>098765543</FaxNumber>
      <NameTo>Jayson Butler</NameTo>
      <SendEmail>tYES</SendEmail>
      <SendFax>tYES</SendFax>
      <SendSMS>tNO</SendSMS>
      <SendInternal>tYES</SendInternal>
      <UserCode>manager</UserCode>
      <UserType>rt_InternalUser</UserType>
    </Recipient>
  </RecipientCollection>
  <MessageDataColumns>
    <MessageDataColumn>
      <ColumnName>B1 Order#</ColumnName>
      <Link>tYES</Link>
      <MessageDataLines>
        <MessageDataLine>
          <Object>17</Object>
          <ObjectKey>355</ObjectKey>
          <Value>335</Value>
        </MessageDataLine>
      </MessageDataLines>
    </MessageDataColumn>
  </MessageDataColumns>
</Message>

Alert Schema

Alert Schema for your installed version can be obtained from the following B1WebAPI page: [<profile>]/message/schema.aspx

View Alerts Inbox

A user’s inbox may be viewed from the following B1WebAPI page: [<profile>]/message/inbox.aspx

This will display the inbox of the user assigned to the specified B1WebAPI profile (or, if unspecified, the default B1WebAPI profile).

Sent Items List

A user’s sent items list may be viewed from the following B1WebAPI page: [<profile>]/message/sent.aspx

As with viewing alerts and displaying outbox items, this only displays data for the specified B1WebAPI profile’s user.

Outbox Items List

A user’s sent items list may be viewed from the following B1WebAPI page: [<profile>]/message/outbox.aspx

As with viewing alerts inbox and displaying sent items, this only displays data for the specified B1WebAPI profile’s user.