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
0 answers
51 views

Can I get flow interview details using APEX/Metadata/Tooling API for any specific record?

My Use case: I have created a trigger flow on Lead to run after 3 days of lead creation. I want to show the interview status in a LWC component Users can pause/reschedule interviews from the LWC ...
0 votes
1 answer
38 views

Why Tooling API doesn't support composite/sobjects resource? [duplicate]

The documentation for Tooling API suggests that Tooling API supports composite/sobjects resource Update Multiple Records with Fewer Round-Trips Use a PATCH request with sObject Collections to update ...
  • 14.8k
0 votes
1 answer
48 views

How to get all the available set of CustomField data types?

I am working on a requirement to create CustomField from a LWC form. I am able to use Tooling API to create customfields of type 'text'. I want to extend this functionality to other data types as well....
0 votes
1 answer
307 views

Unable to get an Access token using a named credential and getting a State not Send OAuth Error

I am trying to get SF access token using a named credential as that is the secure way as mention here: I am basically unable to login successfully and get the following error : No_Oauth_State&...
0 votes
0 answers
74 views

How to update StandardValueSet metadata using Tooling API

I am experimenting with the Tooling API to update the standard picklist values for the Type field on the Account. I have created Apex code to retrieve the metadata: HttpRequest req = new HttpRequest();...
  • 81
4 votes
1 answer
61 views

Missing collection information (Parameterized Type) in SymbolTable

I've just started working with ApexClass.SymbolTable from the ToolingAPI. In the documentation, a SymbolTable entry contains properties, variables, and methods which have parameters. The ...
  • 11.4k
2 votes
0 answers
53 views

Is there a way to access Tooling API METADATA objects without granting “View Setup and Configuration“ permission?

When trying to access METADATA (Setup) objects (such as FieldSet, Layout, ValidationRule, WorkflowRule, etc.) via Tooling API, without granting “View Setup and Configuration“ permission get the below ...
  • 1,231
0 votes
1 answer
76 views

Is it possible to create a field on a system object?

I need to create a field on DatedConversionRate object (advanced currency management object). The object is missing in the Object Manager, so I can not create the field via the UI. I am not able to ...
  • 55
0 votes
0 answers
19 views

Inconsistent visibility of DeploymentStatus field on EntityDefinition based on API version, org type, permission?

In a current Developer org, and in a past Unlimited org I had access to, I was able to use this query in Dev Console or in Apex without any problems: SELECT DeploymentStatus, DeveloperName, DurableId, ...
  • 121
0 votes
1 answer
122 views

Read single ApexClass/ApexTrigger metadata files without using retrieve call

We are looking to read single Metadata component's files in a quick manner because in our usecase, user would be waiting in screen while we fetch the metadata. SOAP API readMetadata is intended for ...
  • 1,692
0 votes
0 answers
28 views

Tooling API not returning custom picklist field [duplicate]

Hello I am facing a problem concerning the tooling API , I am trying to fetch the picklist values of a record type but when using this api /services/data/v41.0/tooling/sobjects/RecordType/...
0 votes
0 answers
47 views

ExternalStringLocalization update by ToolingAPI

How to update (PATCH) or delete ExternalStringLocalization by ToolingAPI? I found question create and update custom labels through ToolingAPI - but this is only about create (POST). The next question ...
  • 113
3 votes
1 answer
235 views

Add new global picklist value to object's recordtype

Purpose: I have a small requirement where i need to modify a global picklist values (i.e. add new values / deactivate existing values) from outside salesforce and to use those values in our daily ...
2 votes
1 answer
83 views

Is there a way to see created by , last modified by in feild definition using tooling api, metadata api or other ways in Apex?

Is there a way to see created by , last modified by in feild definition using tooling api, metadata api or other ways in Apex?
  • 98
1 vote
0 answers
50 views

I'm trying to update a config value through Http POST but it is not working - Salesforce APEX

I'm trying to do this: Go to Utilities - REST Explorer Select the "POST" radio button Replace the with the id from Step 4. Replace the with the id from Step 5. Fill up the form with the ...
  • 11
0 votes
0 answers
25 views

Permission required to call SandboxInfo [duplicate]

What is the minimum permission required to call the sandboxInfo tooling api. I tried granting view all data permission but got error as sobject type sandboxInfo is not supported. Could someone please ...
1 vote
0 answers
100 views

Getting multiple custom field with same name using Custom Field Tooling API

I am facing a scenario where I am getting multiple custom fields with same name when executing tooling api for Custom Field The API I am using is : /services/data/v55.0/tooling/query?q=Select+...
  • 287
0 votes
0 answers
31 views

Picklist values for record type using tooling API [duplicate]

I am adding new values to a global picklist and need to activate them for a custom picklist field of a custom object with the ui-API, using /services/data/v51.0/ui-api/object-info/{objectAPIName}/...
0 votes
1 answer
300 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 ...
0 votes
1 answer
52 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
44 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'...
  • 879
0 votes
0 answers
108 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
77 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
35 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
43 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
0 answers
123 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 ...
0 votes
1 answer
230 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')")[ ...
  • 149
0 votes
0 answers
50 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
0 answers
83 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
515 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 ...
0 votes
1 answer
360 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/...
1 vote
2 answers
150 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 ...
  • 17
0 votes
1 answer
196 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
2 answers
720 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,...
  • 17
0 votes
1 answer
443 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....
  • 5
0 votes
1 answer
202 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 ...
  • 17
0 votes
0 answers
157 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: ...
  • 17
0 votes
1 answer
276 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: ...
  • 17
-1 votes
1 answer
168 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 ...
  • 105
0 votes
1 answer
283 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
98 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 ...
0 votes
2 answers
99 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 ...
  • 2,465
-1 votes
1 answer
173 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 ...
0 votes
1 answer
543 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'); ...
1 vote
0 answers
30 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
469 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+...
  • 159
0 votes
0 answers
163 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
543 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://[...

1
2 3 4 5
9