分类

链接

2025 年 8 月
 123
45678910
11121314151617
18192021222324
25262728293031

近期文章

热门标签

新人福利,免费薅羊毛

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 暂无评论 阅读(582)

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 暂无评论 阅读(699)