function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
Metadata APIにて、リストビューの設定内容を取得したいと考えております。
その場合のMetadata APIにてObjectのMetadataを取得する方法を教えていただけないでしょうか。
SOAPでのRequest、もしくは、どのようにやっているのでしょうか。
APEX:
HttpRequest req = new HttpRequest();
req.setHeader('Authorization','Bearer '+UserInfo.getSessionId());
endpoint = 'https://ap.salesforce.com/services/data/v29.0/sobjects/Account/'; //取引先の場合
req.setEndpoint(endpoint);
req.setMethod('GET');
Http http = new Http();
HTTPResponse res = http.send(req);
String responseString = res.getBody();
Map<String,Object> objMeta = (Map<String,Object>)JSON.deserializeUntyped(responseString);
system.debug('Account's metadata : ' + objMeta);
※リモートサイトの設定に、「https://ap.salesforce.com」の追加が必要です。
参照:https://www.salesforce.com/us/developer/docs/api_rest/