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

What is Formula Definition in the Entity Definition and how is it useful to run a report or SOQL query

I would like to know the logic added in the formula field. With the standard/custom reports I can get the list of formula fields created on one entity like case/account/custom objects however to check ...
Lalitha Pavani Rallabandi's user avatar
0 votes
1 answer
41 views

How to deactivate all flows via sf cli

I'm trying to deactivate all active flows via sf data cli I saw docs said we can deactivate if via Metadata field You can activate and deactivate flows with the Metadata field. Below command is ...
vctqs1's user avatar
  • 45
0 votes
1 answer
29 views

How can I update the External Data Source via Metadata Api or Tooling Api?

I have a record for External Data Source Named as ED1 which is password protected having below details. DeveloperName ED1 Endpoint abc.com IsDeleted FALSE IsWritable FALSE ...
Pratik Shambharkar's user avatar
0 votes
0 answers
26 views

Create profile tooling API giving INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY

I created a CustomField using the tooling API: POST "tooling/sobjects/CustomField" But it creates a custom field without the permissions on "Field-Level Security for Profile" As I ...
Roland's user avatar
  • 101
0 votes
0 answers
37 views

Getting No such column error on PlatformEventChannel

I'm following documentation for integrating salesforce with AWS event bridge (HERE), but when I try to create a platform event channel With this payload: { "FullName": "...
Marcus's user avatar
  • 1
0 votes
0 answers
37 views

How to get field references in Reports/ReportTypes?

I am trying to solve a problem of many unused field in my org. This will be addressed by running a periodic job that will figure out the field usage via number of references and letting the audience ...
Apex Srinivas's user avatar
0 votes
0 answers
24 views

How to find the connected application from the endpoint

There is a spike in API calls being made with my user. I cannot figure out which application is causing these spikes. I created a ticket with Salesforce and the only information they can give me is ...
Nicole Perry's user avatar
0 votes
0 answers
24 views

Retrieve Sharing rules via tooling api [duplicate]

so firstly I am not very clear about what the tooling api on workbench is/does (I guess basically retrieve information about metadata objects?), but I have been able utilize to help me greatly with ...
Daniel Sieden's user avatar
0 votes
0 answers
32 views

Flow using "Send Slack Message" element and a view

I want to send a Slack message from a flow using a view, and there is a beta release for this that I want to try out in a sandbox. The flow does send a plain text Slack message without a view. So this ...
Daniel Wretman's user avatar
1 vote
1 answer
89 views

What are the database values for Status of SandboxProcess in the Tooling API?

Does anyone know of a reference for the database values of the SandboxProcess.Status field in the Tooling API? I want to query SandboxProcess, but filter out the Deleted and Deleting records in the ...
Aidan's user avatar
  • 13.5k
2 votes
2 answers
169 views

How to get pagelayout assigned to a non admin users in apex

I am trying to get pagelayout assigned to a user by querying ProfileLayout Object. I am running this query. select Layout.FullName from ProfileLayout where ProfileId='xxxxxxxxxxx' and recordtypeId = '...
Manjot Singh's user avatar
  • 3,406
1 vote
1 answer
73 views

Where are Bulk API queries to MetadataComponentDependency supported

The documentation suggests that you can query MetadataComponentDependency using the Bulk API. It seems to work fine in my scratch org sandboxes, but not in a DE org. Does anyone know if this is this a ...
Phil Hawthorn's user avatar
0 votes
1 answer
77 views

Tooling API - sObject type 'SecurityHealthCheckRisks' is not supported

