Tooling API exposes objects used in developer tooling that you can access through REST or SOAP, and works just like the Salesforce REST API and SOAP API.

learn more… | top users | synonyms (1)

2
votes
1answer
49 views

Difference between ApexTrigger and ApexTriggerMember

I am trying to understand how to manipulate triggers via the Rest API (turn them on and off). What is the difference between the "ApexTrigger" and "ApexTriggerMember" object? Does any one have any ...
0
votes
0answers
9 views

How do I find when a Custom Label was created or modified from API

How do I find when a Custom Label was created, modified, or who Created or Modified it from an API ? I have checked Partner WSDL, Metadata API and Tooling API but none of them give out this ...
2
votes
1answer
26 views

How to get formula field compile size from api

Is there a way to get the compile size of a formula field through the metadata api or the tooling api? I have found "calculatedFormula" on the metadata api and "formula" on the tooling api but ...
2
votes
2answers
40 views

Tooling API execute anonymous results

I am trying to run an execute anonymous statement using tooling API. I am running a very simple System.debug('test'); Now the issue is as this is a GET request, the response that I get is like ...
-2
votes
1answer
20 views

Tooling API giving error of resource not found

I am trying to do a simple code with Tooling API, where I am trying to execute anonymous one statement with tooling API. Sample request - HttpRequest req = new HttpRequest(); ...
0
votes
1answer
20 views

Delete fieldset using Tooling/Metadata API (JSforce)

