ã¡ã¿ãã¼ã¿ãªã¬ã¼ã·ã§ã³ã·ãã使ã£ã¦ã¿ã
ã«ã¹ã¿ã ã¡ã¿ãã¼ã¿ã®ãã¡ã¿ãã¼ã¿ãªã¬ã¼ã·ã§ã³ã·ããããªããã®ããã£ã¦ããªãã¸ã§ã¯ãã®é¸æã¨ãã®ãã£ã¼ã«ããé¸æãããã¨ãã§ããã
ã§ãã©ã使ããã¨ããã¨
ã¡ã¿ãã¼ã¿ãªã¬ã¼ã·ã§ã³ã®å®ç¾©
- ã¾ãé©å½ã«ã«ã¹ã¿ã ãªãã¸ã§ã¯ããä½æãã¾ãã
- ã«ã¹ã¿ã ã¡ã¿ãã¼ã¿ãä½æãã¾ãã
- ã«ã¹ã¿ã ã¡ã¿ãã¼ã¿é
ç®ãä½æéå§ãã¾ãã
ã¾ãã¯ãã¡ã¿ãã¼ã¿ãªã¬ã¼ã·ã§ã³ã·ããããé¸æãã¾ãã
- ãªã¬ã¼ã·ã§ã³ã®ã¿ã¤ãããEntity Definitionãã使ç¨ãã¾ãã
æåã®ä¸ã¤ã¯ããããé¸ã¹ã¾ããã
- ã«ã¹ã¿ã ãã£ã¼ã«ã詳細ã追å ãã¾ããã¨è¨ã£ã¦ãããã§ã¯å称ã ãã§ããâ¦
- ãã®ã¾ã¾ä¿åãã¾ãã
ããã§åºæ¬è¨å®ã¯å®äºã§ãã
ãã®æç¹ã§ã¬ã³ã¼ããä½æãããã¨ããã¨ãæ¥ç¶ï¼relationï¼å ã®ãªãã¸ã§ã¯ãé¸æãã§ãã¾ãã
ããã¨ãã®ã¾ã¾ä¿åã§ããããã«ãªãã¾ãã
ãã£ã¼ã«ãã®æå®
ä»åº¦ã¯ãã®ãªãã¸ã§ã¯ãã«é¢é£ãã Metadata Relationship (é ç®)ãæå®ãã¾ãã
- ãã£ã¼ã«ãä½æãéå§ããMetadata Relationship
- ä»åº¦ã¯ Field Definition ã§å®ç¾©ãã¾ã
Controlling Field
é ç®ã§å ç¨ä½æãããEntity Definitionãã®é ç®ãæå®ãã¾ãã
- ããã¦ãã®ã¾ã¾ä¿åãã
ããããã追å ã§å
¥åãã¦ã¿ã¾ãããã
ããã¨ãTargetObject
ã§æå®ãããªãã¸ã§ã¯ãã®ãã£ã¼ã«ããé¸æã§ããããã«ãªãã¾ãã
Apex ããå©ç¨ãã
ä¸è¨ã SOQL ã§åç´ã«åå¾ãããã¨ããã¨*1
(TдT)ã¦ã´ã©ã¡ã¼ï¼ï¼
ãã®IDãç´æ¥URLã«çªã£è¾¼ãã§ã¢ã¯ã»ã¹ããã¨â¦è©²å½ãªãã¸ã§ã¯ãã® ObjectManager ã«ãªãã¤ã¬ã¯ãããã
ããã§ã¯ Apex ã§ä½¿ãããããªããâ¦ã¨æã£ã¦ããããããæ
å ±ãçºè¦ããã
ããã StackExchange ã ãï¼
ã¨ãããã¨ã§åãã£ã¬ã³ã¸
SELECT TargetObject__c, TargetObject__r.QualifiedApiName, TestField__c, TestField__r.QualifiedApiName FROM TestMetadata__mdt
ãã£ã¯ã¼ï¼
*1:SalesforceInspector ãå©ç¨ãå人çã«å©ç¨é »åº¦ãé«ãã