As of May 31, 2023, we have updated our Code of Conduct.

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
417 views

See when AuraDefinitionBundle was last updated?

I know we can Query AuraDefinitionBundle with the tooling api and retrieve some fields, but one that is not included is Last Modified Date. How would one retrieve that information for all ...
Bobbygllh's user avatar
  • 721
1 vote
0 answers
176 views

How to check what components are using standard fields uisng Dependency API?

This is the process I am following to see what components are dependent on CustomField : Account.Foo__c First get Id of custom field: sfdx force:data:soql:query --query="SELECT Id,DeveloperName ...
javanoob's user avatar
  • 8,626
0 votes
0 answers
189 views

Salesforce Trust api Call from salesforce

Salesforce provided some apis to make a request and get the salesforc staus in anwhere(like in other app) for dashboards perspectives. I am not able to get how i can use get request in workbench for ...
ajay bagdad's user avatar
0 votes
1 answer
192 views

Using Metadata or Tooling api to get Custom Application's association with Custom Fields and Custom Objects?

If anyone know if we can using the metadata api or tooling api from SFDC to find all dependency around the custom app in SFDC. Looking to see we can see all custom setting that has been configured in ...
lancegoh's user avatar
  • 101
2 votes
1 answer
276 views

Tooling REST API CalloutException Read timed out

We've got an issue regarding Salesforce improperly cleaning out FlowElementTestCoverage records, leaving over a million "stranded" on an old/inactive Flow Version. This is causing us to be ...
Mike's user avatar
  • 1,159
1 vote
0 answers
257 views

Tooling API SOQL Where clause not working for certain fields

I'm working in the developer console using the tooling api to write a query against permission sets. This query works: select Name, Label, Description, ManageableState, NamespacePrefix, Type from ...
Mike Jones's user avatar
0 votes
1 answer
1k views

Invalid session id when using lwc to call toolingApi Class

