zoukankan      html  css  js  c++  java
  • Apex学习笔记

    2020/9/9     Salesforce是第一家将CRM引入云端的公司,它使公司可以从世界各地的任何设备(24/7)在线访问所有客户信息。

    一般在沙盒组织中撰写并修改我们的代码,然后将其部署到实际的生产环境中

    Apex是类Java语言,特点有:1、面向对象   2、完全在云端处理  3、强类型,变量使用之前必须提前声明   4、大小写不敏感

    还得好好学学Java!!!

    2020/9/12

    SOQL &  SOSL 负责数据的查询操作    DML和DataBase负责数据的增删改

    SOQL和SOSL的区别是: SOQL一次只能查询一个标准或自定义对象

                                              SOSL一次可以搜索查询所有对象

    *通配符在搜索词的中间或结尾匹配零个或多个字符。?通配符在搜索词的中间或结尾仅匹配一个字符

    查询时,若要查询的字段是通过变量传参传进来,那么应该以该种方式引用变量:

    List<List<sObject>> searchList = [FIND :str1 IN NAME FIELDS
    RETURNING Contact(FirstName,LastName,Department),Lead(FirstName,LastName,Email,Company)];

    触发器trigger:由事件触发,保证数据完整性,是个存储的过程,触发触发器的事件主要有:

    insert/update/delete/merge/upsert/undelete

    trigger.new中包含在插入或更新触发器中插入的所有记录

    trigger.old中提供了在触发update触发器之前的旧版本的对象数据(SObject),或是触发delete触发器后被删除的SObject

    trigger执行一些必要的操作,例如:1、每当insert or updata账号时,触发一个触发器为该账号添加一个相关的Opportunity

    又例如:2、The following trigger prevents the deletion of an account if it has related opportunities 

    Opportunity中包含Name,StageName,CloseDate,AccountId字段

    Salesforce支持的对象主要有:

    标准对象:常见的业务对象,例如:Account、Contact、Lead、Opportunity

    自定义对象:例如房地产公司需要的Property字段

    Important!!!!(这个问题还没有细看)

    Is Map Location not showing up in the actions menu even though you added the custom button to the page layout? There’s a quirk to how custom buttons interact on page layouts with actions.

    If you have overridden the default settings of the Salesforce Mobile and Lightning Experience Actions section of a page layout and customized it, the standard and custom buttons in the buttons section aren’t automatically included in the action menu on the page. You must add the buttons to the page layout as actions by dragging them from the Mobile & Lightning Actions category in the palette to the Salesforce Mobile and Lightning Experience Actions section.

     

    前端相关:

    Visualforce页面类似于标准网页,但包含访问,显示和更新组织数据的强大功能

  • 相关阅读:
    视觉三维重建中不同三角网格视角的选择
    最小二乘求解常数k使得kx=y(x,y为列向量)
    STL常用
    2D-2D:对极几何 基础矩阵F 本质矩阵E 单应矩阵H
    Ubuntu常用软件
    ubuntu linux 安装分区
    单向链表
    1.ssm web项目中的遇到的坑--自定义JQuery插件(slide menu)
    模板引擎freemarker的使用(二)
    模板引擎freemarker的使用(一)
  • 原文地址:https://www.cnblogs.com/GinaHan/p/13636988.html
Copyright © 2011-2022 走看看