get all available fields of SObject
Hi,
Anyone know how I can get all available fields in an Object in Salesforce. Thisngs I am trying to do is build out a component that user can select fileds and the model will populate with those fields only.
Anyone know how I can get all available fields in an Object in Salesforce. Thisngs I am trying to do is build out a component that user can select fileds and the model will populate with those fields only.
Tagged:
2
Categories
- 7.9K Questions
- 926 Ideas
- 220 Discussion Categories
- 178 General
- 9 Community Feedback
- 3 Community Info
- 18 Knowledge Base
Comments
The thing we are trying to do is, we are removing some of our users completely out of Salesforce and use only skuid. So trying to facilitate the option to create view that users normally create in Salesforce. Is it possible to do that in Skuid?
Thanks,
Tanzir
It would take quite a bit of work, but I think you could do what you're after with an approach that leverages the existing skuid page builder.
The skuid builder already has the ability to get a list of fields when given a model, and skuid shows us how to build custom components with a "field" property (see examples of all the available properties here: https://pastebin.com/0iC3xtJn).
I'm guessing that you could build a custom component (and component pack) that would pull in the skuid builder javascript resources into the runtime environment using the manifest files.
You can get a list of fields for an Object using the FieldDefinition object. I think there is even a checkbox field that will render true/false for whether the running user should see this field.
Zach McElrath put together a snippet that will save the sort order for a Skuid page. This will give you a starting point for how to manipulate a model on page load using some saved parameters.
https://community.skuid.com/skuid/topics/capture_sort_order_on_table_component
Thanks,
Bill
I'm not quite understanding the FieldDefinition object. How do I tell it what my object is in order to get the fields for it?
Here is page that I use with the Field Defintion object: Thanks,
Bill