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
3 votes
3 answers
2k views

How to query MetadataComponentDependency for "Standard" Field?

I'm trying to use the New Dependency API to find usage location of Standard Fields. Due to limitations, you cannot filter by API Name and must instead use via the MetadataComponentId: SELECT ...
0 votes
1 answer
34 views

How to remove key-value from JSON

I'm trying to get the Metadata of Global picklist from tooling API Below is the code Map<id, MetadataRecords> metadataMap = new Map<id, MetadataRecords>(); String ...
2 votes
1 answer
972 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
1 answer
32 views

salesforce "customobject" tooling api returns more records than what seeing in the system overview

The "CustomObject" tooling API returns more records than what i am seeing in the System Overview UI. Can someone please explain the reason for it, thanks. API response: System Overview:
0 votes
0 answers
15 views

Queue multiple PackageInstallRequest to be installed in order?

I can create multiple PackageInstallRequest records via the Tooling API to queue the installation of multiple packages, but the packages are installed in an indeterminate order. Some of the packages I'...
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 ...
0 votes
0 answers
37 views

I am trying to fetch Apexlogs using the tooling API but getting an error of "URL No Longer Exists"

ApexLog al = [SELECT Id, LogUserId, LogUser.Name, Request, Operation, Application, Status, StartTime, Location, LogLength FROM ApexLog LIMIT 1]; String logId = al.Id; System.debug(logId); // Set ...
0 votes
0 answers
40 views

Create SandboxInfo record using tooling API

I'm working on automating sandbox management. Just wondering if we are able to create/update sandboxinfo record using tooling API. I was able to retrieve list of records from workbench using GET /...
0 votes
0 answers
27 views

How to fetch apexlogs using Lightning Web Components?

I am new to salesforce dev, and wanted to know how can we fetch the apexlogs using a lightning component with tooling API? I found this from the documentation: /sobjects/ApexLog/id/Body/. But how can ...
1 vote
0 answers
40 views

Is it possible to POST multiple Tooling SObjects with a single request? [duplicate]

I've seen and tested that I can create or update single records of TraceFlag (for example) using "/tooling/sobjects/SObjectName/". However, years of working with Salesforce has ingrained in ...
0 votes
1 answer
221 views

LWC html tries to load data before it is completed

