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
0
votes
1answer
30 views

How to get references(where the field is used) of a custom field in salesforce via API or Tooling API

I want to find the references of a custom field i.e. where is the field used e.g. Layouts, Apex Classes, etc. via the AP/Tooling API. There is an option on UI in professional salesforce orgs called ...
1
vote
1answer
29 views

Retrieving audit fields of a custom metadata type object

Problem: need to know who and when created and/or last modified the custom metadata type object. This information is captured in various system fields on the object. The screenshot shows two such ...
1
vote
1answer
34 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 ...
1
vote
1answer
34 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 ...
0
votes
1answer
414 views

Delete fieldset using Tooling/Metadata API (JSforce)

Tried this using the following 2 snippets; both failed. Snippet 1 conn.tooling.sobject('FieldSet') .delete({ DeveloperName: fieldsetName }, function(err, meta) { if (err) console....
1
vote
0answers
27 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 ...
0
votes
1answer
593 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 ...
0
votes
0answers
21 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 ...
0
votes
1answer
141 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 ...
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 ...
0
votes
1answer
15 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 ...
0
votes
0answers
22 views

Update picklist field values using Tooling API

I am trying to insert new values to an existing picklist field on a custom object via Tooling API. GET works fine but Patch is throwing an error on JSON parsing. I am trying this on workbench before ...
0
votes
1answer
506 views

How to Update Static resource using Tooling api in salesforce?

Httprequest req =new HttpRequest(); req.setEndpoint(URL.getSalesforceBaseUrl().toExternalForm()+'/services/data/v28.0/tooling/sobjects/staticresource/08190000000cgISAAY/'+'?_HttpMethod=PATCH'); req....
2
votes
1answer
32 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 ...
1
vote
1answer
643 views

Querying LeadStatus (including inactive)

It is trivial to retrieve all active LeadStatus values through the REST APIs, but I cannot see a way to pull in the inactive ones. SOQL query to retrieve active lead statuses: SELECT Id, ApiName ...
1
vote
0answers
34 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 ...
0
votes
0answers
35 views

Update ApexClass in Sandbox with JSforce [duplicate]

I'm trying to use JSforce library to create/update class using the tooling object. Please note that it is only in sandbox, I do know that in production org it won't work. Anyway, I'm able to create ...
0
votes
1answer
47 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) ...&...
1
vote
1answer
55 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 ...
0
votes
1answer
60 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 ...
0
votes
1answer
568 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 ...
5
votes
2answers
6k 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 ...
0
votes
1answer
27 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 ...
0
votes
0answers
30 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 ...
1
vote
2answers
529 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?
1
vote
1answer
79 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: ...
2
votes
2answers
883 views

Is there a way to query sandbox configuration info? (e.g. Location, sandbox name, etc)

I would like to be able to query the Sandbox configuration data. For example, if you go to the "Sandboxes" link in the setup of your production org, I want to be able to query that info (Name, Type, ...
5
votes
0answers
68 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, ...
2
votes
1answer
169 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 ...
0
votes
1answer
162 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 ...
1
vote
1answer
133 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 ...
1
vote
1answer
42 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....
3
votes
1answer
358 views

Deploying a Profile Update via Tooling RESP API - INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY

I was wondering if anyway has ever been able to make updates to Profiles via the Tooling REST API? I have recently built an application which creates CustomFields via the API, and I would then like ...
0
votes
0answers
63 views

Is it possible to change email deliverability via tooling API or Anonymous Apex?

In new sandboxes "Email Deliverability" is set to "System Email Only". This a manual step that we do and I would like to help eliminate it. Can that setting be changed programatically? I saw an ...
2
votes
1answer
205 views

Tooling API: Fetch sObject details of Process builder

I know we can fetch Active Version and latest version details using Tooling API from FlowDefinition, however is there a way we can fetch sObject details? '/services/data/v43.0/tooling/query?q=Select+...
0
votes
0answers
33 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 ...
2
votes
1answer
35 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. ...
3
votes
2answers
704 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 ...
2
votes
3answers
154 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 ...
2
votes
1answer
3k 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
609 views

Tooling api sObject type 'ProfileLayout' is not supported

I have a component that dynamically replicates a page layout . Im querying the ProfileLayout object to get the layout JSON, this works fine when i run as a sys admin, but fails when executed as a non-...
2
votes
0answers
66 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 ...
0
votes
1answer
43 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,...
2
votes
1answer
52 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 ...
2
votes
1answer
213 views

Unable to import binding 'SforceServiceBinding' with the Summer 19 Tooling API WSDL

I'm trying to update to the Summer `19 (v46.0) Tooling API WSDL in a .NET project. When I attempt to update the service reference from the v45.0 WSDL I get the following error from ...
1
vote
4answers
2k views

What is the best tool for using metadata API in python?

We use Salesforce REST and Bulk APIs extensively and now we have reached a point where we have to use the metadata API. Our use case is pretty trivial. We only have to create a custom object using ...
4
votes
1answer
1k 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 ...
1
vote
1answer
34 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 ...
0
votes
3answers
413 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 ...
0
votes
1answer
76 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 ...

1
2 3 4 5
7