Class UpdateDraftBodyAction

UpdateDraftBodyAction

Represents an action that updates the email draft body.

Methods

MethodReturn typeBrief description
addUpdateContent(content, contentType)UpdateDraftBodyActionAdd update content of a UpdateDraftBodyAction.
setUpdateType(updateType)UpdateDraftBodyActionSet the UpdateDraftBodyType of this update action on the draft body.

Detailed documentation

addUpdateContent(content, contentType)

Add update content of a UpdateDraftBodyAction. The content type of the content is specified by ContentType.

Parameters

NameTypeDescription
contentStringThe content to insert to the email draft.
contentTypeContentTypeThe content type of the content to be inserted.

Return

UpdateDraftBodyAction — This object, for chaining.


setUpdateType(updateType)

Set the UpdateDraftBodyType of this update action on the draft body.

Parameters

NameTypeDescription
updateTypeUpdateDraftBodyTypeThe type of update to be performed on an email draft.

Return

UpdateDraftBodyAction — This object, for chaining.

发送以下问题的反馈:

此网页
Apps Script
Apps Script
需要帮助?请访问我们的支持页面