Read our developer blog to elevate your skills and connect with the larger Salesforce Developers community.
Workbench is a powerful, web-based suite of tools designed for administrators and developers to interact with Salesforce.com organizations via the Force.com APIs. Workbench includes robust support for the Force.com Partner, Bulk, Rest, Streaming, Metadata, and Apex APIs that allows users to describe, query, manipulate, and migrate both data and metadata in Salesforce.com organizations directly in
Apex でオブジェクト及び項目の情報を取得する ○ すべてのオブジェクト及び項目の情報を取得する Map<String, Schema.SObjectType> smap = Schema.getGlobalDescribe(); for (String objKey : smap.keySet()) { // Object System.debug('##### key: object API reference name: ' + objKey); Schema.SObjectType sobj = smap.get(objKey); Schema.DescribeSObjectResult sr = sobj.getDescribe(); System.debug('##### object is Custom: ' + sr.isCustom()); System.debug('
© Copyright 2000-2020 salesforce.com, inc. All rights reserved. Various trademarks held by their respective owners. Salesforce.com, inc. Salesforce Tower, 415 Mission Street, 3rd Floor, San Francisco, CA 94105, United States
SQLでは動的に列を指定して表を結合することができますが、SOQLでは動的に結合することはできません(そもそも結合ができない)。 SOQLではオブジェクト間に予めリレーションを設定しておくことにより、リレーションを辿ってのデータ参照が可能となります。 ということで、今日はSOQLでのリレーションの辿り方をご紹介。 子オブジェクトから親オブジェクトへのリレーションの辿り方 子オブジェクトから親オブジェクトへは、リレーション名を使用してリレーションを辿ります。 リレーション名は、参照/主従関係のカスタム項目名 + __r となります(標準項目のリレーション名は予め設定されています)。 SOQLのFrom句には必ず基点となるベースオブジェクトを指定しますが、ベースオブジェクトから最大5段階まで親のリレーションを辿ることができます。 ●親リレーションを辿るサンプル Select c.Name, a
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く