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.
0
votes
1answer
18 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
18 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 ...
1
vote
1answer
46 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
42 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
35 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
63 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
22 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 ...
0
votes
1answer
59 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....
2
votes
1answer
41 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
75 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
36 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
33 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
59 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 ...
4
votes
1answer
133 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
41 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 ...
3
votes
0answers
65 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 ...
0
votes
1answer
42 views
How to list all metadata of a sobject through salesforce tooling api by SOAP call?
I am trying to fetch metadata related to an sobject by SOAP call through Tooling API. For example, I am trying to fetch all the Apex Pages available in my org but unable to find any relevant API in ...
2
votes
1answer
68 views
Trying to get methods references using REST version of the Tooling API
I am trying to get methods references and external references using REST version of the Tooling API, but they all = null:
/services/data/v36.0/tooling/query/q=Select+Id,Name,SymbolTable+From+...
1
vote
1answer
97 views
How to scan barcode in salesforce? [closed]
Overall task is scan the barcode in saledforce.
Suppose my computer is connect with barcode scanner machine.
In salesforece i've a custom object ITEM. create a visualforce page of this item object ...
1
vote
1answer
50 views
Problem in retrieving the apex code coverage from tooling api
public class Cover{
private static List<codecov> coverlist = new List<codecov>();
private static List<Jsondat> jd = new List<Jsondat>();
public class Jsondat
{
...
1
vote
0answers
32 views
Create new classes by Tooling API
I have a problem with creation new APEX classes by using #Tooling API.
In first scenario, I want to create one class:
Steps:
Create MetadataContainer
By using MetadataContainer Id, create ...
1
vote
2answers
65 views
What is use of Apex WSDL used for (Setup->API>Generating the WSDL File)?
When I was downloading Partner WSDL today I realized that there option to download APEX WSDL.
When i brush through the code it seems like most of operation this WSDL offer are already there on ...
7
votes
0answers
80 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 ...
4
votes
1answer
176 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
258 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 [closed]
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.
3
votes
1answer
42 views
Unknown Error in Workbench while querying UserEntityAccess
Getting Unknown Exception while querying 'UserEntityAccess' in work bench,
Query :
SELECT
EntityDefinition.Id,EntityDefinition.DurableId,
EntityDefinition.QualifiedApiName, EntityDefinition....
1
vote
0answers
44 views
Cannot update Managed Package ValidationRule
I built a Validation Rule for a Managed Package object in my org (so this new rule is not part of the managed package). When I got to update that object's Metadata "Active" field, I get this error:
'...
2
votes
1answer
56 views
Spring 16 Tooling API v36 - TraceFlag vs DebugLevel bug?
Can anyone enlighten me - what is the purpose of DebugLevelId on Tooling API TraceFlag object?
If it is now a required field then what is the purpose of all log level fields (e.g. ApexCode, ...
5
votes
0answers
46 views
Way to get the sandbox host from ToolingAPI
Looking at the new-ish SandboxInfo and SandboxProcess objects I don't see anyway to get the pod name (ie, NA7, CS16, etc). Is there a way to get this information from the ToolingAPI, or do I have to ...
3
votes
1answer
53 views
Cannot catch the result of ExecuteAnonymous in toolingAPI
I have a future method called out from a trigger which passes the ifcondition to be evaluated to this method and if this evaluates to true I need to call some classes. The problem here is even if the ...
0
votes
0answers
53 views
Can we edit the content of a deprecated method?
I have a class that was deprecated some time back. I am trying to perform an internal refactor and remove some items that are still referenced in the methods of that deprecated class. However, when I ...
1
vote
1answer
266 views
Symbol Table from Apex Class
In an earlier question Here I asked in general about the symbol table for an Apex class.
Using the Tooling API wrapper from Here I am able to get part way there. But am unGodly confused.
If I go to ...
1
vote
1answer
168 views
Querying Symbol Table of a Apex Class [duplicate]
I am interested in being able to get information about classes, specifically variables, methods etc. I see this can be done by the Tooling API, what I am not clear on is if I need to make an API call ...
1
vote
1answer
95 views
How to execute a code inside an executeAnonymous block of toolingAPI in salesforce?
Below is a piece of code I am trying to run.
global class TriggerClass {
@future (callout=true)
public static void ifMethod(String sessionId, String ifcondition) {
ToolingAPI....
3
votes
1answer
40 views
GACK response from SOAP Tooling API runTestsAsynchronous method
I'm attempting to call the runTestsAsynchronous(classids, suiteids, maxFailedTests) method on the SOAP Tooling API as per the linked documentation and the example in ApexTestQueueItem. In both cases, ...
1
vote
1answer
107 views
Populating SymbolTable through Tooling API
I am trying to populate the SymbolTable for a specific class (currentClass) by following this question's solution
Trying to get SymbolTable of an Apex class and get null
Here's what I have so far
...
2
votes
1answer
12 views
Access list of tabs for a given profile using tooling api
When i try using tooling api with below code snippet i am getting empty list in tabVisibilities attribute. Any inputs will be of great help to the team.
Code Snippets
var conn = new jsforce....
3
votes
1answer
27 views
Are Sharing Settings of Relationship fields retrievable by Schema or Metadata/Tooling API?
Is there a way to find out in Apex code if on of the two radio options is set in an Org?
2
votes
1answer
150 views
Tooling api problem
Public class testapi{
ToolingAPI toolingAPI = new ToolingAPI();
List<ToolingAPI.CustomObject> customObjects = (List<ToolingAPI.CustomObject>) toolingAPI.query(
'Select Id, ...
4
votes
1answer
165 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 ...
3
votes
1answer
92 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
115 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
37 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
63 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
72 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 xmlns:soapenv="http://schemas....
2
votes
1answer
159 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
62 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
40 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
1answer
111 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
96 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 ...