【发布时间】:2019-08-09 16:13:59
【问题描述】:
我正在尝试使用 Apex 创建多联系人事件。
我已经在临时组织的活动设置中启用了Allow Users to Relate Multiple Contacts to Tasks and Events。
我正在关注these 文档底部的指南和示例,但在推送到临时组织时我经常遇到错误:
// ...
event.setEventWhoIds(attendeeContactIds);
// ...
Method does not exist or incorrect signature: void setEventWhoIds(List<String>) from the type Event.
我也尝试直接写到该字段:
event.EventWhoIds = attendeeContactIds;
这样,我得到错误,该字段不可写。
attendeeContactIds 是代表联系人 ID 的字符串列表。
我会错过什么? ????????????♂️
【问题讨论】:
标签: salesforce apex