# FxUI.objectApi.fetch_email_templates(apiName)

该方法允许您获取邮件模板列表。

# 参数

参数 说明 类型 可选值 默认值
apiName 业务对象apiName(不传默认查询全部对象) string

# 用法

该方法返回一个 Promise对象,示例如下:

FxUI.objectApi.fetch_email_templates('AccountObj').then((data) => {
    console.log(data);
    // todo what you want
}).catch(err => {
    console.log(err);
})

# 模板数据结构

list是获取到的邮件模板列表数据。

{
    "pageNumber": 1,
    "pageSize": 20,
    "pageCount": 1,
    "totalCount": 1,
    "list": [
        {
            "type": 0,
            "isDefault": true,
            "header": "",
            "footer": "",
            "waterMark": "{}",
            "isToWord": 0,
            "isPrintApproval": 0,
            "headMargin": 0,
            "footMargin": 0,
            "id": "5b51b0a0319d19b74dcb46e5",
            "tenantId": "74114",
            "appId": "crm-printtemplate",
            "templateId": "5cef94dfa5083d09dd957955",
            "objDescApiName": "AccountObj",
            "objDescApiText": "客户",
            "name": "客户打印模板",
            "version": 1,
            "creator": "系统",
            "modifier": "系统",
            "creatorId": "-10000",
            "modifierId": "1033",
            "createTime": 1532080288825,
            "modifyTime": 1572263703545
        }
    ]
}
lastUpdate: 2022-4-15 10:27:40