Outline: aura component controller is creating a LWC component (data-table) inside of a created tab: aura js: viewContent : function(component, event) { console.log('viewContent invoked'); ...
0 votes
1 answer
545 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....
2 votes
0 answers
604 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
0 answers
39 views

how to get the appExchange package namespace and version details from listing url

I am working on package automation, to install/upgrade and uninstall the package through APIs. I am achieving this with a combination of metadata API classes and Tooling SOQL queries. i have a couple ...
1 vote
2 answers
293 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 ...
0 votes
1 answer
277 views

Is it possible to create a CMS workspace using API or with Metadata deploy?

I'm trying to see if we can create a CMS workspace by using Metadata API or any other way programatically, instead of creating it through the UI as mentioned here. Also if I create a CMS workspace in ...
0 votes
1 answer
648 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 ...
1 vote
1 answer
169 views

Salesforce to Salesforce Migration

We are doing Salesforce (old instance) to Salesforce (new instance) migration. We have Standard and custom objects in our old instance which are needed to be migrated to the new Salesforce instance. ...
0 votes
1 answer
77 views

What fields are shown in the object manager (Activities)?

If I query fields by using: task_fields = pd.DataFrame(sf.query( "SELECT QualifiedApiName, Label FROM FieldDefinition WHERE EntityDefinition.Label IN ('Task')")[ ...
0 votes
0 answers
37 views

Issue creating BusinessProcess using Tooling API

I am trying to create a BusinessProcess using the Tooling API. I approached the problem exactly like its described here - Create/Update GlobalValueSet This is the JSON I am using - { "FullName&...
0 votes
1 answer
870 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
0 answers
36 views

How to create multiple ApexClassMembers with one call?

According to answer to my previous question, Tooling API objects are not supported in /composite calls. Is there a way to insert a large (let's say 2000) number of ApexClassMembers instead of ...
4 votes
1 answer
244 views

Rest calls for Tooling API object with composite do not work

I'm trying to create multiple ApexClassMember records via REST Tooling API calls. In official documentation they claim, that You can Create Multiple Records with Fewer Round-Trips However, in ...
1 vote
2 answers
79 views

Tooling API - UserFieldAccess - Receiving UNKNOWN_EXCEPTION error

I was hoping someone might be able to shed some light on this error please. Error is: UNKNOWN_EXCEPTION [object Object]: An unexpected error occurred. Please include this ErrorId if you contact ...
0 votes
2 answers
188 views

Retrieving results from UserFieldAccess using DurableId

I have used this query to obtain up to date results for Field ID for the Contact Object: SELECT Id,DeveloperName,CreatedDate,CreatedById,Description,EntityDefinitionId,InlineHelpText,LastModifiedById,...
0 votes
1 answer
117 views

How to retrieve object description using REST API/Object tooling/SOQL

I got a question for retrieving custom/standard object description(marked in green color in below image) using rest/object tooling/soql. As per Salesforce document (https://developer.salesforce.com/...
0 votes
1 answer
73 views

Bulk API Usage Report

I am trying to create a daily report for bulk api usage in the org. The information I need to have in that alert is: userId,jobId,entityType,verb,startTime,endTime,totalProcessedTime,batches,retries,...
0 votes
1 answer
122 views

Difference between Tooling & Rest API when retrieving fields from USER object

I was trying to get the "User" object's fields list, So I tried to do it using an SOQL query via REST API: Select QualifiedApiName From FieldDefinition where EntityDefinition....
0 votes
1 answer
70 views

Cannot download FieldDefinition data for Contact object

I cannot download the FieldDefinition data using the Tooling API for all Contact fields. I have used this query to get the Id for the Contact object: SELECT Id FROM EntityDefinition where ...
4 votes
1 answer
8k 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 ...
0 votes
0 answers
76 views

Cannot find custom fields that are part of an installed package in Tooling API object 'CustomField'

I'm trying to find out which object (using the Tooling API) stores custom fields for installed packages. I've downloaded all custom fields from this object: 'CustomField' for the Contact object: ...
-1 votes
1 answer
87 views

Is there an hourly API/DML limit? Or per-user limit?

I know there's the daily/monthly limits, which we aren't exceeding. However, we are seeing an issue where one of our Integration Users is seeing their API calls stalling out, but at the top of the ...
0 votes
1 answer
85 views

How to get all MetadataComponentDependency records for Contact object

I'm trying to use the Tooling APi to get the 'Where is this used?' data for all Contact custom fields, but I dont know how to filter on only custom fields for the Contact object, I have this so far: ...
0 votes
1 answer
80 views

Salesforce Flow Invokeable Apex making correct API call while debugging, as soon as I run the flow from custom app it doesn't work

Following code, works fine when invoked by the flow while in debug mode, but as soon as I run the flow in custom app it doesn't work. global with sharing class GovernorLimits { private class ...
0 votes
0 answers
65 views

Сan we get number of available developer sandboxes in production via apex

I need to get number of available Developer Sandboxes in production via apex. I know that we can get it via Setup : I know that we can get number of Developer Sandboxes which we use via Tooling Api ...
6 votes
1 answer
2k views

Trying to get SymbolTable of an Apex class and get null

I'm quering Apex classes using Tooling API QueryResult queryResult = toolingConnection.query("select Id, ApiVersion, Name, NamespacePrefix, SymbolTable, Body from ApexClass where NamespacePrefix = ...
0 votes
0 answers
114 views

Problem with updating record using tooling API

I am trying to update values for the following settings using POST https://{instanceurl}/services/data/v51.0/tooling/sobjects/PasswordPolicies API but unable to update it. Even response is showing ...
0 votes
2 answers
43 views

How to indent code in apex class created using tooling API

I have below apex code to create a new apex class from a string using tooling api apexBody = '{"Name": "myClass", "body": "public class myClass {@AuraEnabled public ...
-1 votes
1 answer
68 views

Cannot See Validation Rules

My boss has asked that we modify all validation rules in our org. We’re creating a custom setting that will allow admins to bypass all validation rules (validation rules will not apply to admins in ...
1 vote
0 answers
28 views

Missing sObjects on Tooling API [duplicate]

I was trying to query some entries using the Tooling API to get the SymbolTable from ApexClass/ApexTrigger. To do this I need to use the following sObjects (from Tooling API): ApexClass; ...
0 votes
1 answer
165 views

Tooling API - Query sObject not support error

I am trying to use tooling API to do some dynamic metadata analysis and I have it a roadblock. While trying to execute a simple anonymous query using below /services/data/v51.0/tooling/query/?q=select+...
1 vote
3 answers
1k 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. ...
0 votes
0 answers
86 views

Can not create Trigger for Custom Object with Tooling Api

I need to write logic for creating triggers for Standard and Custom Objects. It works for Standard Objects. However when I try to create trigger for Custom Object with Tooling Api I get following ...
1 vote
0 answers
20 views

How can I set PermissionsEdit and PermissionsRead on a custom field using SOAP? [duplicate]

How can I set PermissionsEdit and PermissionsRead on a custom field using SOAP? What is the URL endpoint and XML structure? I found this doc, https://developer.salesforce.com/docs/atlas.en-us....
0 votes
1 answer
213 views

Delete CustomField using Tooling API

i can correctly create CustomFields on my account using Tooling API, but i can't delete them the same way. The documentation is not clear about this part and, if i try to use a DELETE call on the ...
0 votes
0 answers
42 views

How can I make a custom field visible with the REST API (NOT THE WEB UI)? [duplicate]

How can I make a custom field visible with the REST API (NOT THE WEB UI)? Preferably when I create the custom field. Currently I create a field like this, curl --request POST \ --url https://[...
2 votes
0 answers
70 views

Retrieve GlobalValueSet colors with REST API

I have defined color values for a Picklist/GlobalValueSet in the Salesforce Ui. When I look up the resource directly /services/data/v53.0/tooling/sobjects/GlobalValueSet/{id} or do a SOQL query /...
2 votes
2 answers
540 views

Tooling API - Get all Active Workflow and Validation Rules

I would like to find all active workflow rules and validation rules for a specific object, ultimately with the aim of deactivating and later reactivating. I have looked at using the Tooling API but ...
3 votes
1 answer
630 views

Unable to correctly configure a specific User as an Apex Platform Event subscriber

I'm following this Configure the User and Batch Size for Your Platform Event Trigger documentation taking this Tooling API REST option. The resulting PlatformEventSubscriberConfig record can be ...
1 vote
1 answer
55 views

Is there a command you can use to get a list of all features that are currently active in an org?

Looking to make a near-perfect scratch org definition without using org shapes. I see there may be a way to do it with the tooling api but I'm not exactly sure how. It'd be nice to have an sfdx ...

1
2 3 4 5
9