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)

3
votes
1answer
31 views

Get List of Tabs which are visible to particular profile

We are modifying our project UI from scratch, and for that we are creating a new bootstrap NAVBAR. Salesforce Tabs are great and are profile based. What we want is feature of boostrap and feasibility ...
2
votes
1answer
33 views

Is this possible to use tooling api for deploying ApexClass in production?

I am experimenting with tooling api and it is possible to create apex classes, triggers using tooling api. As name "tooling" suggests that it is used for developing IDEs. I was wondering can we ...
1
vote
1answer
63 views

Dynamically creating a trigger

I'm looking to add functionality to my managed package that would dynamically create a trigger based on user inputs. I've seen some conflicting answers about whether a trigger can be created using the ...
-1
votes
1answer
34 views

Need to capture the return value of global class using tooling api

I am calling global function defined in my salesforce org using the tooling api /services/data/v35.0/tooling/executeAnonymous/?anonymousBody= in python and that global class is actually returning a ...
0
votes
0answers
21 views

Need list of function defined in global class [duplicate]

We have global class in our managed package, if we go to setup -> "Apex Class" -> global class this will list me all the function signature of the global class and it will be listed in a table. Is ...
0
votes
0answers
41 views

Deleting the trigger through apex code

I want to delete the apex trigger using code.I used tooling API to create a trigger dynamically through apex code... Now I want to delete the trigger on click of one button in code itself, but not ...
0
votes
1answer
35 views

Can not create custom field by Tooling API

I'm trying to create custom field by tooling api, but i got the error when i invoked create method. <?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelope ...
0
votes
0answers
19 views

Versioning difference between Metadata and Tooling

I face some issues with using of Tooling API that I did not see before. For instance if I update local copy from git and Force.com -> Work Online option is set, eclipse deploy local copy and override ...
2
votes
1answer
45 views

Use tooling API deploy path when possible

I have just notice that there is a check-box "Use tooling API deploy path when possible" in Eclipse Force.com project settings. See the screenshot: Can not find any documentation regarding this ...
0
votes
1answer
44 views

How to get salesforce standart objects using API

I'm trying to get all salesforce system objects such as Set, List, System and their methods. I used tooling api, namely SymbolTable class to get methods and variables of specified classes, but i can't ...
0
votes
1answer
18 views

ConnectionException while trying to query SymbolTable

While trying to query SymbolTable from ApexClassMember I recieve ConnectionException. ToolingConnection con = ...;//get connection here String query = "SELECT FullName, SymbolTable FROM ...
0
votes
0answers
40 views

Error while trying to generate tooling.jar from wsdl

I'm trying to generate tooling.jar from wsdl with strongly typed enums, but recieve some errors. When I generate tooling.jar without strongly typed enums, jar compiles successfuly. Maybe it is a ...
0
votes
1answer
49 views

MavensMate Firewall issues

I am behind a very strict firewall at work and I am moving from Eclipse to MavensMate (+Sublime). Eclipse can both send and receive metadata from Salesforce fine, but MavensMate is not making it ...
1
vote
1answer
57 views

How to update Description of custom object through API

I want to update Description field which appears under Custom Object Definition of a custom object via REST call. I referred Tooling and Metadata API documentation, but could not figure out a way do ...
2
votes
1answer
46 views

Creating Apex Class in SOAP Tooling API Using MetadataContainer

It's fairly easy to create an ApexClass in the SOAP Tooling API: ConnectorConfig partnerConfig = new ConnectorConfig(); partnerConfig.setManualLogin(true); PartnerConnection partnerConnection = ...
0
votes
0answers
40 views

Unit Tests not running

I'm trying to run unit test through tooling api, but nothing happens. ToolingConnection conn = ...; RunTestsRequest runTestsRequest = new RunTestsRequest(); runTestsRequest.setClasses(new String[] ...
9
votes
1answer
102 views

Winter 16 issue? Tooling API queries not working from Triggers, Visualforce

This looks like a Winter 16 issue, but would appreciate any other thoughts. Queries of tooling api objects (such a FieldDefinition) return no results when run in a trigger or a VF page, but they do ...
2
votes
1answer
36 views

Do SOQL queries of Tooling API objects count against governor limits?

The "system catalog" objects of the Tooling API (EntityDefinition, FieldDefinition, etc) provide a lightweight alternative to describe() calls, for example: // get a list of fields for an sObject ...
0
votes
2answers
63 views

How to get ID of a custom field in apex [duplicate]

I have a requirement to get the ID of a custom field in apex . When we navigate to Setup-->Create-->Object--> Click on Object --> Click on field .In field detail page url we can find field Id ...
2
votes
1answer
49 views

Is there a way to query sandbox configuration info? (e.g. Location, sandbox name, etc)

I would like to be able to query the Sandbox configuration data. For example, if you go to the "Sandboxes" link in the setup of your production org, I want to be able to query that info (Name, Type, ...
2
votes
0answers
41 views

SandboxInfo tooling api

Hi I was wondering if anyone has started to use the new winter 16 and the API to refresh sandboxes. In the winter 16 tooling API, it says there is a new object called SandboxInfo, but if i use ...
1
vote
2answers
77 views

Cannot get apex code coverage from my Java app via SOAP Tooling API

Running code like the following throws exception: query = "SELECT Coverage FROM ApexCodeCoverageAggregate WHERE ApexClassOrTriggerId ='" + id + "'"; QueryResult q = ...
3
votes
2answers
78 views

Possible to create a new sObject with Tooling API REST interface?

By my reading of the docs, it should be possible to create a new SObject by POSTing to /tooling/SObjects/EntityDefinition, but I haven't made it work. Here's an example (the result of some ...
-1
votes
1answer
53 views

How to create triggers and classes by php into salesforce

Can We create triggers and classes by php into salesforce. Can anyone please provide the appropriate guideline for this.Any code base guidance would really helpful?
3
votes
1answer
60 views

Tooling API: ScopeId on TraceFlag doesn't work as expected/documented

If I create a TraceFlag with ScopeId = null and TracedEntityId = id of my trigger on contact Object {contactTrigger}--> ApexLogs are not generated each time a contact is created or updated. Note: I ...
0
votes
2answers
52 views

Help needed on Metadata API or Tooling API

Has anyone used Metadata API or Tooling API to bulk update Workflow, Validation Rule etc? I am trying to play with these 2 API using SOAP UI but not sure if that's feasible. Any guidance will be ...
3
votes
2answers
77 views

Describe call to sobjects with Tooling API fails

I am trying to make a describe call to CustomObject however I get no response back. The URL for the call is: Note : I am describing entity "CustomObject" (Similar to CustomTabs) - it is not a ...
0
votes
1answer
41 views

Tooling API - unable to figure out how create method is invoked

I am trying to understand tooling API - SOAP and was trying to create a simple Java class which uses tooling wsdl file to create Apex class. I borrowed the snippet from ...
2
votes
1answer
61 views

Tooling API query unknown exception

While these queries work: select Name from StandardAction where EntityDefinition.QualifiedApiName = 'Account' select Name from StandardAction where EntityDefinition.QualifiedApiName = 'Asset' these ...
1
vote
2answers
47 views

Running test via Ant does not seem to store coverage

I've been banging my head on this issue for a while now and I'm throwing my hands up and asking for help. When I run all tests in my org (either via the Run All Tests button or running them all in ...
2
votes
1answer
78 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
36 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
50 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
276 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
54 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
82 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
46 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
3answers
99 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
63 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: ...
3
votes
1answer
140 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
83 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
41 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
37 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
88 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
288 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
206 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
345 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
149 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
78 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
40 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 ...