salesforce chatter 调查的相关内容
chatter_code
上述网址中创建最新活动FeedItem是在recipe6
//Adding a Text post 插入文本
FeedItem post = new FeedItem();
post.ParentId = oId; //eg. Opportunity id, custom object id..
post.Body = 'Enter post text here';
insert post;//Adding a Link post 插入链接
FeedItem post = new FeedItem();
post.ParentId = oId; //eg. Opportunity id, custom object id..
post.Body = 'Enter post text here';
post.LinkUrl = 'http://www.someurl.com';
insert post;//Adding a Content post 插入文件(上传附件)
FeedItem post = new FeedItem();
post.ParentId = oId; //eg. Opportunity id, custom object id..
post.Body = 'Enter post text here';
post.ContentData = base64EncodedFileData(注意类型-流);
post.ContentFileName = 'sample.pdf';
insert post;
当然上面只是举了最经常见的三个例子,其实FeeItem类型还有很多
FeeItem Api
介绍了FeedItem相关属性
The type of FeedItem:
- TrackedChange—a change or group of changes to a tracked field
- UserStatus—automatically generated when a user adds a post
- TextPost—a direct text entry on a feed
- LinkPost—a URL posting on a feed
- ContentPost—an uploaded file on a feed
- PollPost—a poll posted on a feed
- DashboardComponentSnapshot—a posting of a dashboard snapshot on a feed.
- ApprovalPost—automatically generated by a feed query on an approval item
- CollaborationGroupCreated—automatically generated post on a user’s feed when the user creates a public group
ActivityEvent—generated event when a user or the API adds a Task associated with a feed-enabled parent record (excluding email tasks on cases) or when a user or the API adds or updates a Task or Event associated with a case record (excluding email and call logging).
For a recurring Task with CaseFeed disabled, one event is generated for the series only. For a recurring Task with CaseFeed enabled, events are generated for the series and each occurrence.
- CaseCommentPost—generated event when a user adds a case comment for a case object
- EmailMessageEvent—generated event when an email related to a case object is sent or received
- CallLogPost—generated event when a user logs a call for a case through the user interface. This event is also generated by CTI calls.
- ChangeStatusPost—generated event when a user changes the status of a case
- AttachArticleEvent—generated event when a user attaches an article to a case
查找FeedItem 主键Id
List<FeedItem> flist = [SELECT ID,Title,Body, LinkUrl from FeedItem];
我搜索自己的feedItem内容,共搜索到六条
flist = (
FeedItem:{Body=null, Id=0D59000000IjFsxCAF},
FeedItem:{Body=4廷44, Id=0D59000000IjwxXCAR},
FeedItem:{Body=null, Id=0D59000000Ik0C6CAJ},
FeedItem:{Body=466666, Id=0D59000000JAQlyCAH},
FeedItem:{Body=Enter post text here, Id=0D59000000JCxK1CAL},
FeedItem:{Body=Enter post text here, Id=0D59000000JCxhtCAD, LinkUrl=http://www.someurl.com, Title=www.someurl.com}
)
为FeedItem添加评论
FeedComment fcomment = new FeedComment();
fcomment.FeedItemId = fId; //Id of the FeedItem on which you want to comment
fcomment.CommentBody = 'Enter your comment here';
insert fcomment;
http://www.salesforce.com/us/developer/docs/api/index_Left.htm#CSHID=sforce_api_objects_feeditem.htm|StartTopic=Content%2Fsforce_api_objects_feeditem.htm|SkinName=webhelp
salesforce chatter 调查的相关内容相关推荐
- B站回应视频监控被破解上传:下架相关内容 封禁账号
1月18日消息,昨日晚间,哔哩哔哩(B站)官方微博发布公告称,"今日接到用户举报,称疑似有人使用非法手段破解摄像头,上传视频监控画面至B站.我们第一时间组织排查,下架了相关内容." ...
- iOS 发布APP关于IDFA的相关内容
您的 App 正在使用广告标识符 (IDFA).您必须先提供关于 IDFA 的使用信息或将其从 App 中移除,然后再上传您的二进制文件. 如果出现下边这两张图,你就会感到蛋蛋的忧伤 还有这个 怎么解 ...
- golang实践LSM相关内容
LSM LSM(log-structured merge-tree)是一种分层,有序,面向磁盘的数据结构,其核心思想是充分了利用了,磁盘批量的顺序写要远比随机写性能高出很多,在计算机科学中,日志结构的 ...
- Assembly--及相关内容
Assembly--及相关内容 0.2672019.06.04 09:29:26字数 448阅读 88 De novo genome assembly Hybrid error correction ...
- Android开发环境——Eclipse ADT相关内容汇总
Android开发环境将分为SDK相关内容.Eclipse ADT相关内容.模拟器AVD相关内容.调试器DDMS相关内容.日志LogCat相关内容.连接驱动ADB相关内容.内存泄露检测工具MAT相关 ...
- 基于KNN的相关内容推荐
如果做网站的内容运营,相关内容推荐可以帮助用户更快地寻找和发现感兴趣的信息,从而提升网站内容浏览的流畅性,进而提升网站的价值转化.相关内容 推荐最常见的两块就是"关联推荐"和&qu ...
- 【SeeMusic】创建 SeeMusic 工程并编辑相关内容 ( 创建工程 | 导入 MIDI 文件 | 导入音频 | 导入视频 )
SeeMusic 系列文章目录 [SeeMusic]下载安装并注册 SeeMusic 软件 [SeeMusic]创建 SeeMusic 工程并编辑相关内容 ( 创建工程 | 导入 MIDI 文件 | ...
- Android开发环境——模拟器AVD相关内容汇总
Android开发环境将分为SDK相关内容.Eclipse ADT相关内容.模拟器AVD相关内容.调试器DDMS相关内容.日志LogCat相关内容.连接驱动ADB相关内容.内存泄露检测工具MAT相关内 ...
- DCMTK:OFpath和相关内容的测试程序
DCMTK:OFpath和相关内容的测试程序 OFpath和相关内容的测试程序 OFpath和相关内容的测试程序 #include "dcmtk/config/osconfig.h" ...
- android Wifi开发相关内容
今天,简单讲讲android里如何使用WifiManager. 之前,我看代码时,看到了wifi相关的代码,发现自己对于这个内容的使用还很不熟悉,所以在网上查找资料,最终解决了问题.这里记录一下. 移 ...
最新文章
- Flex精华摘要--使用AS脚本
- 压力测试后,BCH采用增加
- 分页数据的新展示方式---瀑布流
- [云炬创业管理笔记]第四章把握创业机会测试4
- 正则表达式与神经网络的深度融合
- HDU1850(Nim游戏)
- js遍历数组foreach_JavaScript forEach –如何在JS中遍历数组
- 高中选的美术将来能考计算机学校吗,北京中考美术考上美术高中以后上考大学一定要考美术专业的大学?好考美术高中...
- 常见Linux版本概览
- 基于MATLAB的幂级数求和与展开(Taylor和Fourier算法)
- 计算机表格制作培训教材,电脑制作表格教案设计
- ios 纯代码怎么适配ipad_iOS开发中iPhone和iPad的布局适配(工具篇)
- 分享个PS快速替换背景颜色的方法
- cpu功耗排行_笔记本低功耗cpu有哪些 低功耗笔记本cpu排行介绍【图文】
- 徐州php溪谷_ThinkPHP溪谷H5游戏平台系统V3.0完整版源码
- 搞编程选什么方向好?前端还是后端?阿里程序员和你聊聊就业心得
- [2021绿城杯] [Misc] 流量分析 + cobaltstrike 流量解密
- 二维数组malloc与free
- java发送chunked数据_如何从java servlet中的chunked响应中发送Http预告片/页脚?
- 90后创业者杨宝通:草根如何从零开始创业?
热门文章
- Whois查询结果中不同域名状态的含义
- [pip安装]There was a problem confirming the ssl certificate
- 亚马逊电商可以用阿里云服务器吗
- 文本文件编码 email编码
- laravel异常前后端独立返回 阿星小栈
- Linux查看mac地址
- Python seaborn 条形图
- HTML页面中条形码或二维码扫描枪的使用
- Python: 傅里叶级数
- You must SET PASSWORD before executing this statement的解决方法 详细出处参考:http://www.jb51.net/article/39187.