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
21
votes
1answer
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 ...
20
votes
1answer
5k 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 ...
17
votes
2answers
7k 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 ...
15
votes
2answers
345 views

Salesforce Packaging Bug with Lightning Components? (Warning: very strange!)

Since years I'm using Metadata and Tooling Apex classes to connect with those APIs (based on Andrew Fawcetts work here https://github.com/afawcett/apex-toolingapi). Today I'm encountering a very ...
14
votes
2answers
3k 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 ...
14
votes
1answer
3k 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 ...
14
votes
1answer
716 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
14
votes
0answers
293 views

Using the Tooling API to create trigger, getting Error No such column 'Email' on entity 'User'

I'm using the Tooling API to dynamically create an Apex Trigger. The trigger itself consists of one line, calling a method in a Util class. Creating this trigger by hand works fine. When I try to ...
12
votes
2answers
7k views

Cannot save in DevConsole or Force IDE due to “unfinished save request” - How to resolve?

Since the IDE and DevConsole was updated to use the Tooling API is sometimes run into situation where I cannot do a Save on a class change anymore. The Force.com IDE is giving no error at all and is ...
12
votes
3answers
378 views

Metadata+ToolingAPI access on CS14 (and other pods) 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 ...
11
votes
1answer
5k 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 ...
11
votes
1answer
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 ...
11
votes
1answer
229 views

Will LightningComponentBundle and LightningComponentResource mapped into the database like AuraDefinitionBundle and AuraDefinition

I'm checking this on a Spring'19 v45 Sandbox in Execute Anonymous: [ select Id from AuraDefinitionBundle ] // ==> works fine! [ select Id from AuraDefinition ] // ==> flawless!...
11
votes
1answer
114 views

Programmatically detecting unpackaged metadata in org that depends on my package

My managed package is extensively customized and extended by some customers in their org. For our packaged objects they e.g. add Triggers + Custom Apex code Fields Validation Rules Workflows Process ...
10
votes
2answers
941 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 ...
10
votes
1answer
60 views

What is `apexCache` and `apexCacheWarmer` in tooling API?

I was exploring few bits using tooling API, and stumbled upon 2 endpoints that got my attention. They are /services/data/v45.0/tooling/apexCache and /services/data/v45.0/tooling/apexCacheWarmer ...
9
votes
4answers
6k 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 ...
9
votes
1answer
157 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 ...
9
votes
1answer
216 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 ...
8
votes
1answer
925 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 ...
8
votes
1answer
1k 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 ...
8
votes
1answer
4k 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 ...
8
votes
1answer
965 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 ...
8
votes
2answers
297 views

Tooling API in Apex - polymorphism, generic query() callout?

I am working on Salesforce project heavily depending on use of Tooling API (we are executing tests on remote SF organizations and gathering results). What bothers me is I cannot use polymporphism ...
8
votes
1answer
3k views

How do I update Custom Label's value using apex? Which one would be a better option metadata api or tooling api? Please provide example

I'am working on post deployment automation process in salesforce. I am stuck on how should I update values in custom labels which needs tobe updated manually after a sandbox refresh.
8
votes
1answer
456 views

Tooling API - ProfileMetadata not being returned v32

I am attempting to use the Tooling API to retrieve all the data for a particular profile. According to the Tooling API documentation from v32 there is a Profile object which contains a set of ...
8
votes
1answer
1k views

Saving mutiple files in Salesforce org with MavensMate in Sublime Text 3

I'm trying to save a large number of files for an org in a single instance (over 35 files at a time). I'm replacing numerous endpoints to a new remote site, so basically a find/replace across numerous ...
7
votes
1answer
509 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 ...
7
votes
1answer
1k views

How can I activate a Lightning Page via metadata?

I am deploying a solution which includes Lightning Pages and I would like to programmatically activate the FlexiPage in the target org when it is deployed. In the Configure Lightning Experience ...
7
votes
3answers
293 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 ...
7
votes
1answer
871 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 ...
7
votes
1answer
99 views

Is there a supported way to get what attributes a lightning component has programmatically?

Is there a supported way to get what attributes a lightning component has programmatically, given its name, that could identify (global) attributes on components from managed packages as well? The ...
6
votes
1answer
304 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 ...
6
votes
0answers
78 views

Delete a Managed Object using Tooling or Metadata API when Deletable

Trying to delete a validation rule in subscriber org using either the tooling or metadata API This validation rule WAS part of a managed package but was deleted from the package and new version ...
5
votes
3answers
1k 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 ...
5
votes
2answers
460 views

Tooling API - Enable/Disable Parallel Test Execution?

I am creating a tool related test class execution scheduler. Does Salesforce provide any way for the Tooling API to enable or disable Parallel Test Execution? I want to set this setting by Apex and ...
5
votes
1answer
626 views

How to find classes that implement an interface dynamically? [closed]

How do I determine at run time the classes that implement an interface using the tooling API?
5
votes
1answer
2k 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 = ...
5
votes
2answers
2k views

How to get Custom Object Metadata CreatedBy

I need to get list of Custom Objects in a Salesforce org and find Created By User of each of them (Created By of object, not the records) . Is it possible? I can get string list of custom objects as ...
5
votes
1answer
101 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 ...
5
votes
1answer
813 views

Anyone else having issues with deployment to sandbox stuck in pending for 5-60 minutes

Developing in two sandboxes and both of them when I attempt to deploy anything via metadata or tooling API the deployment is stuck in a pending status from 5-60+ minutes. I have a case open for one ...
5
votes
1answer
559 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 ...
5
votes
1answer
523 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 ...
5
votes
1answer
5k 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 ...
5
votes
2answers
5k 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....
5
votes
1answer
2k views

find out dependent fields, object and classes in salesforce

I want to know class is dependent to which class, object, and Field. I have tried to retrieve data from SymbolTable but it doesn't show me dependent Class Name or ID. Is there any another way to ...
5
votes
1answer
2k views

Connecting to Tooling API using Java SOAP

I have been trying to connect to the tooling API using SOAP and Java, but so far I have not been able to get it to work. I have a Java project with the tooling.jar and wsc-23.jar present, and I have a ...
5
votes
1answer
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, ...
5
votes
1answer
68 views

Finding out which page layouts are available for an object with APEX

When you check the Metadata.Operations.retrieve method, It requires you to know prior the fullname for the page layout you want to retrieve, and the Layout object it's not available with regular SOQL, ...
5
votes
1answer
900 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 ...