Questions tagged [describefieldresult]

is a class that contains methods for describing sObject fields.

Filter by
Sorted by
Tagged with
7
votes
1answer
1k views

Issue with GlobalDescribe Field Results and Managed Package

Situation: Managed Package Class is global class Field Named NS__Field_Name__c Running in subscriber org code: String fld = 'NS_Field_Name__c'; Map<String,sobjectField> flds = object__c....
2
votes
3answers
747 views

What does DescribeFieldResult.getDefaultValue actually return?

So in the documentation for the DescribeFieldResult.getDefaultValue method, it says: Returns the default value for this field There is a related method called getDefaultValueFormula whose ...
8
votes
2answers
4k views

How to list down all Standard/Custom Objects and ignore System(Internal) Objects

There's always a requirement to pull ALL standard and custom objects using describe call ignoring all system/internal objects. Is there a way for same? One of option is to reference ProcessInstance ...
12
votes
1answer
9k views

Get all Parent and child objects related to the current object

I have a string which contain the name of a sobject. Now I want to get all the objects related to this object. Also want to get which kind of relationship it have with these object.
7
votes
1answer
442 views

Schema.SobjectField Access Changed in API v34.0 (Summer '15)

While I was working on a Visualforce page which has some similar functionality to another page that has already been developed in the past into one of my other orgs, I decided to re-use the same code ...
3
votes
1answer
380 views

Describe call inconsistent in test class

In the Apex class below (executed in a client org), testA() passes while testB() fails. The failure is an assertion error from the ServiceLayer constructor. /* SF API 33 */ /* PKG version 1.55 */ ...
2
votes
1answer
38 views

Do standard lookups always follow: FieldName = RelationshipName + “Id”?

Can we say that all standard lookups/master-details/polymorphic fields follow a consistent naming convention across all standard objects? I'm talking about this pattern: field name = field ...