Salesforce点点滴滴

20200219

  • Setup -> Administration Setup -> Data Management -> Data Integration Rules>Geocodes for Account Billing Address
 SELECT Id, Name, RecordTypeId, BillingStreet, BillingCity
 , BillingState, BillingPostalCode, BillingCountry
 , BillingStateCode, BillingCountryCode
 , BillingLatitude, BillingLongitude, BillingGeocodeAccuracy
FROM Account 
WHERE BillingGeocodeAccuracy!=null 
Order by BillingCountryCode,BillingStateCode desc

Österreich-AT-Austria
Großbritannien-GB-United Kingdom

  • 导入Account Team即可同步更新Account Share

  • 导入Opportunity Team即可同步更新Opportunity Share

  • 注意!!!dataloader取不到toLabel,workbench可以取到.

  • report type的使用

  • custom setting不支持picklist,custom metadata type支持picklist

  • format(stringToFormat, formattingArguments)
    public static String format(String stringToFormat, List formattingArguments)
    eg:
    String template = ‘{0} was last updated {1}’;
    List parameters = new List {‘Universal Containers’,DateTime.newInstance(2018, 11, 15) };
    String formatted = String.format(template, parameters);
    System.debug (‘Newly formatted string is:’ + formatted);

  • 知识体系是球形,而不是接近于T形

  • bug有可能来自salesforce,如发邮件状态Messaging.SendEmailResult为成功,但是无知原因导致未收到邮件。
    邮件服务器原因?不开源,较小众。

  • 我有一个不成熟的猜测,veeva通过代码有些用户发送的邮件收不到可能是由于没有用setTemplateId[滑稽][滑稽][滑稽]

  • 生成PDF 的时候遇到报错了
    1.如果用pdfPage.getContentAsPDF()只会报Internal Salesforce.com Error,
    pdfPage.getContent()就能catch error.
    *** Error: common.apex.runtime.impl.ExecutionException: SObject row was retrieved via SOQL
    without querying the requested field: Asset.VehicleVariant__c

2.pdf不加id是能够打开pdf的,加了之后后台也会报错的,所以应该优先看pdf是否正确,不一定需要走一遍流程。
后台也会报错的without querying the requested field: Asset.VehicleVariant__c

  • 和生产进行比对,严谨起见
  • 如果lightning页面打开速度太慢,用workbench查数据更快

20200227

  • Custom Setting and Custom Object 的后缀都是__c,导致同名报错 is already in use,这时感觉_mdt是多么的友善
  • Report filter 可以用 TODAY
  • Metadata delete,then change set will delete this resource.

20200228

  • file和document的区别:lightning不支持document
  • file有contentVersion,contentDocument,contentWorkspace,主对象是content;而document则是document和folder

20200303

  • Tooling API
  • Process Automation Settings> Deploy processes and flows as active.
    You must opt in to deploy active processes and flows&test coverage as setted.
    Sandbox可以看到 FlowTestCoverage吗?
    Use Tooling API >checked,就可以查询到FlowTestCoverage。
  • Get the names of all active autolaunched flows and processes tha

你可能感兴趣的:(Salesforce)