q="SELECT RiskType, Setting, SettingGroup, OrgValue, StandardValue FROM SecurityHealthCheckRisks" [{"message":"sObject type 'SecurityHealthCheckRisks' is not supported.",&...
Santosh's user avatar
1 vote
2 answers
221 views

How to get the list of custom fields in my org which are used nowhere

How to get the list of custom fields in my org which are used nowhere? I tried to do SOQL query MetadataComponentDependency object using Tooling API to get all component dependency records, but only ...
Aritra Chakraborty's user avatar
0 votes
1 answer
228 views

Programmatically list all Profiles and compare the permissions

I'm working on building a tool in Salesforce that allows me to compare two profiles. As part of this tool, I need to programmatically list all profiles in Salesforce along with their permissions. ...
Krishnamurthy's user avatar
4 votes
2 answers
898 views

Is there a *public-facing* list of GACK codes?

While Salesforce's internal processes are somewhat shrouded in mystery, we have been allowed a high-level look at the GACK process. What our team is noticing is that certain GACK IDs are consistent : ...
Rob Cowell's user avatar
0 votes
2 answers
119 views

How to bulk remove components from an unlocked package?

As part of this effort Preserving org data when converting orgs from an unlocked package to a managed package version of the same code? I'm looking for a way to remove hundreds of items from an ...
Keith C's user avatar
  • 135k
1 vote
0 answers
96 views

Postman returning FIELD_INTEGRITY_EXCEPTION, on inserting PlatformEventChannelMember

In this trailhead: https://trailhead.salesforce.com/content/learn/projects/create-a-custom-channel-and-enrich-change-events/add-a-channel-member-and-configure-change-event-enrichment I'm trying to add ...
Luis Aguiar's user avatar
1 vote
1 answer
443 views

Activating Flow Using Flow Tooling API

I have requirement to activate flow using tooling API { Not through deployment } I am trying to use below endpoint with body services/data/v56.0/tooling/sobjects/Flow/{Id} Response { "...
Rajesh Kumar's user avatar
0 votes
1 answer
662 views

How to use tooling api to query data in Apex [duplicate]

I want to retrieve the test-coverage with tooling-soql query SELECT ApexClassOrTrigger.Name, NumLinesCovered, NumLinesUncovered FROM ApexCodeCoverageAggregate ORDER BY ApexClassOrTrigger.Name ASC It ...
Shubham Jangid's user avatar
2 votes
0 answers
92 views

Package version creation failed Invalid type: EntitySubscription

I am getting the below error when I am trying to create a patch version. Package version creation failed with an unknown error. Invalid type: EntitySubscription. This Sobject is available in the ...
Saurabh's user avatar
  • 27
0 votes
0 answers
76 views

Send Health Check report results through email

I have a use case where I need to send the details of Health Check results through email by an automation. I tried using SecurityHealthCheckRisks object to retrieve data and send it through ...
sourav guha's user avatar
-3 votes
1 answer
96 views

Is it possible for an apex classe to update code of another apex class at runtime? [closed]

Currently, I am trying to update specific references in my apex code with something else, for example, changing all variables having name as LOG to Log, I know it can be done via vs code's replace all ...
Anant666's user avatar
3 votes
0 answers
223 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 ...
Sanjay Kharwar's user avatar
0 votes
1 answer
115 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 ...
Patlatus's user avatar
  • 16k
0 votes
1 answer
87 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....
Apex Srinivas's user avatar
0 votes
1 answer
2k 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&...
Strong Like Bull's user avatar
0 votes
0 answers
207 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();...
Blake's user avatar
  • 121
4 votes
1 answer
76 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 ...
Jason Clark's user avatar
  • 11.8k
2 votes
0 answers
140 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 ...
Chirag Mehta's user avatar
  • 1,291
0 votes
1 answer
118 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 ...
dbase1's user avatar
  • 176
0 votes
0 answers
26 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, ...
MattD's user avatar
  • 121
0 votes
1 answer
254 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 ...
metasync's user avatar
  • 1,762
3 votes
1 answer
631 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 ...
Chakravarthy's user avatar
2 votes
2 answers
242 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?
Don's user avatar
  • 108
1 vote
0 answers
75 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 ...
Thara's user avatar
  • 11
1 vote
0 answers
218 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+...
raunakchoraria's user avatar
0 votes
1 answer
461 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 ...
user3214361's user avatar
0 votes
1 answer
83 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:
Kumar Vivek's user avatar
0 votes
0 answers
79 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'...
Jeff's user avatar
  • 909
0 votes
0 answers
197 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 ...
dexxter_7's user avatar
0 votes
0 answers
53 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 ...
dexxter_7's user avatar
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 ...
Brian Kessler's user avatar
0 votes
1 answer
378 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')")[ ...
ThaNoob's user avatar
  • 149
0 votes
0 answers
128 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 ...
Bartłomiej Góral's user avatar
4 votes
1 answer
754 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 ...
Bartłomiej Góral's user avatar
0 votes
1 answer
928 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/...
infa salesforcetest's user avatar
1 vote
2 answers
200 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 ...
Rich's user avatar
  • 17
0 votes
1 answer
388 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,...
Strong Like Bull's user avatar
0 votes
2 answers
1k 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,...
Rich's user avatar
  • 17

1
2 3 4 5
9