分类目录

链接

2018年四月
« 3月    
 1
2345678
9101112131415
16171819202122
23242526272829
30  

近期文章

热门标签

博主推荐

salesforce开发利器:metaforce下载

谷歌app下载地址:https://chrome.google.com/webstore/detail/metaforce/hhnkaakhlhngcdckdiogpkjihnmgodep 本地下载:Metaforce 3.1.2.5_0  (本人从谷歌下载后,上传到了自己的博客供大家下载) 先看下效果图:  

Salesforce 暂无评论 阅读(14)

salesforce rest api test class

上一篇文章(salesforce rest api demo)我们写到salesforce如何写rest api,这篇我们将写如何写test class @isTest(SeeAllData=true) public class Api_user_profileTest {     static testMethod void Api_user_profileTest()     {         system.debug('start...');         Test.startTest();         String ReturnCode = '';         RestContext.request = new RestRequest();         RestContext.response = new RestResponse();         RestContext.request.requestURI = '/services/apexrest/user/p...

Salesforce 暂无评论 阅读(10)

salesforce rest api demo

// //api getPersonBasicInformation //by bruce he @RestResource(urlMapping='/user/profile/*')   global with sharing class Api_user_profile{                 @HttpGet       global static void getPersonBasicInformation() {                    RestResponse res = RestContext.response;            res.addHeader('Content-Type', 'application/json');                  //return result obj         PersonBasicInformation model = new PersonBasicInformation();                  try{       ...

Salesforce 暂无评论 阅读(10)

C#/.NET请求salesforce restful api示例

先在salesforce里写一个restful api: @RestResource(urlMapping='/user/*')   global with sharing class Api_user_profile{              @HttpGet       global static String getPersonBasicInformation() {           List<Account> accList = DataBase.query('SELECT id,name FROM Account limit ' + Integer.valueOf(Math.floor(Math.random() * 10 + 1)));           return JSON.serialize(accList);       } } 再在c#/.net里调用salesforce restful api: using System; using System.Collec...

Salesforce 暂无评论 阅读(16)

Salseforce Ant Migration Tool

Ant Migration Tool 什么是Ant Migration Tool,Ant Migration Tool是一个手动(代码)发布你的APP到saleforce的工具。 为什么要用这个ant mig tool呢,salesforce也可以在线发布呢,目的就是,项目多了以后,命令更方便。   安装 1.安装JDK 2.安装 Apache Ant, version 1.6 or newer. 3.设置环境变量,JAVA的不说了,要设置ant的, a.增加ANT_HOME=D:\Program Files\apache-ant-1.10.2 b.在PATH下增加:;%ANT_HOME%/bin; 4.使用ant -version检查是否成功 测试例子 1 .在你的 Apache Ant 目标下, 解压,进入...

Salesforce 暂无评论 阅读(19)

eclipse调用salseforce soap api

内容参考: https://resources.docs.salesforce.com/202/latest/en-us/sfdc/pdf/salesforce_developer_environment_tipsheet.pdf https://www.cnblogs.com/zero-zyq/p/6077773.html 具体步骤: 1.下载Force.com Web Service Connector 下载链接为http://mvnrepository.com/artifact/com.force.api/force-wsc 2.下载开发的WSDL文件 Setup->Build->API,这里有很多可以选择的WSDL,企业级WSDL,合作伙伴,元信息等。此处选择企业级WSDL,选择以后详情页右键另存为MyProject.wsdl,名字随便起 不同WSDL区别:https:...

Salesforce 暂无评论 阅读(18)

Lightning Components Demo

A component that provides a concrete type-specific input component implementation based on the data to which it is bound. Represents an input field that corresponds to a field on a Salesforce object. This component respects the attributes of the associated field. For example, if the component is a number field with 2 decimal places, then the default input value contains the same number of decimal places. It loads the input field according to the field type. If the compone...

Salesforce 暂无评论 阅读(16)

lightning app:

要求:Share Lightning Out Apps with Non-Authenticated Users lightning app:报错 XMLHttpRequest cannot load https://XXXXX.lightning.force.com/c/XXXXXXXX.app?aura.format=JSON&aura.formatAdapter=LIGHTNING_OUT. Redirect from 'https://XXXXX.lightning.force.com/c/XXXXXX.app?aura.format=JSON&aura.formatAdapter=LIGHTNING_OUT' to 'https://XXXXXX.my.salesforce.com/visualforce/session?url=https%3A%2F%2FXXXXX.lightning.force.com%2Fc%2FXXXXXXXX.app%3Faura.format%3DJSON%26aura.fo...

Salesforce 暂无评论 阅读(20)

找不到Lightning Component Tabs

参考地址:https://help.salesforce.com/articleView?err=1&id=dev_tabdef.htm&type=5 Lightning Component Tabs Lightning component tabs make Lightning components available in the Salesforce mobile app (via the navigation list) or in Lightning Experience. Lightning components aren’t supported in Salesforce Classic. Note To expose Lightning components via Lightning component tabs, you must enable and deploy My Domain.       大意就是, 1.lightning不支持Sal...

Salesforce 暂无评论 阅读(36)

salesforce REST services demo

@RestResource(urlMapping='/Cases/*')   global with sharing class CaseManager {       @HttpGet       global static Case getCaseById() {           RestRequest req = RestContext.request;           String caseId = req.requestURI.substring(req.requestURI.lastIndexOf('/')+1);           Case result = [SELECT CaseNumber, Subject, Status, Origin, Priority                          FROM Case                          WHERE Id = :caseId];           return result;       }       /*   H...

Salesforce 暂无评论 阅读(32)