CSV文件修正的原理(JS实现):

blob = new Blob(['\ufeff' + csvStr], {type: 'text/csv;charset=UTF-8'})

重点1:添加\ufeff BOM头

重点2:使用charset=UTF-8编码

Visualforce Page: $Label.Label_API_Name

Lightning Component Page {!$Label.c.Label_API_Name}

Apex Class String getLabelName = Label.Label_API_Name;

or directly System.Label.Label_API_Name

Organization-Wide Email Address   组织范围内的电子邮件地址 对应对象:

orgwideemailaddress
select id,displayname,address from orgwideemailaddress

创建partner user 在测试类中不要忘记加上PortalRole

  • Create adminUser with the role assigned to this user (This role should be other than the customer portal role).
  • Create Account and Contact while running in adminUser context i.e. enclose your Account and Contact creation code within system.runAs(adminUser). This is because, the Owner of the Account should have a role.
  • Create Community User as adminUser i.e. after creating Account and Contact, your code for Community User creation should follow which should be within system.runAs(adminUser). You can assign PortalRole for this user or can leave it blank, when this field is left blank and a Contact is assigned, the user is automatically assigned a User Role.

PortalRole

The role of the user in the Customer Portal (either Executive, Manager, User, or PersonAcount). Prior to API version 16.0, you could set this field to null and the system automatically included a portal role. In API version 16.0 and above, when you set this field to null, a portal role is not automatically created. When this field is null and a ContactId is provided, the user is assigned to the User role.

Format the 'Date' and 'Date Time' data in a CSV file

Knowledge Article Number 000325035
Description

Data Loader uses the SOAP API or BULK API depending on how it's configured.

Unless formatted properly for the API to accept them, users may have trouble importing changes to the 'Date,' 'Date Time,' and 'Time' data type fields when the corresponding values in the .csv file do not adhere to a specific formatting or correspond with the org's time zone settings.

Refer to Data Types Supported by Data Loader for all of the supported formats that are unique to Data Loader.

Resolution

Video guide to format the Date and Date Time data in a CSV file

How to Format the 'Date' and 'Date Time' Data in a CSV File

This is the correct formatting to use to avoid errors and frustration:

'Date' field acceptable formats

  • YYYY-MM-DD

  • YYYY-MM-DD hh:mm:ss

  • YYYY-MM-DD hh:mm:ss

  • YYYY-MM-DDThh:mm:ssZ

  • YYYY-MM-DDThh:mm:ss.sssZ

'Date Time' field acceptable formats

  • YYYY-MM-DD hh:mm:ss

  • YYYY-MM-DDThh:mm:ssZ

  • YYYY-MM-DDThh:mm:ss.sssZ

'Time' field acceptable formats

  • hh:mm:ss.sssZ (For example, 07:00:00.000Z)

Example scenarios

Scenario: If your org's time zone is set as "China/Taiwan time zone GMT+8":

 'Date' and Data Loader time zone is GMT+0, GMT, or blank 

Your example data in your import spreadsheet can be one of the following:

  • 2011-01-10

  • 2011-01-10 00:00:00

  • 2011-01-10T00:00:00Z

  • 2011-01-10T00:00:00.000Z

'Date' and Data Loader time zone is GMT+8

Your example data in your import spreadsheet must be one of these:

  • 2011-01-10 08:00:00

  • 2011-01-10T08:00:00Z

  • 2011-01-10T08:00:00.000Z

Note: If you set the hh:mm:ss to 00:00:00, the Import Date data in Salesforce will display the previous day ('2011-01-09' instead of '2011-01-10').

'Date Time' and Data Loader time zone is GMT+8

Your example data in your import spreadsheet must be one of these options in order to have the 'Date Time' display exactly what you imported in spreadsheet:

  • 2011-01-10 XX:XX:XX

  • 2011-01-10TXX:XX:XXZ

  • 2011-01-10TXX:XX:XX.XXXZ

Additional information about these format​s

  • XX:XX:XX or XX:XX:XX.XXX stands for the variable time you key in.

  • The "T" in these strings indicates the beginning of the time element.

  • "Z" is a special GMT designation.

  • This information is only applicable for the latest version of the Data Loader

