yihao学习笔记

  • Home

  • About

  • Tags

  • Archives

  • Search

Salesforce Apex基础与数据库

Posted on 2018-09-09 | Edited on 2019-06-23 | In crm | Comments:

Salesforce Apex基础与数据库

一、Apex 入门

……

数据类型

Apex Collections: List

Lists 里包含了一个排了序的 objects 集,它和 Java 里的 List 是一样的,是数组类数据结构。
下面的两个例子是同义的,即 colors 变量数组通过 List 语法声明。

1
List<String> colors = new List<String>();

以数组形式声明但赋值给 List 而不是 array。

1
String[] colors = new List<String>();

通过 List 声明通常更为简易,因为无需在一开始声明数组长度。List 语法可以在一开始声明元素,也可以在之后通过 add() 方法增添元素。

1
2
3
4
5
6
7
8
9
List<String> colors = new List<String>();
String[] colors = new List<String>();

// Create a list and add elements to it in one step
List<String> colors = new List<String> { 'red', 'green', 'blue' };
// Add elements to a list after it has been created
List<String> moreColors = new List<String>();
moreColors.add('orange');
moreColors.add('purple');

……

Apex Classes

……

Read more »

Salesforce 目录

Posted on 2018-09-08 | Edited on 2019-06-23 | In crm | Comments:

Salesforce各种概念、名词与发展历程

Salesforce一开始是SaaS的CRM软件,提供了一套高度自由化可定制的设置系统。
简单来讲就是网络版的web开发框架:早期借鉴了Java的技术栈思想

Salesforce数据库使用的是Oracle

Read more »

Salesforce CI/CD

Posted on 2018-08-28 | Edited on 2019-06-23 | In crm | Comments:

原文参考:https://trailhead.salesforce.com/trails/sfdx_get_started/modules/sfdx_travis_ci/units/sfdx_travis_ci_setup

使用Salesforce DX实现CI/CD:

Salesforce DX允许开发者使用一系列第三方工具,这意味着你可以使用任何你想用的CI或CD服务。本文将使用GitHub和Travis CI举例实现CI/CD。
另外,在此之前你需要在本机安装Salesforce CLI、Git,并注册了GitHub账号。

Read more »

在Visualforce中嵌入React应用

Posted on 2018-06-08 | Edited on 2019-06-23 | In crm | Comments:

原文参考:https://medium.com/@rajaraodv/developing-react-redux-apps-in-salesforce-s-visualforce-3ad7be560d1c
原文参考:https://sfdcnotes.github.io/2016/02/15/salesforce1-platform-guide/
原文参考:https://www.salesforce.com/video/304788/

Salesforce在设计之初时参考当时流行的MVC模式
Model:SObject (salesforce对象,比如Account、Contact等等)
View:Visualforce
Controller:Apex Code

Visualforce是服务器端模版语言,用来自定义用户桌面,其设计参考了当时JSP。而现在服务器端模版语言已经渐渐淘汰,因此是否能在Visualforce上使用React等新的前端框架会是一个有趣的探索。
在进入主题前讲一个题外话,也许是salesforce本身也认识到Visualforce技术已经老旧了,因此salesforce本身也推出了Lightning Components framework这一SPA前端框架作为他们的改进方案。

一个简单Visualforce页面:

1
2
3
4
5
6
7
8
<apex:page>
<html>
<head></head>
<body>
<h1>hello, world</h1>
</body>
</html>
</apex:page>

Read more »

使用AWS Lambda调用Google Analytics Report API

Posted on 2018-04-28 | Edited on 2019-06-23 | In cloud | Comments:

如果你需要使用AWS Lambda调用Google Analytics Report API并以API的形式expose的话,你还将需要集成AWS API Gateway。

Read more »
12…4
Yihao Ye

Yihao Ye

20 posts
4 categories
7 tags
RSS
GitHub E-Mail
Links
  • Trailhead
  • Auth0
© 2019 Yihao Ye
Powered by Hexo v3.8.0
|
Theme – NexT.Mist v7.0.0