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
4
votes
2answers
125 views

Symbol table for Lightning components to find Dependencies/References

Like we do have SymbolTable for apex class, to find their references/dependencies; do we have anything for the Lightning Components(to find dependencies/references of lightning components/application/...
8
votes
2answers
321 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 ...
1
vote
1answer
753 views

errorCode“:”METHOD_NOT_ALLOWED“,”message“:”HTTP Method 'POST' not allowed. Allowed are HEAD,GET

I am running the below code in developer console to get OrgPercentage coverage, but it is throwing an error "errorCode":"METHOD_NOT_ALLOWED","message":"HTTP Method 'POST' not allowed. Allowed are ...
1
vote
0answers
179 views

unable to find end tag when query dependencyApi

I'm trying to run the query "SELECT MetadataComponentId FROM MetadataComponentDependency" via tooling connection. and I get the following error- com.sforce.ws.ConnectionException: unable to find end ...
1
vote
0answers
48 views

Error Creating an ApexPage with standardController via ToolingAPI: INVALID_TYPE : sObject type 'Case' is not supported

I am trying to create a ApexPage via Tooling API, that includes a standardController, following this example: Creating Visualforce Page Using Tooling API However it throws the following error: ...
1
vote
1answer
87 views

Tooling API Queries in Dev Console only show one row

When submitting a SOQL query in the Dev Console using the Tooling API only one result row shows, even though more overall rows are returned, as confirmed by the "Query Results" notice above the ...
0
votes
0answers
73 views

Fetch Metadata from Salesforce using Tooling API objects [duplicate]

I am building a tool in Java to fetch all the metadata from Salesforce using the Tooling API. For Ex: I want to fetch all the profiles details including object-permission, field-premission, ...
3
votes
1answer
381 views

How to send a PATCH HTTP Callout from Apex to Salesforce Tooling REST API

BACKGROUND I using Apex to get a list of FlowDefinition and would like to update the activeVersionNumber via using a PATCH request. QUESTION How can I achieve this using Apex if it does not support ...
0
votes
2answers
21 views

Define Object Fields (Custom) Usage and Compare Metadata Between Similar Fields

I am new to coding in Apex, but understand java and other object oriented languages. I am looking to use an API (such as the Tooling and SOAP API's) to compare fields in my Case object in my org. An ...
0
votes
2answers
456 views

Cloning Sandbox in Spring 18

Reference - https://help.salesforce.com/articleView?id=data_sandbox_clone.htm&type=5 How do you think it may impact the Release Process from dev to QA? Rather than moving code base for testing ...
0
votes
1answer
276 views

Tooling API in Batch Apex?

We've requirement to 'PERIODICALLY' fetch description of all object and their custom fields and store in NEW custom object(FieldsAndObjectDescription) We've huge Org and have more than 20K custom ...
1
vote
0answers
30 views

Lightning App Builder: how to check if an app is active?

I have created an app via Lightning App Builder called testApp how can you verify if the app is activated using Rest API/SOQL/APEX? I have tried using FlexiPage but it does not support field that ...
1
vote
1answer
55 views

Query list of Sharing Settings, Report Type, Custom Lables

I am currently working on a tool where I need to access the metadata, for which i am using the tooling API and the SOAP API. I am trying to query and get the list of all the data. I was able to ...
1
vote
2answers
149 views

Using Tooling API to run multiple test Synchronously

I am trying to use the POST methods to run some test classes.I am testing the API calls with workbench /services/data/v41.0/tooling/runTestsSynchronous/ This body works {"tests":[{"className":"...
1
vote
1answer
81 views

Do we have `setQueryOptions` for tooling API?

The Symbol table is only queried through tooling API. Do we have an option to set setQueryOptions when doing that, or similar way of setting batch size to do that. Because when running query() and ...
0
votes
1answer
76 views

Add or Edit Custom Metadata Records Declaratively requires CustomizeApplication, any Visualforce workarounds to allow regular user this ability?

I'm currently using visualforce and apex to allow a user to manage their own Hierarchical Custom Settings. By design this allows non-admins the ability to edit their Hierarchical Custom Setting values ...
1
vote
1answer
283 views

Tooling API : how to query on Salesforce Standard classes?

How can I query and get Standard Apex classes and their Symbol table via tooling API or Partner API? For eg: getting a custom Apex Class : String apexClassBodytooling = "SELECT Id, Name, SymbolTable ...
1
vote
2answers
135 views

ToolingConnection's query method throwing com.sforce.ws.ConnectionException: Failed to load class: com.sforce.soap.tooling.InvalidSObjectFault

I'm using Salesforce Tooling API in Java code and I am able to use create method of ToolingConnection. Bellow code is creating an apex class successfully. I'm getting exception when using query method ...
2
votes
1answer
504 views

Custom field update API

I am working in a sandbox, and using the Tooling API. I need to update the metadata of the custom field in Salesforce, but I am unable to do so. For this I am trying to work on the PATCH method. Below ...
3
votes
2answers
1k views

Create/Update Global Value Set using Tooling API

Can someone tell me how to create and update Global value set using tooling API? No sure what so send in request body.
2
votes
2answers
1k views

How to use Tooling API to get available values from picklist

How would one get the values available values of a System Custom Field? Here are the details of the "System Custom Field": Field Label: "Working Status" Field Name: "Working_Status" API Name: ...
2
votes
1answer
85 views

How to identify Advanced Currency Management (ACM) is enabled

Is there a way to find if the Advanced Currency Managementenabled using api or apex or soql? I have able to check if the multi-currency is enabled by using the api endpoint /services/data/v40.0/...
1
vote
1answer
186 views

Finding sharing settings OWD

I'm trying to find the sharing settings OWD information and I have looked at the tooling/api and APEX/SOQL could not find, is that even possible to retrieve this metadata information?
2
votes
1answer
1k views

Query the created date of a custom field?

I'm trying to do a large scale field cleanup within my org, and I'm looking to get a list of the custom fields by object (in this case the Account sobject), some basic details for those fields, and ...
3
votes
2answers
357 views

How to access profile restrict login hours

How can I check the login hours of a user profile that configured in user's profile? I have looked into LoginHours but could not find. In which object/soql/apex/rest/tooling api it would be ...
2
votes
3answers
107 views

Dependency ApexTrigger

How can I get all objects (with different actions) related to an ApexTrigger? For example: TriggerX ---> Related Objects : Account (insert), CustomObject__c (update) ... So far, I've tested "...
2
votes
1answer
525 views

create and update custom labels through ToolingAPI

How to create and update Custom Label using tooling API? Is it possible to do it without deployment? Dont want to create and update via Metadata API.
1
vote
1answer
287 views

Refreshing a Sandbox via the Tooling API - HTTP PATCH

In a series of questions regarding the Tooling API... one more rofl I'm trying to refresh a Sandbox via the Tooling API. For that, according to the documentation: To refresh a sandbox: To ...
3
votes
1answer
142 views

Getting the SourceId of current Sandboxes in the system

Basically I'm trying to retrieve the SandboxInfo records of my organization, but I can't seem to find the correct endpoint for that. I've tried executing /services/data/v41.0/tooling/sobjects/...
1
vote
1answer
432 views

Automatically generate lightning component on record insert

So I have created some code which essentially iterates through records on an object to map it to specific lightning components dependent on the recordtype. I have looked everywhere but can't seem to ...
2
votes
1answer
525 views

Creating a new sandbox using the Tooling API with .NET

I'm trying to use the Tooling API in order to create new sandboxes via a Console application in .NET, with C#. So far I've been able to authenticate with the partner wsdl and perform overall queries, ...
1
vote
1answer
92 views

trying to retrieve Symbol Table through tooling API takes too long

I am trying to retrieve SymbolTable from Tooling API, but it takes too long to retrieve that. Also like when I try to access the SObject from the ToolingAPI package, I am not getting any option like ...
1
vote
1answer
307 views

Cannot retrieve full class list from the org using tooling API?

I am using partner api to get the list of classes in salesforce. But issue is that at a time we can only get 2000 classes, I tried using a while loop to pass the list of classes already queried but ...
2
votes
2answers
184 views

Can we find dependent components using apex?

When we create unmanaged packages, if we add a Lightning app in the component list, Salesforce automatically adds all the related components - Apex classes, Objects, Fields, Custom settings, etc. in ...
0
votes
1answer
102 views

Validation using MetaData API

How to validate a package xml using Metadata API? Similar to what we do with changesets. First we validate, then we deploy. If I need to validate a list of apex classes and vf pages, how can I do so ...
1
vote
1answer
104 views

How to get ConnectedApp details using REST API [closed]

How to retrieve connected app information using rest/tooling api?
6
votes
0answers
83 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 ...
0
votes
1answer
322 views

Is it possible to use the Tooling API to update field level security on Profiles and PermissionSets?

I'm trying to use the Tooling REST API to create a new CustomField and then add it to certain Profile and PermissionSet metadata with read/edit access appropriate to those profiles / permissionsets. ...
1
vote
1answer
126 views

How to process and display records from tooling api query in a visualforce controller

Why is the "broken code" throwing a 400 error? Ultimately the "working code" is not the approach that I am looking for. I am looking for a solution approach that leverages visualforce+controller (i ...
0
votes
1answer
310 views

Is there a way to look via REST API “lookup filters” defined on field?

Is there any way using SOQL/Apex/REST/API to find what are the lookup filters defined on the field? I'm after finding the Filter Criteria of the field.
4
votes
1answer
330 views

Field Level Security information via REST API

Is there a way to access FLS via REST API or Apex? I'm trying to find out what FLS profile are Visible and what are Read-only. I couldn't find much info online.
0
votes
1answer
19 views

Can CompanySettings be retrieved using the Tooling API?

The CompanySettings object can be retrieved using the Metadata API. However it requires using SOAP and zip files. Is there a way to retrieve it using the, much simpler, Tooling API?
2
votes
4answers
129 views

How to get dependent classes for a trigger?

we are working on a migration from salesforce to salesforce. We have bought one new production instance. We want to migrate selected objects and their trigger and trigger dependent classes and the ...
3
votes
1answer
88 views

Tooling API from Visualforce - OK in managed package?

I'm working on a project that will have us create a managed package which can be used for integration between Salesforce and our client's platform (let's just call it Cloud Product). Our client will ...
1
vote
0answers
80 views

How to delivery Salesforce API access in Managed Package when using Lightning Component

Trying to build managed package that can analyze metadata configuration, flow specifically. Building as Lightning Component. Looking for a solution to delivery a Named Credential capable of accessing ...
0
votes
1answer
92 views

Can you run a callout to the tooling API as non-admin user without giving them “Modify All Permissions”? [closed]

Right now I have a button that uses the tooling api to query information for custom object and field for a URL Redirect. However when I use as a non-admin user, I get a type conversion error and when ...
3
votes
1answer
493 views

Tests fail (only) during upload with “CalloutException ..uncommitted work pending”

This must have its root cause in a Winter '18 change/bug as this worked before for years. When uploading a big (takes a while to upload) managed packaged that contains Apex Tooling API - REST edition ...
15
votes
2answers
346 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 ...
0
votes
1answer
141 views

InvalidSObjectFault while querying object using Tooling API

I am trying to get the Sobject Name by prefix of Id using below query in my JAVA code: QueryResult queryResultsAttach = conn .query("Select Id,QualifiedApiName,KeyPrefix from ...
2
votes
2answers
1k views

Create/Update Global picklist using tooling API or MetaData API

Need to create or update the values of the global picklist using tooling API or Meta-data API.