2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

参照関係のあるSOQLの書き方

Last updated at Posted at 2020-02-03

カスタムオブジェクト
どっちが親でどっちが子かというと、参照関係の項目を作った方が子 です。
Child-to-parent:子(ChildObj__c)から親(ParentObj__c)を参照キャプチャ.PNG

ParentObj__c で取れるのは Id のみ。Id 以外の項目を取る時は __c でなく __r にする。
Parent-to-child:親(ParentObj__c)から子(ChildObj__c)を参照
キャプチャ.PNG

workbench rest api の書き方
/services/data/vXX.0/query/?q=SELECT+JID__c+,+Name+,+LastModifiedById+,+(select+Name+,+ListAndFlow__c+,+activeTime__c+from+conditions__r)+FROM+ListAndFlow__c

原本:
https://dackdive.hateblo.jp/entry/2014/06/10/112629>

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?