Questions tagged [tooling-api]

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.

Filter by
Sorted by
Tagged with
1 vote
1 answer
760 views

Tooling API and Scheduled Batch Apex - How to access

Without storing a users credentials to salesforce how can one access the tooling API during a daily scheduled batch? Currently we are storing the users username and password in encrypted fields but ...
Eric's user avatar
  • 54k
2 votes
1 answer
238 views

How to set managed packaged versions for apex class with tooling api?

Trying to work on a mm bug (see Issues with managed package visibility?) with the tooling api which involves not sending over the managed package versions in the meta-xml files. I've read through ...
Ralph Callaway's user avatar
3 votes
1 answer
240 views

Edit existing Visualforce Page (ApexPage) using AndrewFawcett ToolingAPI package

In APEX there is great wrapper class to access the ToolingAPI written by Andrew Fawcett https://github.com/afawcett/apex-toolingapi There are a lot of examples including one which shows how to edit ...
Uwe Heim's user avatar
  • 28.3k
1 vote
1 answer
3k views

Getting error message: "sObject type 'CustomEntityDefinition' is not supported." when platform users call tooling API

A bit of background: I'm trying to emulate the behavior of the default "New" button w.r.t. automatically setting the parent object in the new object form. So, for instance, if I click the "new ...
Joshua Davies's user avatar
3 votes
2 answers
874 views

Call ToolingAPI or Metadata API in APEX without adding instance url into remote site settings

I need to upgrade the metadata in post install script, for instance, upgrade the picklist values for some fields, as those values are not updatable for the existing orgs. Not matter I tried to use ...
David's user avatar
  • 63
3 votes
1 answer
2k views

Get Debug Logs with specified log levels for Execute Anonyous via APEX ToolingAPI, SoapAPI or anyhow

A) via ToolingAPI I'm trying to execute apex-code via public ExecuteAnonymousResult executeAnonymousEncoded(String body) of the ToolingAPI.cls from within APEX. So far it works. But I was not able ...
Uwe Heim's user avatar
  • 28.3k
7 votes
2 answers
2k views

Update StaticResource via APEX ToolingAPI

I'm trying to update StaticResources from APEX. Currently I'm using async methods of apex-mdapi and it works good. On the other side I'm using apex-toolingapi to update ApexClasses which works even ...
Uwe Heim's user avatar
  • 28.3k
2 votes
1 answer
885 views

How to update metadata of customfield through ToolingAPI

I am able to do PATCH to developername by /services/data/v30.0/tooling/sobjects/CustomField/{FieldID} with body: { "developername":"abc" } however, it's failed when I tried to update any metadata ...
David's user avatar
  • 63
3 votes
0 answers
164 views

Tooling API Bug? or my bad? INVALID_FIELD_FOR_INSERT_UPDATE No access to entity 'anyobject__c'

Anyone seen this error before with the tooling api? All references to custom objects generate errors from references to custom objects. Only seems to apply to create calls, if I create it as an empty ...
Ralph Callaway's user avatar
1 vote
1 answer
1k views

Can the CustomFieldMetadata be retrieved with SOQL from the SOAP version of the Tooling API

I'm trying to use the SOAP version of the Winter 13 (v29.0) Tooling API to query the CustomField records and the associated CustomFieldMetadata Metadata field. The following query works without the ...
Daniel Ballinger's user avatar
4 votes
1 answer
1k views

Symbol Table References are Null - REST Call

I am trying to get the references for methods defined in Apex Class via Tooling API ( by REST Call ). Please find the information of the REST Call below ( using Workbench ) When i make the above REST ...
ForceDeveloper's user avatar
6 votes
1 answer
3k views

Passing Session Id using URL instead of HTTP headers

When invoking the Tooling API, is there a way to pass the Session Id using just URL parameters? I've seen a couple of Salesforce APIs that work when the Session Id is contained in a URL parameter: ...
Matt and Neil's user avatar
4 votes
1 answer
952 views

Tooling API in production org

I am already aware that you cannot directly create Apex classes in production orgs (have to use either the Force.com IDE or changesets). But if I include test cases can the Tooling API do it? Also ...
Mossi's user avatar
  • 3,906
6 votes
2 answers
916 views

How to see the result of ApexExecutionOverlayAction?

I can submit an ApexExecutionOverlayAction GET request using REST API and I get an ID in response. But how do I use the ID? How can I see the ApexExecutionOverlayResult for my ...
prashanthkr's user avatar
5 votes
1 answer
2k views

