salesForce技术培训 笔记

以下的业务熟悉

1.如何创建对象、字段;
2.维护字段信息如选项、Label等;

模块功能: 保存并创建
模块功能: 新建字段
模块功能: 开始布局
拖动顺寻
模块功能:记录类型
场景操作界面显示 分配布局设置
字段名称 标签就是描述
类型名称其实就是英文的字段名称
模块功能:页面布局的分配
 组件权限分配



以上是对象创建的大致内容


模块功能: 视图设置

创建==》选项卡
样式的选择  这个是让导航显示

管理==》翻译==》
模块功能: 公司简档案

模块功能:  报表  新建报表==》 

模块功能: 仪表板进行报表类型的选择



模块功能:权限的设置
复杂的权限设置
对象权限 自定义的权限 模版的权限

模块功能: 组织范围内的控制
多个权限角色 使用交叉的权限,有一个group权限
模块功能: 权限小组
小组
当前角色和他的下属
读写状态的设置
字段的权限操作


模块功能:  审批流程
新建工作流程的规则
业务机会
任务
满足条件的时候  就进行数据的更新
触发时间  触发日期或者其他的规则
其实就是一个触发器  触发事件

模块功能: 现有的操作 
? ==》 在业务的流程过程中对数据进行更改
批准过程 对操作的权限进行编辑  哪一个业务满足了进行什么样的操作
设置审批的顺序,一个一个流程往上走

以上是审批流程过程中的设置  对审批流程的一些细节进行操作 迁移 条件 

模块功能: 流

模块功能: 数据管理   下载插件安装  
功能演示: 用于对数据库的增删改查
 

设置》语言
用户管理
模块功能:  新建用户 对公司线下用户进行管理
创建
 模块功能:  新建对象 进行选择 数据类型 一个一个字段的新建

模块功能: apex类中有数据
新建类
新建好后去列表  
可以进行测试  developerconsoles

模块功能:测试类 的写法
模块功能: 触发器的写法
trigger after和before

模块功能: 表里面看的对象 的字段查询大小写是区分的
模块功能:  select 里面查询, 但是不显示,但是可以打印

模块功能: 公式的的字段 不能用触发器修改

模块功能: for循环里面不能写select 
可以用list优先保存下来
模块功能: 不能用查询
模块功能: 数据格式 外键是本表的 __C 不用表连接,直接适用 product__r.name就有数据的
例子:无
模块功能: 语法 :就是外面的变量

模块功能: 自动抛出异常
trigger orderInsert on order__c (before insert) {
    List<order__c> orders_c = trigger.new;
   orders_c[0].addError('不能新建..............') ;
}

模块功能: 都在开发的选项里面

 

一下是操作案例

// apex的测试类
public class CurrencyConverted
{
    //转化为默认单位数值(人民币)
    public static Decimal Converted(Decimal value,String CurrencyIsoCode)
    {
        Decimal  result;
        for(CurrencyType ct:[select IsoCode,ConversionRate from CurrencyType])
        {
            if(CurrencyIsoCode==ct.IsoCode)
            {
               result= value/ct.ConversionRate ;
            }
        }
       return  result;
    
    }
    //转化为其他单位数值()
    public static Decimal ConvertedToOther(Decimal value,String CurrencyIsoCode)
    {
        Decimal  result;
        for(CurrencyType ct:[select IsoCode,ConversionRate from CurrencyType])
        {
            if(CurrencyIsoCode==ct.IsoCode)
            {
               result= value*ct.ConversionRate ;
            }
        }
       return  result;
    
    }

}



// 控制台打印的案例

for(CurrencyType ct:[select IsoCode,ConversionRate from CurrencyType])
{
    system.debug('test:' + ct);
}

// 触发器
// 自动抛出异常
trigger orderInsert on order__c (before insert) {
    List<order__c> orders_c = trigger.new;
   orders_c[0].addError('不能新建..............') ;
}

// 导入数据的时候  数据是一条条插入的

但是  进触发器的时候是一批一批进去的 
// 
// salseforce开发文档
https://help.salesforce.com/articleView?id=code_view_class.htm&type=5

// 批量插入数据
可以用批量的 insert list.values();

// 插入数据的案例 或者例子

无
后面补上
// 自定义按钮
{!REQUIRESCRIPT("/soap/ajax/30.0/connection.js")} 
{!REQUIRESCRIPT("/soap/ajax/30.0/apex.js")} 

var ProductId = '{!product__c.Id}';
var callback = { 
onSuccess: function(e){
alert(e);
window.location.reload();
} 
, onFailure: function(error){alert("error:" + error);} 
}; 

sforce.apex.execute("ProductOpen", "OnButton", {ProId:ProductId}, callback);
global class ProductOpen{

    webservice static string OnButton(Id ProId){
	}
}
注意:button的方法必须是静态方法
// vf开头的都是 报表页面的

//  接口
重新获取就是刷新的。
// 获取方式不同 token不一样

接口通过不同组合的数据 获取token 不同的key或者方式获取的权限是一样的
// 传入参数

/ 创建连接器
在创建==》应用程序  连接器=》api和full权限
==》管理=》》安全策略==》控制ip解除
// 获取token地址
@:
https://login.salesforce.com/services/oauth2/token
@:
https://test.salesforce.com/services/oauth2/token
// 写接口就是写一个类 用特定的注解

接口数据请求的格式
格式的类型差不多自己封装自己写  一般后台差不多用string接收然后进行处理。
// 英文文档的地址
https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/intro_understanding_username_password_oauth_flow.htm

  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
☆ 资源说明:☆ [Packt Publishing] Salesforce CRM 权威管理手册 第2版 英文版 [Packt Publishing] Salesforce CRM The Definitive Admin Handbook 2nd Edition E Book ☆ 图书概要:☆ A comprehensive guide for the setup configuration and customization of Salesforce CRM Overview Updated for Spring "13 this book covers best practice administration principles real world experience and critical design considerations for setting up and customizing Salesforce CRM Analyze data within Salesforce by using reports dashboards custom reports and report builder A step by step guide offering clear guidance for the customization and administration of the Salesforce CRM application Connect users with people and share business information using Salesforce Chatter Learn to extend the functionality of the Salesforce CRM application through the use of the platform and technologies such as Visualforce Improve the user experience of users in Salesforce CRM by providing additional functionality using external applications from the AppExchange ☆ 出版信息:☆ [作者信息] Paul Goodey [出版机构] Packt Publishing [出版日期] 2013年07月24日 [图书页数] 426页 [图书语言] 英语 [图书格式] PDF 格式">☆ 资源说明:☆ [Packt Publishing] Salesforce CRM 权威管理手册 第2版 英文版 [Packt Publishing] Salesforce CRM The Definitive Admin Handbook 2nd Edition E Book ☆ 图书概要:☆ A comprehensive guide for the setup configuration and customization of Salesforce CRM Ove [更多]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值