The tag has no wiki summary.

learn more… | top users | synonyms

2
votes
0answers
32 views

Why is KnowledgeArticleVersion not in Schema.getGlobalDescribe()?

It's a bit inconvenient that this returns null: system.debug( Schema.getGlobalDescribe().get('KnowledgeArticleVersion') ); While this does not: system.debug( ...
5
votes
1answer
56 views

Is there a Class.forName() equivalent for Apex

I'm looking to dynamically instantiate a class by its name. How can I do that in Apex? I thought about a factory method with a series of if-else statements, but am not satisfied with that as it isn't ...
11
votes
1answer
108 views

Does anybody have a good way of mapping a key prefix to an object type?

I want to be able to reliably take an ID and map it to the appropriate object type so I can query the object in question. Before now I've tried using the global decsribe info, looping over the ...
0
votes
1answer
30 views

How to get fields in deeper object tree levels with reflection

I'm constructing a dynamic query to get some fields from the database. I use a root object for that purpose and branch out from it. My_Custom_Object__c -> Account__r.Id So if I want to get an ...
1
vote
0answers
30 views

Salesforce API via the Python beatbox module

I am new to accessing Salesforce data via the API. I am using the beatbox library for Python. My code: import beatbox sf = beatbox.PythonClient() sf.login('my user name', 'my password + security ...
3
votes
2answers
57 views

How to find only those Schema.SObjectType types that are visible in the Schema Builder

I can find a map of all String -> Schema.SObjectType types by invoking Schema.getGlobalDescribe(). However, that includes a lot of object types I'm not interested in (like casecomment, ...
1
vote
1answer
30 views

Can't find ForecastingItem sObject in DescribeGlobalResult

We recently upgraded to salesforce API v27 (from 21). Documentation says that there are some new objects added between v21 and v27. ForecastingItem object is one such object. But when I get all the ...
1
vote
1answer
58 views

is it possible to do Describesobject for multiple sobjects via rest api?

Im trying to describe all the sobjects in my organization and fetch some information from each of them. When I use the partner wsdl, I can give something like this in c# DescribeGlobalResult dgr = ...
1
vote
1answer
55 views

Access the Related List Label for a Lookup relationship

I've searched high and low, and I can't seem to figure out the Apex syntax I need to use to access the Related List Label for a Lookup relationship. It shows up in the objectTranslation XML as ...
4
votes
1answer
67 views

How to get list of All Objects enabled with Activities?

Is there anyway we can find all Objects which have Activities enabled, in APEX?
6
votes
1answer
149 views

Field Sets & Dynamic DML & Describing Fields Included in Field Set

I am attempting to write generic code which will use a fieldset, allowing for dynamic creation of a query. This bit is documented well enough in dynamic DML examples from SFDC. In addition to the ...
5
votes
1answer
48 views

Can we describe all the page names in salesforce

We need to get all custom page names into the select box. Is there any way that we can describe all pages like objects
2
votes
1answer
110 views

Using describesObject to prevent null pointer exception whenever fields aren't populated in creating new Event

I'm writing a trigger to create a new Event on update of Opportunity. There are some required fields and others are optional in the form that the user submits. I'm trying to determine a good way to ...
9
votes
1answer
91 views

Can an Object Definition's ID be obtained programmatically?

I've noticed that SF related lists are anchored (#) by a concatenation of the current record's Id, an underscore, the Id of the related list's object definition, and then "_target" (e.g. ...
1
vote
0answers
136 views

Invalid sObject type 'DataDotComEntitySetting'

We have Data.com, namespace jigsaw_clean, v 2.16.2 installed and I am encountering an sObject type error when I try to do a simple DML statement in a unit test script. The test method instantiates a ...
2
votes
2answers
287 views

How to get Id of a object

Is there any way to find out the Id of an object,object may be custom or native like if I have a custom object i.e Test__c and when I write some query to get the Id then Id must be return in this ...
4
votes
2answers
218 views

Finding if which users have a record type available to them using SOQL

I would like to be able to execute a SOQL query that will allow me to see which users have access to a certain record type for a certain object. For example, if I have a case record type called Phone ...
0
votes
1answer
95 views

Creating sobject using if i know object api name in string

I have an sObject which I know it's api name (without namespace prefix). How can I create a reference to it?
3
votes
2answers
218 views

Setting Type of Event or Task via SOAP/REST API

I am looking at Object Reference for Event and Task sObjects and seeing that both have Type and Subject. I wanted to use Type as one of meeting, call, email and Subject as event/task title. But, if I ...
8
votes
4answers
884 views

What is an easy (and fast) way to find a object named based on a parentid?

I have an app which is fired from a trigger on FeedItem and FeedComment. I can easily grab the posting user, date, parentid and type. However I am finding it difficult to rapidly determine the object ...
3
votes
3answers
201 views

Getting LastModifiedDate of Admin changes

Let's say you have a details page of a Contact. I would like to be able to track changes that were made to Contact, such as field name changes, field type changes, etc. I assumed that there ...