Deploy packages with MavensMate

It looks like the metadata MavensMate suggests deploying is based off of the current package.xml. The way I worked in the past was using a second package.xml, stored in some different directory, ...
Bob Roberts's user avatar
  • 2,755
9 votes
1 answer
232 views

AppExchange Code Review

I have created a managed package which i have submitted for code review after it passed the review through checkmarx code reviewer with no vulnerabilities. I have been using Tooling API in my managed ...
Soberano's user avatar
  • 1,232
2 votes
1 answer
400 views

Security Audit about Salesforce IDE (plugin for Sublime Text)

I've been using Sublime Text for pretty much everything related to my development needs. In terms of Salesforce, I know there's a plugin called MavensMate doing just the same as the Eclipse plugin, ...
jpmonette's user avatar
  • 4,400
12 votes
2 answers
8k views

Dynamically set remote site Setting in Apex

I have created a managed package that uses tooling API for updating class, trigger etc. Everything runs fine with all sorts of testing. I have created this package in my Developer org. I had to set ...
Soberano's user avatar
  • 1,232
14 votes
1 answer
4k views

How to limit API calls when using the Developer Console?

In a Winter '14 Developer Edition and Spring '14 Pre-release I have noticed that using the Developer Console uses API calls. It looks like this affects third party tools like MavensMate as well. The ...
Peter Knolle's user avatar
3 votes
1 answer
1k views

REST API to update throws INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY error!

