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
1answer
354 views

Retrieving StandardValueSet with the Tooling API

I am trying to avoid using any SOAP service for such simple operations as below: The picklist of all Lead Statuses (including inactive) The picklist of Stages/Statuses attached to a Record Type The ...
1
vote
1answer
46 views

Execute tests thru API not showing up in test execution?

So I wrote a C# program that uses the Salesforce Tooling WSDL to call RunTestsRequest . I got that working the only problem I have is the the test results only show up in Apex Test Results and not ...
0
votes
1answer
71 views

Tooling API System.calloutException: You have uncommitted work pending. Please commit or rollback before calling out

I am using Rest resources to query tooling api objects. My code is as follows: public HttpRequest getObjectDescription() { String name = localName.replace('__c', ''); //localName is a class ...
1
vote
2answers
106 views

How to find type of an hardcoded ID in JAVA

In SFDC we have methods to identify the type of ID Sample code: Id idType = '50011000002ZXX'; Schema.sObjectType entityType = idType.getSObjectType(); System.debug('ID belongs to:'+...
2
votes
0answers
198 views

Bug? FieldDefinition is Createable via Tooling API

I found this question very interesting: Programmatically Determine Which Objects Allow Lookup References to Them? In my naiveté, I thought perhaps this question could be answered by using the Tooling ...
1
vote
1answer
307 views

Query to run runTests() using Tooling Rest API

I am using Tooling Api to run the test in org for apex classes. Please help me with the query to callout runTests() in RestAPI.
0
votes
2answers
106 views

Find code coverage of ApexClass before deployment

I want to find ApexClass code coverage before deployment. Is there any way to get the code coverage using tooling API.
1
vote
1answer
74 views

Code coverage for apex class

For one APEX class there can be multiple test methods. So each test method showing different code coverage using Tooling API. Is there any way to calculate the code coverage for APEX class including ...
4
votes
1answer
977 views

Tooling API calls from Apex requires user to set up Remote Site Settings?

For a personal project, I'm trying to retrieve Validation Rules from objects to display them inside a Visualforce page. For this I'm using the excellent Tooling API wrapper from Andrew Fawcett, but ...
0
votes
0answers
141 views

Retrieve API Names of all components from salesforce

I want to retrieve API names of all the components from Salesforce Org. I used Force.com Migration tool(ANT) to retrieve Component names but I am getting the label of all the components. For Ex. ...
3
votes
1answer
2k views

Fetch more than 2000 records

I want to fetch 19k records from my org using Tooling API in Java. I have used LIMIT and OFFSET values in SOQL query to maintain sequence, the problem I'm facing is OFFSET is not processing values ...
2
votes
2answers
182 views

How to differentiate between ApexClassorTrigger name and ApexTestClass name?

I have extracted all the component from Salesforce Org so I want the names of all the TestClasses which covers all ApexClasses. I have created excel sheet such as Component Type, Component Name ...
0
votes
1answer
200 views

tooling api not working for create class

I have created Apex Class that use tooling api and have one method that generate One class dynamically public with sharing class SalesforceTool { final String endpoint = 'https://na1.salesforce....
3
votes
0answers
119 views

Ajax REST Tooling Queries Return Null SymbolTable?

Background I'm trying to build upon Daniel Peter's approach in his HyperBatch library to build a HyperQuery tool that will allow me to get better insight into some large tables we have without ...
0
votes
1answer
32 views

What are some tools you've built or heard of being built using the tooling API?

Anything counts as long as the tooling API was critical to the functionality of the project. This includes Andrew Fawcett's Apex wrapper around the API. https://github.com/afawcett/apex-toolingapi
4
votes
1answer
451 views

How to setup Tooling Api in Java Application?

I am developing a Java application that should be able to connect to any Salesforce org and use the Tooling Api. Salesforce provides a WSDL but as I understand it is org specific, correct ? Could ...
2
votes
1answer
94 views

Is it posible to UPDATE/PATCH certain file from StaticResource bundle using Tooling API?

I have the StaticResource with name AwesomeApplication where placed zipped files (bundle.js, vendor.bundle.js). Can I update only bundle.js from my StaticResource, without touching vendor.bundle.js ...
2
votes
1answer
149 views

Can the tooling API turn off field tracking history?

Can the tooling API turn off/on field tracking history? Seeing as we can't delete history record I want to be able to turn it off before a process runs to prevent history records being created. The ...
3
votes
2answers
146 views

Why PersonAccount is showed in custom object in Tooling API query?

I queried the below in the service console to get the custom object count. But I got one object difference. i.e "PersonAccount" . When i check the ID its not displaying in the UI page. select id, ...
4
votes
2answers
561 views

INVALID_ARGUMENT_TYPE : Missing field [TableEnumOrId] on trigger create

I am using "ToolingAPI" to create a trigger dynamically , but I received this error: "INVALID_ARGUMENT_TYPE : Missing field [TableEnumOrId] on trigger create" I am using this code: ToolingAPI ...
2
votes
1answer
48 views

Tooling WSDL in Visual Studio Web Reference

I am attempting to do web reference of Tooling WSDL in MS Visual studio but I am unable to do so. I am getting below error: Is there any fix? I have tried it in different version of MS Visual ...
1
vote
0answers
115 views

Metadata/Tooling API - Identify orphaned email alerts (workflow actions no longer associated to an workflow)

I was looking to cleanup some of our orgs metadata and identify the email alerts that do not have an active workflow. Is there a way, besides parsing the metadata and finding metadata tag matches on ...
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 ...
1
vote
1answer
603 views

Managed installed classes cannot be saved(Tooling API)

I am creating an App in which there is tab in the App with a Visualforce Page. But it will show a nothing on start(Empty Page with just apex:page markup) and after setting up a some configurations of ...
0
votes
1answer
298 views

Access SymbolTable methods field using Rest Tooling API

String endpointUrl = URL.getSalesforceBaseUrl().toExternalForm() + + '/services/data/v38.0/tooling/query/? + + q=Select+Id,Name,SymbolTable,Body+From+...
1
vote
1answer
217 views

Creating WorkflowOutboundMessage using Tooling API

Is it possible to create an outbound message using the Tooling API (REST), similar to what's described in here? According to salesforce Tooling API documentation i tried to create outbound message ...
1
vote
2answers
425 views

Working With the Different Salesforce Api's

I am building a Java application to interact with the different api's Salesforce provides such as Tooling Api, Metadata Api, Partner Api. I have several questions: Is it possible to make the ...
2
votes
0answers
31 views

Use MetadatacontainerID in Visualforce Page

I have written a code for creation of MetadataContainer in Tooling API in my Apex class. public Static void createNewMetadataContainer() { ToolingApi tooling = new ToolingApi(); string ...
1
vote
0answers
51 views

Unable to get ApexPageMember ID Tooling API

I'm new to Tooling API and I'm trying to update an existing Visualforce page from a class through Tooling API by Tooling API ApexPageMember object. However, I am unable to create the ApexPageMember ...
2
votes
1answer
164 views

How to get the MetadataContainerID for Tooling API for editing Visualforce Page

I am trying to edit an ApexPage using a ToolingAPI and containing a ToolingAPI.ApexPageMember. I have created a ToolingAPI class based on @AndyFawcett (https://salesforce.stackexchange.com/users/286/...
1
vote
2answers
415 views

Update an existing trigger with tooling API

I am able to create a trigger from a class using toolingAPI. Can I update this trigger using the Tooling API? Also, is it possible to update an existing visualforce page using the Tooling API? If so, ...
5
votes
2answers
461 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 ...
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 ...
2
votes
1answer
2k views

Calling REST API from Apex results in “Session expired or invalid” error

I have some Apex code that tries to create a dummy class in the org. When I call the "create Apex class" method, the request's response is: {"message":"Session expired or invalid","errorCode":"...
2
votes
1answer
243 views

Object type 'SandboxInfo' is not supported

When executing the following query I get the error message "Object type 'SandboxInfo' is not supported": /services/data/v38.0/tooling/query/?q=SELECT+Id+FROM+SandboxInfo The current user is "...
0
votes
1answer
296 views

Is this possible to access Tooling API or REST API or SOAP API or Metadata API from Lightning Application

As far as I undestand, when I try to use Lightning Session Id, I receive an error This session is not valid for use with the REST API I have read in other topics that Lightning Session Id has ...
1
vote
1answer
232 views

Who publishes artefacts with groupId “com.force.api” to mvnrepository.com?

Does anybody know who publishes force.com related jars under groupId com.force.api on mvnrepository.com? Are these safe to use? Bonus question - why there is no force-tooling-api artefact ? I ...
4
votes
2answers
1k views

Describe not returning Inactive picklist values via API

I'm using Partner API to describe salesforce schema. For some reason, in picklist fields I only see the active values (although there's a field "getActive()") Is this a limitation or am I doing ...
1
vote
1answer
108 views

Genrating apex class using Tooling API throws exception while using relationship field in SOQL query

I am trying to generate apex class using Tooling API. In the apex class I am writing a query [select Type, Origin, Count_of_Co_brand_card__c, CaseUser__r.City, IsEscalated, ClosedDate, ...
1
vote
1answer
135 views

Code Coverage Report Scheduler

I created a scheduled job to run all tests in org at 5:30 AM, and another one at 6:00 AM(to ensure that all test jobs done) to send the code coverage percentage and top 10 uncovered classes in org,...
3
votes
2answers
366 views

Getting null Metadata values from Tooling API

I want to view the Metadata(RecordType, VF access, Apex class access,etc.) from Profile using Tooling API. My code looks similar to this ToolingAPI toolingAPI = new ToolingAPI(); List<...
1
vote
1answer
280 views

How to make callout to tooling api from the queueable apex which is enqueued in scheduler where source and target orgs are same? [duplicate]

I am calling tooling api from my Queueable apex to get information of flow object from my org and scheduling it on daily basis. Now my problem is when I run my code from anonymous window with ...
1
vote
1answer
2k views

Why Unauthorized Endpoint error coming even after adding Remote Endpoints?

Here is the error I'm getting when I try to call a Tooling API Rest Api: 00:53:19.0 (7411847)|CALLOUT_REQUEST|[28]|System.HttpRequest[Endpoint=https://vcorg-dev-ed.my.salesforce.com/services/data/v36....
5
votes
1answer
629 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?
3
votes
1answer
184 views

The Coverage field from ApexCodeCoverageAggregate isn't returning coverage lines in Spring '16 (v37.0)

I've previously used the SOAP version of the Tooling API to run the following SOQL query to get the aggregate code coverage for an Apex class. SELECT ApexClassOrTriggerId, ApexClassOrTrigger.Name, ...
4
votes
0answers
41 views

Tooling API Doesn't return Set/List/Map types

I'm trying to use to tooling API to retrieve information about methods within a class. While I do get the data, I noticed that the arguments for methods are incomplete. Any method that uses a ...
2
votes
1answer
121 views

ToolingAPI bug? Dev Console only: No such column 'PoNumber' on entity 'Order'

According to the Docs for the standard Order Object, PoNumber is a valid field on the object. I have a query that references that field in an Apex class, and the class compiles, and the unit tests ...
0
votes
2answers
141 views

Salesforce Tooling API

I am using salesforce's tooling API to get metadata changes for CustomField objects where were modified after a certain date. I am using the following code which is written in JAVA. Q.> How to write ...
5
votes
1answer
815 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 ...
2
votes
0answers
121 views

Why in all ApexClassMember I have MetadataContainerId = null

In my previous question I want to get method references from ApexClassMember --> SymbolTable. Following Daniel algorithm from his answer: General steps to get the SymbolTable: Create a ...