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
34 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
0answers
31 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
0answers
29 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 /...
1
vote
2answers
37 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 ...
1
vote
1answer
19 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 ...
0
votes
0answers
17 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 ...
3
votes
1answer
85 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?
0
votes
1answer
114 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?
0
votes
1answer
110 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....
0
votes
1answer
70 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 ...
0
votes
2answers
96 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":&...
0
votes
0answers
15 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 ...
0
votes
1answer
31 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 ...
0
votes
0answers
44 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 &...
0
votes
1answer
46 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. //...
1
vote
2answers
193 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 ...
0
votes
0answers
104 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/...
1
vote
1answer
56 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 ...
0
votes
0answers
33 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 ...
0
votes
1answer
42 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(...
0
votes
1answer
65 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, ...
0
votes
0answers
42 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 ...
0
votes
1answer
44 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 ...
1
vote
1answer
80 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 ...
0
votes
2answers
48 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 ...
0
votes
1answer
75 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 ...
1
vote
1answer
29 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';
1
vote
0answers
24 views

Salesforce query for working in code for testing [duplicate]

Below is the query i want to run without using tooling api is there a way possible if not how to use tooling api in my code as i Have never used it in code apart from dev console. SELECT ...
0
votes
1answer
186 views

Error while executing query for custom fields using Tooling API

I am trying to get all the custom fields, but on using the tooling API through APEX am getting the below error APEX Code : String baseURL = URL.getSalesforceBaseUrl().toExternalForm()+'/services/...
0
votes
1answer
46 views

A CommThemeLayoutPage flexi-page installed from a managed package appears to be neither editable or updatable

We have a Community (AKA Digital Experience) packaged including LWCs and many flexi-pages (of type CommAppPage) that leverage a couple of theme flexipages (of type CommThemeLayoutPage). I can find no ...
0
votes
1answer
46 views

Why PIcklistValues is empty? [duplicate]

I use a '/services/data/v41.0/tooling/sobjects/RecordType/'. But picklistValues is always empty, I need it to edit from code
3
votes
1answer
82 views

How to distinguish between Custom Objects and Platform Events when querying the CustomObject table?

The CustomObject table that can be accessed via the Tooling API includes fields like: NamespacePrefix DeveloperName that provide enough information for a Custom Object API name to be constructed as ...
1
vote
0answers
49 views

Parsing of Json response from Tooling API code [duplicate]

Please have a look through the attached debug log Below is my code:- Apex Class:- Http http = new Http(); HttpRequest request = new HttpRequest(); request.setEndpoint(Url....
3
votes
1answer
396 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 ...
0
votes
0answers
62 views

How to query Standard field's fieldId

The standard field Ids for Opportunity standard fields are opp1, opp2, opp3... and so on. Is there a way to query them using JS connection sdk or any tooling API available to query these. The use case ...
0
votes
0answers
45 views

Using Tooling (REST) API for OperationLog

How to run territory rules using Tooling API (REST). I have tried it as shown below but I get a parsing error (Cannot deserialize instance of complexvalue from START_OBJECT value ). I am following the ...
0
votes
0answers
42 views

Confused about Salesforce Document

I try to use Salesforce Tooling API or Metadata API to get Flow metadata information. I check follow salesforce documents: https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/...
1
vote
1answer
32 views

Is there any way to get input variables information for a flow in managed package?

I use Salesforce API to check Flow's input variables information. In my org I install a managed package which have 2 Flows, each of them has one input variables. I can get these Flows Metadata info by ...
0
votes
0answers
63 views

Tooling Api - bypass the Duplicate Label Error

I'm trying to update a global value set, using Tooling API. When I'm trying to insert a new value - if its label contained already in my old values or in my list which I'm about to upsert, Its throw ...
1
vote
1answer
192 views

Disable managed validation rules via API

I have a requirement to disable validation rules in a managed package via API. I have tried using the Tooling API and update the validation rule object to deactivate it, but the issue is that I have ...
0
votes
1answer
185 views

Update Global Value Set using Tooling API

I'm trying to update a global value set, using Tooling API. My issue is when I update the global picklist - if I have values in it that does not exist in my new JSON - it's putting them as inActive. ...
3
votes
3answers
697 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
1answer
125 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
1answer
33 views

Is there a way to add individual users or a public group to a Library programmatically?

I'm looking for a way to add individual users or a public group to a Library programmatically using Apex. I've been investigating if there is an API that let me do that, but I had no luck. I know I ...
3
votes
0answers
114 views

Tooling API Query (FieldDefinition) for null EntityDefinition.NamespacePrefix?

I need to run a ToolingAPI query of FieldDefinition, where the SObjectName and NamespacePrefix will be passed as parameters. This isn't working when there is no NamespacePrefix on the object. Here ...
0
votes
1answer
125 views

sObject type 'RemoteProxy' is not supported

I'm having: "sObject type 'RemoteProxy' is not supported." when I try to do an API call. I'm sure it is a profile permission issue. RemoteProxy relates to 'Remote Site Settings'. On the ...
1
vote
0answers
576 views

This session is not valid for use with the REST API

I am getting this when try to use Salesforce REST API from it's apex [{"message":"This session is not valid for use with the REST API","errorCode":"...
0
votes
1answer
163 views

How can I write a post install script in apex that creates named credentials?

I would like to understand: If we can write a post install script to create a named credential that is required to be able to view a certain report in the managed package(the report feature that I am ...
1
vote
1answer
101 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. ...
1
vote
1answer
57 views

How to merge field metadata attributes without overwriting existing attributes

We want to update the <ComplianceGroup> attribute on thousands of fields based on a list that our Legal department maintains. If we could just deploy the object, field and ComplianceGroup value, ...

1
2 3 4 5
8