messages

sap-sdk

Messages is a business object that represents the messages in the Administration module. This object enables you to send messages through SAP Business One messaging service.

You can use the MessagesService, which enables more functions than the Messages object.

Source table: OALR

 

 

Methods (^1)

add




.

Properties (^1)

AttachmentEntry

Sets or returns the identification key of the attachment file, as assigned by SAP Business One when adding an Attachment Entry to alert message.

(field name: AtcEntry).

MessageText

Sets or returns a memo type string that specifies the message text.

(field name: MsgData).

Length: 64,000 characters.

Priority

Sets or returns a valid value that determines the message priority.

0=low

1=Normal

2=High

recipients

recipients-object

subject

Sets or returns the message subject. with 50 Characters

 

Example

beasscript-logo-small

// Send Email from test to manager
// ===============================
declare vmessage=ue_api_sbo
vmessage=getbusinessobject=81
vmessage=messagetext=this is the contect of message
vmessage=subject=Message from test to manager
vmessage=recipients=add
vmessage=recipients=setcurrentline=0
vmessage=recipients=usercode=manager
vmessage=recipients=nameto=test
vmessage=recipients=sendinternal=1
vmessage=add
destroy vmessage