11
04/18
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...