Create a markdown text message
Command Description
Create a markdown text message that can be sent to employees or in groups in the future
Command Prototype
MessageObject = DingTalk.CreateMarkdownMessage(DingTalk_obj, title, text)
Command parameter
parameter | mandatory | type | default value | Instructions |
---|---|---|---|---|
DingTalk_obj | True | expression | DingTalkObject | The DingTalk object created using the DingTalk. Create command |
title | True | string | "" | Specify a title for a markdown message |
text | True | string | "" | Specify a message body in markdown format, with a maximum of 5000 characters |
Return result
Return_array, Assign the result of running the command to this variable.
Run instance
/********************************* Create Markdown Text Message ******************************
Command Prototype:
MessageObject = DingTalk.CreateMarkdownMessage(DingTalk_obj, title, text)
Input Parameters:
DingTalk_obj -- DingTalk object. Note: DingTalk object created using the DingTalk.Create command.
title -- Title. Note: Specify a title for the markdown message.
text -- Body. Note: Specify the body of the markdown formatted message, maximum 5000 characters.
Output Parameters:
return_array -- Variable to store the output of the function call.
Important Notes:
None
********************************************************************************/
Dim return_array = ""
MessageObject = DingTalk.CreateMarkdownMessage(DingTalkObject, "", "")
TracePrint(return_array)