分类目录

链接

2019年六月
« 5月    
 12
3456789
10111213141516
17181920212223
24252627282930

近期文章

热门标签

博主推荐

Filter Picklist Values Based on Record Type in Lightning

Filter Picklist Values Based on Record Type in Lightning  October 3, 2018  Rajat Koradiya Filter Picklist Values Based on Record Type Retrieving a picklist value based on record type is possible in VF page using standard controller In lightning, Salesforce UI API supports a functionality to filter a picklist value based on record type based on this idea You can download the code from Here   Use Case:  I have picklist values based on Record Type defined as bel...

Salesforce 暂无评论 阅读(130)

How to Call Salesforce API from Lightning Component

You may have heard about that we can not make the Salesforce API Call directly from the lightning component. If you do make the callout from the lightning component then you will get the below error INVALID_SESSION_ID:This session is not valid for use with the API. For Example when you will execute the below code from the Developer Console then you will get the Valid Response 1 2 3 4 5 6 7 8 9 10 11 HTTP h = new HTTP(); HTTPRequest req = new HTTPRequest(); HttpRes...

Salesforce 暂无评论 阅读(84)

salesforce lightning icon

<lightning:card title="{!v.headerTitle}" iconName="standard:related_list" class="title"> <aura:set attribute="actions"> <lightning:button class="slds-float_right slds-m-bottom_xx-small slds-m-right_small" variant="brand" label="New Form Link" title="New Form Link" onclick="{!c.CreateNewFormLink}" /> <ui:inputSelect label="Filter By: " value="{!v.filterLob}" change="{!c.filterDataTable}"> <option value="--None--">--None--</option> <opt...

Salesforce 暂无评论 阅读(111)

apex highlight userDefineLang for notepad++

apex userDefineLang for notepad++ 下载: userDefineLang  

Salesforce 暂无评论 阅读(157)

详解 Salesforce 15 和 18 位的ID

在 Salesforce 中 Record (记录) ID 是非常重要的,它代表了一条唯一的数据,在做数据操作的时候是离不开 ID 的,这次给大家详细介绍一下 Record ID。 Record ID 的构成 Record ID 是一个 base-62 编码的字符串。ID 中的字符可以是 a-z, A-Z 和 0-9 中 62 个字符任意一个。正常情况下是 15 位,每个位置有不同意义的: 前 3 位: Key Prefix,它可以代表一个 Object,也就是说如果你拿到一个 ID,通过前三位就可以判断这条数据是存在哪个 Object 上的。 4-5 和 6 都是 Salesforce 保留值,可以判断这个 ID 属于...

Salesforce 暂无评论 阅读(179)

Salesforce Test class注意事项

在 Salesforce 中开发,Test Method 肯定是少不了的,因为在部署的时候 Production 是要求测试代码的整体覆盖率是不能小于 75% 的,而且 Trigger 是不能没有对应的测试代码的。测试代码的作用是什么,既然必须要写测试代码, 怎么才能让测试代码发挥它应该拥有的价值?这里给大家提供一些写测试代码的基本原则和注意的知识点。 4 Goals 1. Positive Behavior(测试正确行为) 写测试代码首先验证一下的正确逻辑,尽量保证把所有的业务逻辑的代码覆盖到。比如代码里有 try catch 的话,Postitive 就是需要先把 tr...

Salesforce 暂无评论 阅读(163)

salesforce Milestone clock is not running

0down voteaccepted I was able to find out what is the issue is. Actually all my milestone are currently using US Business hour and in that business hour there I have not given any time for the weekends, so today is Saturday and thats why milestones time is not showing. So issues at all.

Salesforce 暂无评论 阅读(168)

salesforce apex traced the number of query

System.debug('Current Query number:'+ Limits.getQueries())

Salesforce 暂无评论 阅读(211)

salesforce执行apex job的两种方法

方法一,立即执行: YourScheduleApexClass s=new YourScheduleApexClass(); s.excute(null) ; 方法二:定时执行 SchedulerClassName  sch = new SchedulerClassName(); String cronExpression = '0 30 8 1 * * ';   // 8:30am every 1st day of the month System.schedule('EVP Dashboard', cronExpression, sch);

Salesforce 暂无评论 阅读(175)

salesforce antscript无法拉取完整的profile

拉取其它,如object需要把obj列出来,如下: <?xml version="1.0" encoding="UTF-8"?> <Package xmlns="http://soap.sforce.com/2006/04/metadata">   <types>         <members>Api_GetCustomerInfo</members>          <name>ApexClass</name>     </types>      <types>         <members>Account</members>         <name>CustomObject</name>     </types>     <types>         <members>XXXProfile<...

Salesforce 暂无评论 阅读(220)