salesforce SOQL:查询以获取实体上的所有字段 [英] salesforce SOQL : query to fetch all the fields on the entity

查看:288
本文介绍了salesforce SOQL:查询以获取实体上的所有字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在浏览 SOQL 文档,但找不到查询来获取实体的所有字段数据,例如,帐户,例如

I was going through the SOQL documentation , but couldn't find query to fetch all the field data of an entity say , Account , like

select * from Account [ SQL syntax ]

SOQL中是否有类似上面的语法来获取account的所有数据,或者唯一的方法是列出所有字段(尽管有很多字段要查询)

Is there a syntax like the above in SOQL to fetch all the data of account , or the only way is to list all the fields ( though there are lot of fields to be queried )

推荐答案

您必须指定字段,如果您想构建动态的内容,describeSObject 调用会返回有关对象所有字段的元数据,因此您可以构建从中查询.

You have to specify the fields, if you want to build something dynamic the describeSObject call returns the metadata about all the fields for an object, so you can build the query from that.

这篇关于salesforce SOQL:查询以获取实体上的所有字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