SFDC Developer相关推荐

  1. 高能预警:SFDC安全技术大会将于11月19日在北京举办,岂安科技CEO罗启武受邀演讲

    SegmentFault 面向全国开发者的技术大会--SegmentFault Developer Conference 2016(以下简称 SFDC), 将于 11.19 和 12.10 先后在北京 ...

  2. 阿里聚安全受邀参加SFDC安全大会,分享互联网业务面临问题和安全创新实践

    现今,技术引领的商业变革已无缝渗透入我们的日常生活,「技术改变生活」的开发者们被推向了创新浪潮的顶端.国内知名的开发者技术社区 SegmentFault 至今已有四年多了,自技术问答开始,他们已经发展 ...

  3. 在salesforce中的visualforce中使用html的经验(web前端 - sfdc)

    本人于2015年(大二上学期)开始学习web前端,并于2016年3月15-10月16在外面工作7个月后回学校,凭借进入德勤salesforce优才班才了解到vf,之前在没有正式接触vf的时候,一直对于 ...

  4. PL/SQL Developer(解压版)连接64位的Oracle11g

    PL/SQL Developer(解压版)连接64位的Oracle11g 在Windows 64位系统上安装64位的Oracle数据库,但是没有对应的64位PL/SQL Developer,此时要用P ...

  5. Complete C# Unity Game Developer 2D

    你会学到什么 从头开始学习C#,一门强大的现代语言.没有编程经验是必要的. 在使用Unity游戏引擎方面变得优秀. 为游戏设计和游戏开发打下坚实的基础,这将有助于您构建自己的游戏. 了解面向对象编程在 ...

  6. PLSQL developer 连接不上64位Oracle 解决办法

    在64位Windows2003上安装Oracle后,用PLSQL developer去连接数据库出现报错: Could not load "--\bin\oci.dll" OCID ...

  7. 从Developer Removed From Sale 回到可下载状态的方法

    2019独角兽企业重金招聘Python工程师标准>>> 如果你不小心点了"Remove" 按钮,App的状态会变成"Developer Removed ...

  8. PL/SQL Developer远程访问Oracle数据库

    安装oracle对应的版本 ,在oracle的安装目录找到oracle\product\11.2.0\dbhome_1\NETWORK\ADMIN\tnsnames.ora这个文件添加上数据库访问的串 ...

  9. Web Developer中文版下载

    Web Developer是一款非常优秀的网页调试工具. Web Developer有IE和Firefox两个版本,主要功能表现在几个重要的方面: 对页面中的文本.图像.媒体文件进行控制,对网页所应用 ...

  10. PL/SQL Developer的调试存储过程

    学会使用PL/SQL Developer的调试功能,对于编写复杂的存储过程,包,funtion...非常有帮助,所以今晚学习了一下: (1)在sp里设置断点. (2)点击TEST. (3) Debug ...

最新文章

  1. 这谁顶得住?mybatis十八连环问!
  2. es分布式搜索引擎在几十亿数据量级的场景下如何优化查询性能
  3. 以太坊 p2p Server 原理及实现
  4. ABAP Submit 用法解析
  5. HBase shell 中的十六进制数值表示
  6. 200718C语言及C程序概念
  7. Oracle之批量生成数据
  8. Java虚拟机------JVM内存区域
  9. 用java在JPanel中建一个表格_如何使用Java在JPanel中显示JTable?
  10. C++配置OpenCv:一劳永逸
  11. 【WP影视主题】电影下载网站WordPress主题模板源码——电影下载网站模板
  12. jQuery中的siblings()
  13. 电脑选择一个文件(文档、视频等)右键移到打开方式卡死的解决办法
  14. CSS基础知识(一):选择器
  15. 关于python中 b'xxxx' 转化的问题
  16. halcon学习和实践(颜色筛选)
  17. matlab神经网络训练显示秩亏,MATLAB在测量数据处理中的应用.doc
  18. HTML/css/cavas打造的来自程序员的专属春节祝福【内含源码与运行方式】
  19. win10可以上网,但网络显示黄色叹号
  20. keyshot手机渲染教程_渲染基础教程,六个步骤教你KeyShot工作流程

热门文章

  1. 3D打印机赋予了海岸生态系统极大的恢复能力
  2. 【原创】将RGB图像转换到CMY空间
  3. 2016 黑客必备的Android应用都有哪些?
  4. 3dMAX+Vary 调节焦散效果爬坑
  5. 工作量评估--专家评估法实际操作心得
  6. Linux关闭swap
  7. MySQL数据库出现unknown error 1449错误原因及其解决办法
  8. IOS开发之工欲善其事必先利其器:Xcode
  9. wpf,silverlight,wp7,winform等学习资料整合(一)
  10. 国际上炒黄金平台有哪些