Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 102

An sObject represents an object, such as an Account or Campaign. An sObject is the base object for all objects in Apex.

2 votes

sObject type 'MetadataComponentDependency' is not supported

It is my understanding that custom objects and fields are already supported by the dependency API. Based the the title of your question, ensure you are using the Tooling API to run the SOQL query and …
Daniel Ballinger's user avatar
0 votes

'json Not a Valid Enumeration for type' Error When Retrieving Standard sObjects with Intelli...

After raising this as a bug with Salesforce there is know a known issue around the problems that v46 introduced when the Real-Time Event Monitoring Beta is enabled. Known Issue W-6222075: DescribeSOb …
Daniel Ballinger's user avatar
0 votes
Accepted

LoginType field shows length 1 but retrieves length greater than 1

I've confirmed your findings. There appears to be something wrong with the AuthSession.LoginType metadata. It is listed as a picklist, but has no picklistValues defined and a length of 1. Compare it …
Daniel Ballinger's user avatar
0 votes

Enterprise WSDL maps objects to different types in different organizations

UPDATE: This has been checked against other Summer 15 orgs. It was found to not be related to the Summer 15 release. I'll leave this answer here for reference. For the links you provided: https:/ …
Daniel Ballinger's user avatar
25 votes
Accepted

Generic SObject update pattern

Once you have the sObjectType you should be able to construct the sObject instance using the sObjectType.newSObject(ID Id) method. … > sObjectsToUpdate = new List<SObject>(); for (Id idToUpdate : idsToUpdate.keySet()) { SObject o1 = idToUpdate.getSObjectType().newSObject(idToUpdate); // Set the Name field dynamically o1 …
Daniel Ballinger's user avatar
10 votes
Accepted

Name field of Group sObject is Not Nillable but returns null

As per the documentation, Group.Name is required. Name Type: string Properties: Create, Filter, Group, Sort, Update Description: Required. Name of the group. Corresponds to Label on the user interfac …
Daniel Ballinger's user avatar
3 votes
Accepted

setType & setField methods not available in SObject - Apex SOAP API

Because the Partner API is loosely typed you need to set the sObject type (setType) and use a generic method to set the field values (setField). … Then the sObject class should be from the com.sforce.soap.partner.sobject.wsc namespace. …
Daniel Ballinger's user avatar
1 vote

SOAP API Request with body larger than 16 Kilobytes results in Timeout Exception

I just tried creating a single Note via the Partner API with a body that was 18,856 bytes. Took less than one second. This example is using G4S, which is a C# wrapper around the Partner API. [Te …
Daniel Ballinger's user avatar
1 vote
Accepted

How can I dynamically transverse dynamically SOQL'd SObject fields in Apex?

Revise the loop to: while (fieldPath.contains('.')) { List<String> pathPartList = fieldPath.split ('[.]', 2); currentSObject = (SObject) currentSObject.getSobject(pathPartList[ …
Daniel Ballinger's user avatar
1 vote
Accepted

Cannot set value on checkbox using sObject via Partner API using Java

My Java is a bit rusty, but I think a boolean such as true is a primitive type. Based on the error message: Incompatible type for method. Can't convert boolean to java.lang.Object. it appears …
Daniel Ballinger's user avatar
1 vote

Determine sobject Type From Id Using SOAP API

You can do this more efficiently now with the SOAP versions of the Tooling API via EntityDefinition. There is a KeyPrefix field you can search on to find the specific match. E.g. Select Id,Qualified …
Daniel Ballinger's user avatar
0 votes

Runtime error when Converting sObject to Account (typecasting)

I tried running the SOAP based Account query against my DEV org. To do this I imported the Enterprise WSDL as a Web Reference, rather than the newer default of a Service Reference. After importing …
Daniel Ballinger's user avatar