Skip to main content
Version: v6.5.0

Create Enterprise WeChat Object

Command Description

Create an enterprise WeChat object, which is required for all subsequent operations on enterprise WeChat

Command Prototype

WxWorkObject = WxWork.Create(corp_id, agent_id, agent_secret)

Command parameter

parametermandatorytypedefault valueInstructions
corp_idTruestring""On enterprise WeChat, each enterprise has a unique enterprise ID, which can be obtained in the enterprise WeChat management backend. For specific methods, please refer tohere
agent_idTruestring""On enterprise WeChat, each application has an application ID, which can be obtained in the enterprise WeChat management backend. For specific methods, please refer tohere
agent_secretTruestring""On enterprise WeChat, each application has an independent access key, which can be obtained in the enterprise WeChat management backend. For specific methods, please refer tohere

Return result

Return_obj, Assign the result of running the command to this variable.

Run instance

/********************************* Create WeChat Work Object ************************************
Command Prototype:
WxWorkObject = WxWork.Create(corp_id, agent_id, agent_secret)
Input Parameters:
corp_id -- Enterprise ID. Note: Each enterprise has a unique enterprise ID on WeChat Work. This information can be obtained from the WeChat Work management backend. For specific methods, please refer <a href="https://url-redirection.laiye.com/enterprise-im-wxwork">here</a>.
agent_id -- WeChat Work Application ID. Note: Each application has an application ID on WeChat Work. This information can be obtained from the WeChat Work management backend. For specific methods, please refer <a href="https://url-redirection.laiye.com/enterprise-im-wxwork">here</a>.
agent_secret -- Application access secret. Note: Each application has an independent access secret on WeChat Work. This information can be obtained from the WeChat Work management backend. For specific methods, please refer <a href="https://url-redirection.laiye.com/enterprise-im-wxwork">here</a>.
Output Parameters:
return_obj -- Variable to store the output of the function call.
Important Notes:
None
********************************************************************************/
Dim return_obj = ""
WxWorkObject = WxWork.Create("", "", "")
TracePrint(return_obj)