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
1 answer
59 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')")[ ...
user avatar
  • 149
0 votes
0 answers
28 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&...
user avatar
0 votes
0 answers
33 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 ...
user avatar
3 votes
1 answer
138 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 ...
user avatar
0 votes
1 answer
45 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/...
user avatar
1 vote
2 answers
58 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 ...
user avatar
  • 17
0 votes
1 answer
36 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,...
user avatar
  • 217
0 votes
2 answers
86 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,...
user avatar
  • 17
0 votes
1 answer
69 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....
user avatar
  • 3
0 votes
1 answer
46 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 ...
user avatar
  • 17
0 votes
0 answers
38 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: ...
user avatar
  • 17
0 votes
1 answer
40 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: ...
user avatar
  • 17
-1 votes
1 answer
54 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 ...
user avatar
  • 77
0 votes
1 answer
35 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 ...
user avatar
0 votes
0 answers
54 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 ...
user avatar
0 votes
0 answers
90 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 ...
user avatar
0 votes
2 answers
36 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 ...
user avatar
  • 2,215
-1 votes
1 answer
42 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 ...
user avatar
0 votes
1 answer
132 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'); try ...
user avatar
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; ...
user avatar
0 votes
1 answer
69 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+...
user avatar
  • 159
0 votes
0 answers
57 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 ...
user avatar
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....
user avatar
0 votes
1 answer
128 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 ...
user avatar
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://[...
user avatar
2 votes
0 answers
62 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 /...
user avatar
2 votes
2 answers
299 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 ...
user avatar
  • 5,165
1 vote
1 answer
29 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 ...
user avatar
  • 11
0 votes
0 answers
19 views

Programatically Deactivate/Activate Trigger Using Metadata/Tooling API [duplicate]

I am quite new to Salesforce integration and have the below requirement. I have a requirement to dynamically create/deactivate triggers in Salesforce. I was able to query and create the trigger using ...
user avatar
4 votes
1 answer
254 views

Which Tooling API Objects can be queried in Apex?

I would like to know which objects I can query in Apex which are not listed in the SOAP API Developer Guide but are listed in the Tooling API Developer Guide. Is there a list maintained somewhere?
user avatar
  • 142k
0 votes
1 answer
519 views

Can I query for Custom Label Translations?

I need to see what custom labels I have provided translations for, but the interface in Setup does not make this easy. Is it possible to query for this information or access it via an API?
user avatar
  • 3,594
0 votes
1 answer
185 views

Tooling API Composite Request

I'm trying to create multiple flexipage records from workbench using the tooling API but I'm getting a 404 error "Resource Not Found". I followed the following resource: https://developer....
user avatar
  • 13
0 votes
1 answer
129 views

Use cases of different Salesforce APIs

I wanted to understand in what scenarios we can use the below APIs: Metadata API Tooling API UI-API Composite API REST API Its very confusing if we are checking from the documentation. What could be ...
user avatar
  • 494
0 votes
2 answers
244 views

Tooling api sObject type 'Layout' is not supported (Permissions)

We need to work with layouts, though Apex code failed with an error for non-admin users. Error message: [{"message":"sObject type 'Layout' is not supported.","errorCode":&...
user avatar
0 votes
0 answers
29 views

MetaData / Tooling Api to get custom application configuration?

I am trying to generate some metadata for a custom application that was deployed on the salesforce instance recently. I tried the Custom Application object in tooling, but that seems to give high ...
user avatar
  • 101
0 votes
1 answer
57 views

How to get the list of value from the metadata when updating picklist values through REST API

I am trying to update a picklist values through REST API, I'am having a problem getting the list of values so I can add new picklist values. I'am having an error System.TypeException: Invalid ...
user avatar
  • 113
0 votes
0 answers
52 views

error while querying tooling api for FullName EVEN WHEN LIMITED TO ONE RESULT

I've been using the tooling API to query layouts and I need to access the metadata or FullName fields. I know I can only use this with a single row at a time, so I either loop over all layouts with a &...
user avatar
0 votes
1 answer
54 views

INVALID_FIELD_FOR_INSERT_UPDATE when creating/updating an Apex class via Tooling API

I am trying to save an batch apex class dynamically via the tooling api. //I want the batch class to be of the sObject type that user wants. //Regex replaces %s with className provided by the user. //...
user avatar
1 vote
2 answers
516 views

How to resolve INVALID_SESSION_ID error on fetching Tooling API data

Using the Tooling API I need to fetch All Workflow rule Details. My below code work perfectly on the developer console Anonymous Window, but in LWC when I envoke the method with @wire shows me an ...
user avatar
  • 159
0 votes
0 answers
587 views

How to get only active workflow rules

Tooling API help to get all workflow rules, But I need only active workflow rules. How to get the active property information. for all workflow rules (Including inactive ) /services/data/v36.0/tooling/...
user avatar
  • 159
1 vote
1 answer
102 views

Querying based on user profile

I want to write queries to check what apps page layouts lightning components fields are accessible to a particular user profile for a particular object. I also want to find out whether the user ...
user avatar
0 votes
0 answers
40 views

Do you use the Tooling API from the InstallHander for a push upgrade?

Managed package upgrades do not automatically update components that can be locally edited such as flex-pages. But when doing push upgrades, it seems to me that any such items that have not been ...
user avatar
  • 129k
0 votes
1 answer
57 views

Create case and attachment in one single transaction via Salesforce dotnet client

I would like to create a case and attachment in one single transaction by using the Salesforce DotNetForce client. This is how I would do this directly in Apex: // start transaction Case c = new Case(...
user avatar
  • 1,410
0 votes
1 answer
102 views

Execute Anonymous via Simple_Salesforce throwing EOF exception

I'm attempting to execute a simple anonymous Apex script via Python with the simple_salesforce library. from simple_salesforce import Salesforce sf = Salesforce(instance=scratch_org_instance, ...
user avatar
0 votes
0 answers
72 views

How to get Field Filter lookup Metadata?

How to find metadata related to filter lookup on fields (trying to build filter myself). Tooling API doesn't work for all type of user.(Only for users having setup permission) UI-API gives filtered ...
user avatar
  • 3,309
0 votes
1 answer
71 views

What are the possibilities to compile and create apex code through api

I have an app that creates apex classes for some purposes, right now we are using Tooling Api, but some objects are not entirely accessible with it (e.g. developerName in RecordType Object). So my ...
user avatar
  • 17
1 vote
1 answer
193 views

query and update time based actions

I have a requirement to update the time trigger condition in a active time based workflow rule Right now there are more than 1000 records related to it as i can see in the monitoring secttion, but i ...
user avatar
0 votes
2 answers
80 views

Querying for RecordType's DeveloperName throws error when generating code through tooling

I get this error when querying for DeveloperName via the Tooling API even though I can perform the same query in the developer console with the same user. "No such column 'developername' on ...
user avatar
  • 17
0 votes
1 answer
126 views

How can I generate a periodic report or dashboard for Salesforce Bulk API Usage within a particular org?

I want to be able to capture on which user is running the batch jobs and how many bulk API batches are being used on a daily basis. We would like to track the 24 hour bulk A batch limit . I am aware ...
user avatar
  • 461
1 vote
1 answer
58 views

How to get the name and suffix of the picture in the rich text field?

String strName = 'yes-circle-ma…'; String Image_Type = 'PNG';
user avatar
  • 323

1
2 3 4 5
9