When trying to call the toolingAPI from the toolingAPI class. I get the following error VARIABLE_ASSIGNMENT [173]|this|{"value":[{"message":"This session is not (31 more) ...&...
zachary edgell's user avatar
2 votes
1 answer
141 views

Calling REST APIs from Lightning

We are currently working on an app where we are calling the Tooling API from our Lightning component Since UserInfo.getSessionId() is not valid in Lightning context, to make the call we are using VF ...
KESHAV's user avatar
  • 21
0 votes
1 answer
700 views

How do I delete a Remote Site Settings (Remote Proxy) from apex code?

I am not even able to do a query like this, Database.query('SELECT Id FROM RemoteProxy WHERE SiteName='TestSettings' LIMIT 1'); I want to delete a RemoteProxy record from apex code, someone please do ...
Preveen Raj's user avatar
0 votes
2 answers
703 views

Is it possible to get the list of all profiles which has access to a particular tab

There are lot of profile in our org. One of the new team member deleted a tab for custom object from a sandbox. It is possible to go to other and see the accessibility manually. But it will take lot ...
Light_l's user avatar
1 vote
2 answers
669 views

How to retrieve the IDs of existing custom managed content types

I have followed these steps to create some custom managed content types for my organization. It seems like the delete request needs an ID of the record to be deleted via the tooling API, which makes ...
Brandon Slaght's user avatar
1 vote
1 answer
1k views

Calling Tooling API via ApexClass

I'm trying to figure out how to call Tooling API in the APEX class and get the data, Here is what I have done: In Remote Site URL provide your salesforce instance. Getting the following error: ...
Nick's user avatar
  • 6,844
5 votes
0 answers
153 views

How can I find the relationship between MetadataComponentId and the expected name for the Metadata API?

I've been using the Dependency API to try to retrieve all dependencies for a given metadata. I would like to get a list of dependencies, and then retrieve these with the Metadata API. Unfortunately, ...
Fabien Taillon's user avatar
0 votes
1 answer
2k views

Add new picklist values to all Record Types that use this Global Value Set

I'v been used tooling API for update Global value set. but now the new picklist values i'v added doesn't display at the picklist field. I'v notice to the check box when adding new values to global ...
Shoval's user avatar
  • 13
1 vote
1 answer
1k views

Delete/Update Global Value Set values using Tooling API

I'm trying to update or delete values in my Global Value Set. I succeed insert new values with the code below: but when I change SetMethod to DELETE I get Bad Request with status code 400 is there ...
Shoval's user avatar
  • 13
1 vote
1 answer
557 views

How to get individual field names of compound field from EntityParticle object using Tooling API?

SELECT DataType, EntityDefinition.DeveloperName, IsCompound, DeveloperName, FieldDefinition.QualifiedApiName FROM EntityParticle WHERE EntityDefinition....
javanoob's user avatar
  • 8,626
1 vote
1 answer
76 views

Apex: Second Tooling API Query per transaction returns incorrect results

I'm writing code that uses the somewhat new "Security Classification" on custom fields to modify its behavior. This value is not (yet?) available via DescribeFieldResult, so I'm querying the Tooling ...
Jason Clark's user avatar
  • 11.4k
2 votes
2 answers
2k views

Finding unused Apex Classes with Tooling API and MetadataComponentDependency

Is there a way to SOQL find all Apex Classes (or fields or any other metadata) that are not used/referenced in an org by doing a smart Tooling API SOQL on MetadataComponentDependency? When I run ...
Robert Sösemann's user avatar
1 vote
0 answers
180 views

Is there way to know if skinny table is Enabled in SF org?

I wanted to check if any information is available via SOQL-tooling API or is there any flag or some sought of information available VIA API or anything which will tell me by looking into salesforce ...
Nachiket Deshpande's user avatar
3 votes
1 answer
181 views

Can a new SObject type or new SObject field be created via the Tooling API?

The Tooling API is great - very easy to use from Apex code by making HTTP calls containing straightforward JSON. Two questions: Is it still not possible to create a new SObject type e.g. ...
Keith C's user avatar
  • 134k
4 votes
3 answers
2k views

How to find un-Used Workflow Email ALerts?

My requirement is to find un-Used workflow email alerts which are not tied to any Workflow Rules I am checking Tooling API option WorkflowAlert Where I am thinking of doing SOQL on Workflow EMail ...
Nachiket Deshpande's user avatar
2 votes
0 answers
962 views

Querying for Validation Rules and Workflow Rules by criteria

I'm trying to query for all Validation Rules and Workflow Rules that have a specific value in the criteria. From developer.salesforce, I see that I can query Validation Rule, but I need to filter ...
user79162's user avatar
0 votes
1 answer
51 views

Need help on this tooling api code .Its returning me 0 results

Just need help why is it returning 0 results. HttpRequest req = new HttpRequest(); req.setEndpoint(Url.getSalesforceBaseUrl().toExternalForm()+'/services/data/v47.0/tooling/query?q=SELECT+DurableId,...
SFDCTashan's user avatar
1 vote
1 answer
47 views

Missing ApexTestRunResult Data

Yesterday we had 10-11 records and today just 2. This is what I did: Check recycle bin and using All Data Check Bulk API delete capable processes and users Check connected apps. DataLoader.io SSO ...
kratos's user avatar
  • 501
2 votes
1 answer
109 views

ApexTestResultLimits in Tooling API work for both synchronous and asynchronous runs?

The documentation at ApexTestResultLimits states that: The ApexTestResultLimits object is populated for each test method execution, and it captures the limits used between the Test.startTest() and ...
kratos's user avatar
  • 501
1 vote
1 answer
453 views

Make Tooling REST Calls from Lightning Component

Is it possible to make tooling API calls from lightning components? I am getting 'This session is not valid for use with the REST API' error. Reading a few articles online, seems there are some hacks ...
Sidharth Agarwal's user avatar
3 votes
1 answer
360 views

Tooling API Inactivate Apex Trigger

I am trying to inactive Apex Trigger using tooling API. I don't see any errors, I am getting "Success" message, but Trigger is not getting updated with inactive flag. String json= '{ "...
Ajay 's user avatar
  • 1,509
0 votes
1 answer
2k views

Inserting records to ContentFolder and ContentWorkspace

Good day! I wanted to programmatically create a library. Manually in lightning mode you need to navigate to Files tab and then choose Libraries and then click the New Library button. Supply a name ...
Oneb's user avatar
  • 25
3 votes
1 answer
160 views

Is it possible to discover a sandbox version with a API request to a sandbox?

We built and are enhancing a "Salesforce Sandbox Manager" to allocate Salesforce sandboxes to our Jenkins CI/CD and occasionally facilitate other sandbox management tasks. We'd like our manager to ...
Brian Kessler's user avatar
1 vote
1 answer
36 views

Making additional (custom) metadata available for a field

I am looking for a way to add additional metadata to object fields for use by some Salesforce and non-Salesforce UI code. What I need is a small piece of custom JSON per field. (Yes I could create a ...
Keith C's user avatar
  • 134k
2 votes
1 answer
2k views

INVALID_TYPE: sObject type 'InstalledSubscriberPackage' is not supported

I'm querying the tooling API via some external C# code to get a list of installed packages. SELECT SubscriberPackage.Name, SubscriberPackage.NamespacePrefix, SubscriberPackageVersionId FROM ...
Tom's user avatar
  • 106
0 votes
1 answer
2k views

Lightning Usage/Adoption Reports and Metrics (e.g. most viewed pages, switches to Classic, etc.)

Salesforce's native "Lightning Usage App" app (Summer '18) includes several reports with metrics around page views, load times, mobile activity, etc. I find the "Most Viewed Pages" usage report below ...
Brent Bowers's user avatar
  • 2,994
3 votes
2 answers
2k views

SOQL query of MetadataComponentDependency: "Dependency API is not enabled"

I'm trying out the Dependency API (Winter '20 beta release) to help me draw package boundaries. I ran a test query from the Dev Console using the Tooling API but immediately hit the error [object ...
Brent Bowers's user avatar
  • 2,994
0 votes
1 answer
470 views

Tooling API response, how to print in log?

I’m trying to print (system.debug) the response returned from tooling API but the debug is not displaying anything. So, I was wondering if the code below is correct. HttpRequest req = new HttpRequest(...
sfBilb's user avatar
  • 23
2 votes
4 answers
2k views

Querying Apex Classes & Dependent Test Classes

Does anyone have any advice on how I can go about querying test classes and dependent test classes? Our Org is getting very large and finding the correct test classes for each class is becoming an ...
J1593's user avatar
  • 81
2 votes
1 answer
1k views

sObject type 'MetadataComponentDependency' is not supported

If I understand correctly MetadataComponentDependency supports standard and custom fields on standard objects, but neither on custom objects. Will it eventually support standard and custom fields on ...
Max Goldfarb's user avatar
2 votes
1 answer
2k views

Rest Tooling Api - Execute Anonymous Apex - Callout loop not allowed

First question on here, so please forgive me any errors in how I've posed my question. A little context The instance I work on has a lot of integrations with external systems. We perform 100.000's ...
RickForce's user avatar
  • 108
0 votes
1 answer
148 views

SymbolTable not supported

I am trying to find the unused methods using the Query Editor in Developer Console. I have checked Use Tooling API. Running SOQL like below: SELECT Id FROM SymbolTable WHERE externalReferences = ...
वरुण's user avatar
0 votes
0 answers
66 views

API Usage Notifications - How to subscribe not via UI, e.g. using API, ant deployment etc

When spinning up new sandbox from production we need to subscribe our admin user to receive 'API Usage Notifications'. So in order not to do it manually every time, we are looking for a way of how to ...
wesaw's user avatar
  • 2,929
2 votes
2 answers
437 views

Find out programmatically if a field can be tracked

I've grappled with this one for a long time, and I am almost sure it's a gap in the platform. The problem I have is that I need a way to find out all the fields that can be tracked. That is to say, ...
Toby Curtis's user avatar
3 votes
1 answer
4k views

Querying metadata of an entity via Tooling API

I am trying to query some basic information about an object with the tooling api. There is one field that I am really interested in but it seems that it is not possible to query it even though the ...
BreadMAN's user avatar
1 vote
1 answer
5k views

How to export data from the Developer console? [duplicate]

I have to remove around 300 inactive flows from our Salesforce org, for this reason I would like to export the results of a query from the developer console to a csv or text. I'm unable to use ...
Alex Cortes's user avatar
0 votes
0 answers
177 views

Create a StandardValueSet via Tooling API

I am currently working on StandardValueSet and I would like to try to insert an entry in the said resource. I looked at the documentation and it sort of lacks the necessary information for me to be ...
Oneb's user avatar
  • 25
0 votes
1 answer
493 views

How to automate my Post production refresh steps like updating the configuration through Apex code using Tooling/Metadata API

After every production refresh of Sandboxes I have to perform manual steps updating Custom Label, Remote Site Settings, Named Credential, Custom Settings and Custom Metadata. How can I automate the ...
Hemanta Chandra's user avatar
0 votes
1 answer
701 views

Named Credential Tooling API SOAP Envelope

Attempting to switch from using custom setting to named credential for authentication. I've updated the http request endpoint to use the named credential but how to update the SOAP envelope to not use ...
ebar's user avatar
  • 447
1 vote
2 answers
2k views

call tooling API when using lightning component [duplicate]

When I make request tooling API from Apex by using lightning component, the error This session is not valid for use with the REST API is responsed. Also, the response status code is 401, and status is ...
Shinya's user avatar
  • 407
0 votes
3 answers
2k views

How can I get the custom object Tooling API Id?

I want to get the custom object id using the custom object's API name. Please tell me the way how to get id. req.setEndpoint(domainUrl+'/services/data/v46.0/tooling/query?q='+ ...
S Kawasaki's user avatar
0 votes
3 answers
2k views

How to get custom object id dynamically using apex

How to get custom object id dynamically. I have created one button on UI called Create custom field and on click of that button, I want to redirect it to that custom object field creation page(object ...
akashg7's user avatar
11 votes
1 answer
143 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 ...
Pranay Jaiswal's user avatar
1 vote
0 answers
482 views

How to fetch all profile metadata including object permission, field permisssion, record type etc. using Salesforce Tooling API

I am using workbench to retrieve a user profile using tooling API, but unable to retrieve any data in fieldPermissions, objectPermissions or recordTypeVisibilities files. Can anyone suggest me how to ...
Prashant Kumar's user avatar

1 2
3
4 5
9