Tried this using the following 2 snippets; both failed. Snippet 1 conn.tooling.sobject('FieldSet') .delete({ DeveloperName: fieldsetName }, function(err, meta) { if (err) ...
0
votes
1answer
12 views

Using the Tooling API to query a workflowalert with a fullname more than 80 characters fails with UNKNOWN_EXCEPTION

Summary Using the Tooling API to query a workflowalert with a fullname more than 80 characters will result in an error similar to the following: ERROR:- UNKNOWN_EXCEPTION: An unexpected error ...
6
votes
2answers
57 views

How to get the DE-Orgs Namespaceprefix? (NOT the Namespaceprefix from the scope of an object or class)

The are a lot of solutions to get the namespace of an specific object or class, e.g. ApexClass myClass = [ select NamespacePrefix from ApexClass where Name = 'SomeClassNameHere' ]; But ...
2
votes
0answers
37 views

Creating workflow through APEX tooling API

There is a very good article with working code available on below link, which shows how to create triggers dynamically from apex classes by using tooling API: ...
2
votes
1answer
48 views

Tooling API error: Object type not accessible (JSforce)

I have this very simple script on the JSforce script executor: var apexBody = "<apex:page standardController='Account'>Test</apex:page>"; conn.tooling.sobject('ApexPage').create({ ...
1
vote
1answer
29 views

Salesforce Tooling API for ValidationRule

I am trying to update ValidationRules via the tooling API via PATCH and the endpoint: /services/data/v33.0/tooling/sobjects/ValidationRule/{Id} Every time I try to update a field i get this error and ...
3
votes
1answer
34 views

Getting Salesforce Object Id

Is it possible to use the Salesforce API to get an object's internal salesforce id. For example this id appears in the URL for a custom object setup: ...
0
votes
1answer
25 views

User Fields on Tooling API

I'm trying to do a query using the Tooling API (using JavaScript) as follows: var query = 'SELECT+Id,+Name+FROM+User+WHERE+Name+LIKE+\'%25' + name + '%25\''; ftClient.query(query, function(success) { ...
1
vote
1answer
41 views

Tooling API - query Attachment

I'm using Salesforce Tooling API in my C# application. When I'm trying to run the query: var res = sforce.query("select id from Attachment where parentid = '" + id + "'"); I get the following ...
1
vote
3answers
76 views

What is the best tool for using metadata API in python?

We use Salesforce REST and Bulk APIs extensively and now we have reached a point where we have to use the metadata API. Our use case is pretty trivial. We only have to create a custom object using ...
1
vote
1answer
57 views

Cannot Access RecordType.DeveloperName Field as System Admin

I'm a System Admin in an org and today our Flow was throwing errors saying no such field RecordType.DeveloperName. I tried running a SOQL query using that field in Developer Console and I get same ...
2
votes
1answer
91 views

Error converting HttpResponse to Dom.Document

I am calling the Tooling API from Apex in order to find out if a Custom Field has been created. Here is my code: HttpRequest req = new HttpRequest(); req.setHeader('Authorization', ...
3
votes
2answers
76 views

Override View with URL

Is it possible, via the API or otherwise, to override the View button of an object with a URL (instead of a VF page)?
0
votes
0answers
43 views

Tooling API error: Object type not accessible

I have the following as my request for creating a new VF page via Tooling API: {"Name" : "TestPage", "MasterLabel" : "TestPage", "Markup" : "< apex:page standardController='Car__c'>< ...
0
votes
0answers
19 views

Querying Master Object From Child Object PHP Toolkit

I am a bit new to salesforce and coding. I have integrated my salesforce through php toolkit and is trying to update opportunity and account through a web form. Uptil now I am successful in updating ...
0
votes
0answers
20 views

Push Workflow Rule changes with Tooling API and Streaming API

Is it possible to create a push Streaming API for objects within the Tooling API? My organization keeps track of the workflows manually. They want to automate the process. I am trying to create a ...
2
votes
0answers
23 views

TraceFlag Tooling REST API

How to send a TaceFlag using the Tooling REST Api?I am looking for a good REST example how to setup Traceflag and get how to get Traceflag results back?
3
votes
0answers
99 views

ValidationRule queried via REST API returns Deleted objects VR too and that results in error with GACK?

UPDATE [15 Jul'15] : Salesforce support confirmed that this is indeed a bug and their Research & Development team is working on this case and the matter is under our observation. Here is ...
0
votes
1answer
26 views

How to Update Static resource using Tooling api in salesforce?

Httprequest req =new HttpRequest(); req.setEndpoint(URL.getSalesforceBaseUrl().toExternalForm()+'/services/data/v28.0/tooling/sobjects/staticresource/08190000000cgISAAY/'+'?_HttpMethod=PATCH'); ...
7
votes
3answers
163 views

Metadata+ToolingAPI access on CS14 extremly slow & No Support?

We are working on CS14. Starting last Friday we are suffering form a extreme performance loss on CS14. Loading and Saving Metadata via Tooling/Metadata-API is very slow. Operations which usually ...
0
votes
1answer
109 views

How to query Id of a field/Custom field from standard object using Tooling API in .net

How do I get the Id of the field on Standard object like Account, Opportunity & Custom Object and Custom Field Id using Tooling API in .net.
2
votes
0answers
45 views

Deploying a Profile Update via Tooling RESP API - INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY

I was wondering if anyway has ever been able to make updates to Profiles via the Tooling REST API? I have recently built an application which creates CustomFields via the API, and I would then like ...
6
votes
1answer
231 views

Lightning: is direct API access on the roadmap?

I'm programming developer tools and an IDE. Right now, my code is based on Visualforce and JavaScript. As described here, I would like to convert most of my API callouts form APEX to JavaScript. Also ...
3
votes
1answer
172 views

Is there a Javascript Wrapper Salesforce Metadata API?

I'm using Andrew Fawcett's legendary Apex Wrapper Salesforce Metadata API in several projects. It perfectly works and provides a new dimension of APEX programming. Now there are situations where it ...
5
votes
1answer
76 views

Standard field accessiblity inconsistent : feature or simply strange?

UPDATE: Thanks to @ca_peterson I could clarify the issue below and it all drills down to FLS. But even having identified FLS as the reason, the behavior is still odd and I have addressed it in this ...
4
votes
1answer
173 views

Hitting governor limit while retrieving custom labels

In the current functionality, we retrieve custom labels from the source organization. The labels are retrieved from salesforce into another Salesforce organization. However, when retrieving the labels ...
3
votes
1answer
39 views

Can I find the field that will be updated from a WorkflowRule

So I have two workflow rules that fire when an Opportunity is created/updated. These two workflows set the same variable to either true/false depending on which criteria is met. I'm looking at ...
1
vote
1answer
57 views

How to support inheritance with WSDL2Apex

I'm attempting to update the tooling api project (https://github.com/afawcett/apex-toolingapi) with a SOAP variant in addition to the REST api. The issue I'm currently having is supporting all the ...
2
votes
0answers
84 views

tooling API workflow alert update

i am trying to update workflow alert email template using tooling api. REST AND PATCH . JSON body is below {"Metadata":{"ccEmails":["test@gmail.com"], ...
1
vote
1answer
111 views

How to find Dependent Components for a Class/Page/Trigger using API (Tooling or Metadata API)?

We are trying to automate certail processes for which we need to find the dependent components for a Class/Page/Trigger. We understand that salesforce is providing dependent components using "Show ...
0
votes
1answer
51 views

Size of an attachment?

Is there any api in salesforce to find out the size of an attachment? I am creating package.XML in Salesforce and I would like to make sure that the size is less than 3 MB.
5
votes
1answer
79 views

Tooling API SymbolTable contains “private” visibility modifiers instead of “protected”

When I query SymbolTable using Tooling API there are not any protected modifiers at all! Every protected word is replaced with private. The field classBody shows all protected keywords as they are ...
1
vote
1answer
173 views

Invalid cross reference Id when I'm querying fullName of a CustomField using Tooling SOAP API

I'm trying to get a fullName field of a CustomObject in query QueryResult queryResult = toolingConnection.query("select TableEnumOrId, FullName, LastModifiedDate from CustomField " ); I have ...
1
vote
1answer
176 views

How to query Id of a field from standard object

How do I get the Id of the field on Standard object like Account, Opportunity from Apex? Tooling API helps in getting the Custom Object and Custom Field Id. Any idea?
1
vote
1answer
96 views

Tooling API to get the ID of the field

Does the Tooling API count against the Org limit? I have a scenario in which I need to create custom button on related list and by pass record type selection page and re-direct to appropriate Page ...
4
votes
1answer
305 views

difference between metadata and tooling API

What is the difference between metadata API and tooling API? When I read the documentation, they both appear the same to me from the metadata perspective. I would like to know how I can use it for ...
0
votes
0answers
29 views

Using tooling API to query the most recent objects changed?

Can I use the tooling API to query the metadata that has changed in given org in the last X amount of time? X could be 24 hours, one week,two weeks or one month.
1
vote
1answer
59 views

Calling ToolingAPI to save an AuraDefinition using PATCH via JavaScript possible?

I'm trying to save an AuraDefinition from within a native Visualforce app. Therefore I following @MartyC. suggestion here: Lightning ToolingAPI BETA Documentation As an unfortunate PATCH requests ...
3
votes
2answers
74 views

Patching ToolingAPI.cls for v31+: How to query for DeployDetails at ContainerAsyncRequest?

My original problem is described here: ToolingAPI.cls for Apex: How to get CompilerErrors at ContainerAsyncRequest in v31+? Now I have patched ToolingAPI.cls like this: // elf-patch public class ...
3
votes
1answer
53 views

ToolingAPI.cls for Apex: How to get CompilerErrors at ContainerAsyncRequest in v31+?

Im trying to patch ToolingAPI.cls in order to use it with API v32. I run it successfully for a couple of month now with v29/30, but due to changes to the API, I need to adapt some parts. Unfortunately ...
3
votes
1answer
78 views

Are there any plans to update ToolingAPI.cls for APEX to v32 in order to support Lightning Components?

Unlike MetadataAPI the ToolingAPI APEX class still refers to version 30. Please note this question is not about ToolingAPI itself, but about the APEX wrapper class project to make ToolingAPI available ...
3
votes
2answers
60 views

Lightning ToolingAPI BETA Documentation

Thanks to @DougChasman we have learned here that both ToolingAPI and MetadataAPI are fully supporting AuraDefinitionBundel and AuraDefinition right now as BETA and we can start to use them. Doug also ...
3
votes
1answer
203 views

Can I save a new Apex class using Tooling API in java?

Is it possible to create a new Apex class using Tooling SOAP API in java? When I'm trying to do that I get ApiFault exceptionCode=’INVALID_TYPE’ exceptionMessage=’This type of object is not ...
4
votes
3answers
230 views

Lightning access via ToolingAPI or MetadataAPI

I assume there is no official support in the APIs right now since Aura Components are in BETA. The choice of developer tools is a bit narrow (Developer Console and Sublime Lightning) and I want to add ...
4
votes
1answer
205 views

Trying to get SymbolTable of an Apex class and get null

I'm quering Apex classes using Tooling API QueryResult queryResult = toolingConnection.query("select Id, ApiVersion, Name, NamespacePrefix, SymbolTable, Body from ApexClass where NamespacePrefix = ...