I am trying to update a class using REST API which i created before using same REST API . public static void createClass() { // Note the escaping on newlines and quotes String classBody = '...
Soberano's user avatar
  • 1,232
2 votes
1 answer
948 views

UPDATE on CustomField using the SOAP Tooling API

I'm using the SOAP Tooling API to try and update a CustomField (posting to /services/Soap/T/29.0) The method signature is SaveResult[] update(sObject[] sObjects) - and CustomField extends sObject so ...
Matt and Neil's user avatar
8 votes
1 answer
2k views

Dynamic Apex Class

I am using Tooling API to create a class. Used the following link as reference to create a class and it works fine. But if i try to make it bit more dynamic by putting Apex Class Name in string and ...
ForceDeveloper's user avatar
4 votes
1 answer
3k views

Creating Visualforce Page Using Tooling API

i was trying create a visualforce page from Developer Console using Tooling API ( REST Service ). I checked the documentation it doesn't clarify about the parameters which needs to be present. ...
ForceDeveloper's user avatar
4 votes
1 answer
114 views

Get parameterized type of Lists when retrieving methods and return types from Tooling API

When issuing a query against the ApexClass with the Tooling API, I can get back return types and method parameters. However, they simply return "LIST" for lists. Is there a way to get back the ...
James Loghry's user avatar
  • 6,221
2 votes
0 answers
164 views

write tooling api classes to file

I am trying to write ApexClass (soap tooling API) to a file, I want to load it later on the ApexClass. I don’t know how to use the write function… Wrote some trials such as: javax.xml.namespace....
user5018's user avatar
9 votes
4 answers
8k views

Are profile and permission set metadata files getting all project objectPermissions?

I have a project in development. There about 45 new SObjects to the org but there is also a couple of new profiles for the org. The permissions on several existing SObjects have been specifically ...
ImJohnMDaniel's user avatar
4 votes
0 answers
329 views

How to Login to Salesforce via Tooling/Partner SOAP API with char[] instead of String?

I am working on a tool that makes use of the Tooling API and the Partner API. The Partner API is used to login as I have been unable to login successfully via the Tooling API. Another important thing ...
jsnbdly's user avatar
  • 133
21 votes
1 answer
3k views

Save/Deploy multiple files at once with MavensMate in Sublime Text 3

When editing multiple Apex classes using MavensMate in Sublime Text is it possible to save them all back to Salesforce in one MetadataContainer? I've got an abstract base class and a controller that ...
Daniel Ballinger's user avatar
4 votes
1 answer
2k views

Start ApexLog capture via the API

When the developer console is opened Salesforce will start capturing ApexLog records for the current user. After a period of time this stops occurring and the user needs to click the resume menu ...
Daniel Ballinger's user avatar
11 votes
1 answer
4k views

Issues with managed package visibility?

Question Is anyone experiencing issues with incorrect managed package apex class visibility? Suddenly unable to save a class and everything seems to be in order. What am I missing? Anyone run into ...
Ralph Callaway's user avatar
11 votes
2 answers
2k views

Is it possible to update custom field metadata via the tooling api?

I can successfully make a patch request to the tooling api to update a custom fields api name. However, if I include any of the field properties in the CustomFieldMetadata object I get an internal ...
Greg Grinberg's user avatar
14 votes
1 answer
1k views

What are the, if any, Tooling API Limits?

What are the, if any, Tooling API Limits? I can't find any info on it. I checked in the docs, but no word of it, unless i'm just missing them. Thanks
fourq's user avatar
  • 2,101
2 votes
2 answers
492 views

Tooling API – how to use LastSyncDate?

Based on the documentation LastSyncDate can be used as a safeguard to ensure that when someone else modified Apex Class in SFDC you do not accidentally overwrite those changes using your older local ...
gaiser's user avatar
  • 1,360
4 votes
2 answers
2k views

Force.com Web Service Connectors for Maven Repo

The Java jars generated from WSDLs and posted to Maven Repository have been awesome. Questions: Who maintains this repo? Could we also make public the web service connectors for the Apex and tooling ...
dlog's user avatar
  • 773
3 votes
2 answers
253 views

Can the Tooling API be used to determine which Apex class the current Apex class extends from?

Does anyone know of a way to use the Tooling API to determine which Apex class the current class extends from? I have looked at the SymbolTable but cannot see any indication that this information is ...
ImJohnMDaniel's user avatar
4 votes
1 answer
223 views

Does the Tooling API SymbolTable support custom interfaces?

I have been looking at the tooling api in versions 28.0 and 29.0. I have a couple of example classes that implement custom interfaces and also some that implement standard interfaces (i.e. Database....
ImJohnMDaniel's user avatar
5 votes
1 answer
1k views

Using MetadataContainer with ApexClassMember, ApexTrigger Member etc.

I come to know that to update Apex component it is required to use Metdatacontainer object with ApexClassMember/ApexTrigger member. In Force.com Tooling API Dev guide given all examples to use ...
Ashwani's user avatar
  • 22.6k
5 votes
2 answers
2k views

Force.com Tooling API issues

I just tried to implement Tooling API using REST API and did some basic callouts: create a Apex class creating a apex trigger editing apex class query a tooling api object delete a apex class out of ...
Ashwani's user avatar
  • 22.6k
14 votes
1 answer
12k views

Tooling API usage in salesforce Apex method

I am trying all my level best to know how the Tooling API is used. Can someone suggest or show me with a small example on how do I create a apexClass in a controller method. I have already generated ...
Soberano's user avatar
  • 1,232
7 votes
1 answer
1k views

Tooling API 'No Access to entity:TraceFlag'

The Tooling API brings a new object with it, that allows me to create Apex Logs programmatically. It's called TraceFlag. I tried to implement it in my na15 org (28.0) but i get a No access to ...
itsmebasti's user avatar
  • 6,359
7 votes
1 answer
514 views

When is the Force.com IDE going to be rewritten (using the tooling api)

Last year I attended the Dreamforce session: Next Generation Debugging with the Developer Console and Tooling API One of the most exciting things that was mentioned was that the Force.com IDE is ...
Daniel Blackhall's user avatar
5 votes
1 answer
582 views

Call tooling API via WSC or AXIS

Was somebody able to access the new tooling API via the force.com Webservice Connector (WSC) or Axis? The code generation seemed to work fine for both of these stacks and I was also able to login and ...
h9nry's user avatar
  • 1,091
19 votes
2 answers
9k views

How do I use the Tooling API to create a new Apex Trigger?

How do I use the Tooling API to create a new Apex Trigger (rather than update an existing one)? According to the documentation I need to specify the ContentEntityId as an existing Trigger Id. But in ...
Daniel Ballinger's user avatar
7 votes
2 answers
10k views

Access Tooling API via REST from Apex class

While still having this question open I found out about the new Tooling API and tried to access an ApexClass members via the Rest Explorer in the Workbench and could get it to run. How would I be ...
Robert Sösemann's user avatar
6 votes
2 answers
6k views

What is the URL for using the Tooling API via SOAP?

What is the URL for using the Tooling API via SOAP? If I already have a valid Session Id I can start using the API directly: E.g. Enterprise API: https://server-api.salesforce.com/services/Soap/c/27....
Daniel Ballinger's user avatar

1
5 6 7 8
9