简体   繁体   English

提取soql中关系查找字段的实际值

[英]Extract the real value of the relationship lookup field in soql

I'm a newbie to soql relationship queries. 我是关系查询的新手。 I've been trying to to get this working but not sure if this is even possible. 我一直在尝试使此工作正常,但不确定是否可行。

Select Id, Name, CustomObject__r.name From Account where customobject__c != null

Gives me a result that has a column of 'customobject__c', but which I have to click on to see the real value. 给我一个具有“ customobject__c”列的结果,但是我必须单击该列以查看实际值。 I want to see the real value in the table, so that I can extract it to a csv. 我想在表中看到实际值,以便可以将其提取到csv中。 CustomObject is a lookup field in Account. CustomObject是“帐户”中的查找字段。

Is this possible? 这可能吗? Thanks. 谢谢。

You need a better SOQL editor. 您需要一个更好的SOQL编辑器。 What are you using at the moment? 您现在在用什么?

Data Loader (officially supported tool) should give you these full relationship "path names" when you export data but it's a bit too clunky to be used on daily basis. 导出数据时,Data Loader(官方支持的工具)应为您提供这些完整的关系“路径名”,但它太笨重,无法每天使用。 You'd be designing your queries in one tool and pasting them to DL... 您可以使用一种工具设计查询,然后将其粘贴到DL ...

I'm a big fan of RealForceExplorer ;) See How to add comments in SOQL for some hints and pick your favorite editor. 我是RealForceExplorer的忠实支持者;)请参阅如何在SOQL中添加注释以获取一些提示并选择您喜欢的编辑器。

RFE示例

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM