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 (Thisrole
should be other than thecustomer portal role
). - Create
Account
andContact
while running inadminUser
context i.e. enclose yourAccount
andContact
creation code withinsystem.runAs(adminUser)
. This is because, theOwner
of theAccount
should have arole
. - Create
Community User
asadminUser
i.e. after creatingAccount
andContact
, your code forCommunity User
creation should follow which should be withinsystem.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. |
Resolution |
Video guide to format the Date and Date Time data in a CSV fileHow to Format the 'Date' and 'Date Time' Data in a CSV File 'Date' field acceptable formats
'Date Time' field acceptable formats
'Time' field acceptable formats
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:
Your example data in your import spreadsheet must be one of these:
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:
Additional information about these formats
|