# Fx.work/work

createTask:发任务:

Fx.work.createTask(<String title> , <String content> , <DateTime deadLine> , <Map<List> executeUsers> , <Map<List> atUsers>)

例子:

DateTime deadLine = DateTime.now + 1.days
Fx.work.createTask("hello", "world", deadLine, [users: ["1000"]], [users: ["1000"]])

executeUsers map keys : "users" 用户 ,"departments" 部门

atUsers map keys : "users" 用户 ,"departments" 部门

参数:
<String title>:标题
<String content>:内容
<DateTime deadLine> :完成时间
<Map<List> executeUsers>:执行人
<Map<List> atUsers>:抄送范围

createSchedule:发日程:

Fx.work.createSchedule( <String content> , <DateTime beginTime> , <DateTime endTime> , <boolean isFullDate> , <boolean needReceipt> , <List remindTimes> , <Map<List> atUsers>)

RemindTime类型枚举值:
RemindTime.BEGIN RemindTime.FIVE_MINUTES_AGO RemindTime.FIFTEEN_MINUTES_AGO RemindTime.THIRTY_MINUTES_AGO, RemindTime.ONE_HOURS_AGO RemindTime.TWO_HOURS_AGO 

atUsers map keys : "users" 用户 ,"departments" 部门

例子:
DateTime endTime = DateTime.now + 1.days
Fx.work.createSchedule("hello", DateTime.now(), endTime , false, false, [RemindTime.BEGIN()], [users: ["1000"]])

参数:
<String content>:内容
<DateTime beginTime>:开始时间
<DateTime endTime>:结束时间
<boolean isFullDate>:是否全天
<boolean needReceipt>:是否需要回执
<List remindTimes>:提醒时间
<Map<List> atUsers>:抄送范围

createSalesRecord:发销售记录

Fx.work.createSalesRecord( <String content> , <Map objects>, <Map<List> atUsers>)

objects map keys "object_api_name" 对象APIName ,  "id" 对象Id

atUsers  map keys : "users" 用户 ,"departments" 部门

例子: Fx.work.createSalesRecord("hello", [[object_api_name: "AccountObj", id: "c14e1e2bef8d494185ead3f843df6163"]], [users: ["1000"]]) 备注:不支持选销售记录类型

参数:
<String content>:内容
<Map objects>:
<Map<List> atUsers>:抄送范围

results matching ""

    No results matching ""