Skip to main content
Version: v6.5.0

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

parametermandatorytypedefault valueInstructions
DingTalk_objTrueexpressionDingTalkObjectThe DingTalk object created using the DingTalk. Create command
titleTruestring""Specify a title for a markdown message
textTruestring""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)