![](https://img-blog.csdnimg.cn/20191104133409985.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
Salesforce
文章平均质量分 77
Ng_666
这个作者很懒,什么都没留下…
展开
-
Test.startTest() and Test.stopTest()
太长不读版: 简而言之,使用Test.startTest() and Test.stopTest()的目的有两条: 一条是规避系统的Governor Limits (start和stop之间的所有DML操作和主体代码是两个context) 另一条是能够测试异步函数的执行(保证stop之后的代码在执行之前,start和stop包裹的异步代码已经执行完毕)官方文档的解释:startTest()Marks the point in your test cod...原创 2021-03-16 18:08:16 · 1000 阅读 · 0 评论 -
SF踩坑集锦
SF很高大上,但是做久了还是会踩出一些坑,本文总结了日常工作中遇到的一些让自己哇哦的时刻。 当然不一定真坑,只是个人记录。关于Phone数据类型的字段 :#接受吧#: Phone数据类型‘竟然’可以接受字符串的输入。一个令人困惑的地方是,在salesforce的官方文档中,其实已经明确的指出了说:This data type accepts 15-digit strings and removes non-digit characters但是事实上当你在Phone数据类型的字段中输入英文原创 2020-12-04 10:22:52 · 500 阅读 · 0 评论 -
SF - Reports & Dashboard Limitation
Report Limitations:User can create a dashboard only from the matrix and summary reports.A maximum of 2,000 rows will be displayed in a report. To view all the rows, export the report to Excel, or u...原创 2020-04-03 14:22:25 · 269 阅读 · 0 评论 -
SF -关于权限控制的小结
SF系统对于权限的控制非常的灵活,有很多功能都可以进行访问权限的设置。但是SF系统的总体思想是,‘循序渐进的漏斗式控制’。对于对象层面的控制 - Object Level Access,ProfilesPermission SetsUse Profiles provide the baseline access.Use Permission Sets grant more access...原创 2020-03-24 17:04:31 · 676 阅读 · 0 评论 -
SF - LWC学习笔记1
###1. 本地安装Salesforce CLI (Command Line Interface):1-1. CLI安装下载地址传送门:macOS ,Windows 64-bit1-2. CLI可以做什么:Aggregate all the tools you need to develop with and perform commandsagainst your Salesforc...原创 2020-01-16 17:13:14 · 366 阅读 · 0 评论 -
SF - SOQL Best Practice (To Be Continued)
1.SOQL中的创建日期格式:SELECT Id, Name from xxx WHERE CreatedDate > 2019-01-01T00:00:00Z2.Workbench默认不可以写关联父级对象的SOQL语句需要在workbench的Setting中设定。路径: Workbench > setting > 勾选Allows SOQL Parent Relati...原创 2020-01-16 14:28:57 · 163 阅读 · 0 评论 -
SF - Difference Between Trigger.New and Trigger.old
Trigger.New: Trigger.new returns List of new records which are trying to insert into Database. This is available in Before Insert, Before Update, After Insert, After Update Triggers and undelete Trig...原创 2019-12-09 18:08:33 · 206 阅读 · 0 评论 -
SF - Use of Custom setting
Reference:https://blog.jeffdouglas.com/2010/01/07/using-list-custom-settings-in-salesforce-com/原创 2019-11-04 13:47:59 · 338 阅读 · 0 评论 -
SF - 审批过程中需要编辑Record页面的解决方案
在日常工作中遇到这个问题:创建报价的时候,某个字段(比如,结算的客户不能确定),原创 2019-09-02 16:15:19 · 259 阅读 · 1 评论 -
SF - 自定义Login的页面
每次登陆salesforce的时候,总是看到CRM#No.1之类的图片,总觉得缺少些什么。偶然看到有的公司会自定义化自己的Login页面。遂研究了一下setup>My Domain前提是先自定义自己公司login页面的域名。参见trailhead:https://trailhead.salesforce.com/en/content/learn/modules/identit...原创 2019-07-05 12:33:51 · 606 阅读 · 0 评论 -
SF - 前台JsButton直接调用Apex类
创建的Apex类应该是global, 方法应该是webservice global class EnableButton { webservice static String enableButtonBG(Id customId,Id accId) { // ...原创 2019-07-05 10:25:29 · 295 阅读 · 0 评论 -
SF - 复制对象以及下挂的相关列表思路(Deep Clone)
概述:工作中遇到销售需要复制销售订单以及该订单下的产品的需求。然鹅,Salesforce自带的复制只能复制订单的主体信息。解决思路:1. 通过JS Button获取需要复制的订单记录的Id以及带参跳转VF页面进行下一步操作window.open('/apex/deepCloneOrder?orderId={!Object__c.Id}')2. 获取当前订单记录的必要信息,并一一赋值给新的...原创 2019-07-04 18:25:33 · 487 阅读 · 0 评论 -
SF - 传参实现动态报表(URL hack)
业务场景:想要动态的看到一个对象下的Related List中产品的明细,可以通过页面中挂载原创 2019-07-08 10:31:26 · 246 阅读 · 0 评论 -
Global Picklists Set: Define Globally, Use Locally(全局的选项列表使用)
Global Picklists: Define Globally, Use LocallyImagine you have to store information about t-shirt sizes on multiple entities: Accounts, Users, Custom Objects, etc. And tomorrow, your company decides ...翻译 2019-04-04 09:48:12 · 300 阅读 · 0 评论 -
SF - 字段和数据库的Mapping关系
在使用JitterBit工具把数据库表中的数据同步到salesforce平台的过程中。经常会遇到字段类型的不匹配。下表整理出了常用的字段类型的对应关系。原创 2019-04-26 11:08:50 · 664 阅读 · 0 评论 -
with sharing Vs without sharing(转)
with sharing Vs without sharing学习目标1,了解with sharing和without sharing的作用和区别2,什么时候使用with sharing和without sharing对于新手来说(大神可忽视),在写一个Apex类的时候,工具会自动帮我们写成public with sharing class helloWord{},可能新手会忽略这个...转载 2019-05-22 18:12:26 · 326 阅读 · 0 评论 -
SF - JitterBit使用全解(Step By Step)
什么是JitterBit?Jitterbit 是一款开源的数据集成工具, 用户可以使用Jitterbit 来集成不同的应用, 不同的databases, 以及不同的数据来源.官网地址: https://www.jitterbit.com/如何使用JitterBit 同步数据概述: 可以通过jitterbit工具进行数据的 query, upsert, insert, update, d...原创 2019-04-26 11:42:41 · 1326 阅读 · 2 评论