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
2answers
19 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
27 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
27 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
22 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
765 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
1answer
40 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
30 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
37 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
1
vote
2answers
97 views

How to get references(where the field is used) of a custom field in salesforce via API or Tooling API

I want to find the references of a custom field i.e. where is the field used e.g. Layouts, Apex Classes, etc. via the AP/Tooling API. There is an option on UI in professional salesforce orgs called ...
3
votes
3answers
159 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 ...
3
votes
1answer
68 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
27 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....
0
votes
1answer
1k 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 ...
1
vote
1answer
91 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
41 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 ...
8
votes
2answers
2k views

Update StaticResource via APEX ToolingAPI

I'm trying to update StaticResources from APEX. Currently I'm using async methods of apex-mdapi and it works good. On the other side I'm using apex-toolingapi to update ApexClasses which works even ...
0
votes
0answers
33 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
38 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
24 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
29 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 ...
0
votes
1answer
81 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
1answer
451 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....
1
vote
1answer
58 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
66 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
76 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. ...
0
votes
1answer
531 views

How to Update Static resource using Tooling api in salesforce?

Httprequest req =new HttpRequest(); req.setEndpoint(URL.getSalesforceBaseUrl().toExternalForm()+'/services/data/v28.0/tooling/sobjects/staticresource/08190000000cgISAAY/'+'?_HttpMethod=PATCH'); req....
0
votes
1answer
22 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
3answers
826 views

Tooling api sObject type 'ProfileLayout' is not supported

I have a component that dynamically replicates a page layout . Im querying the ProfileLayout object to get the layout JSON, this works fine when i run as a sys admin, but fails when executed as a non-...
4
votes
2answers
220 views

How to identify Advanced Currency Management (ACM) is enabled

Is there a way to find if the Advanced Currency Managementenabled using api or apex or soql? I have able to check if the multi-currency is enabled by using the api endpoint /services/data/v40.0/...
3
votes
0answers
64 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 ...
11
votes
2answers
6k views

Dynamically set remote site Setting in Apex

I have created a managed package that uses tooling API for updating class, trigger etc. Everything runs fine with all sorts of testing. I have created this package in my Developer org. I had to set ...
0
votes
1answer
44 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 ...
7
votes
2answers
986 views

Tooling API - Enable/Disable Parallel Test Execution?

I am creating a tool related test class execution scheduler. Does Salesforce provide any way for the Tooling API to enable or disable Parallel Test Execution? I want to set this setting by Apex and ...
1
vote
0answers
146 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":"...
1
vote
1answer
114 views

Retrieving audit fields of a custom metadata type object

Problem: need to know who and when created and/or last modified the custom metadata type object. This information is captured in various system fields on the object. The screenshot shows two such ...
0
votes
1answer
95 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
81 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
35 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, ...
0
votes
0answers
35 views

Is there a way to edit Page Layout Assignments via Apex code [duplicate]

Is there a way to edit Page Layout Assignments via Apex code? I've read that using the Metadata API for example is not possible. I can query PageLayout records using the Tooling API, but can't edit ...
1
vote
1answer
68 views

See when AuraDefinitionBundle was last updated?

I know we can Query AuraDefinitionBundle with the tooling api and retrieve some fields, but one that is not included is Last Modified Date. How would one retrieve that information for all ...
1
vote
1answer
48 views

Apex: Second Tooling API Query per transaction returns incorrect results

I'm writing code that uses the somewhat new "Security Classification" on custom fields to modify its behavior. This value is not (yet?) available via DescribeFieldResult, so I'm querying the Tooling ...
1
vote
0answers
47 views

How to check what components are using standard fields uisng Dependency API?

This is the process I am following to see what components are dependent on CustomField : Account.Foo__c First get Id of custom field: sfdx force:data:soql:query --query="SELECT Id,DeveloperName ...
0
votes
0answers
40 views

Salesforce Trust api Call from salesforce

Salesforce provided some apis to make a request and get the salesforc staus in anwhere(like in other app) for dashboards perspectives. I am not able to get how i can use get request in workbench for ...
0
votes
1answer
245 views

Named Credential Tooling API SOAP Envelope

Attempting to switch from using custom setting to named credential for authentication. I've updated the http request endpoint to use the named credential but how to update the SOAP envelope to not use ...
5
votes
1answer
2k views

find out dependent fields, object and classes in salesforce

I want to know class is dependent to which class, object, and Field. I have tried to retrieve data from SymbolTable but it doesn't show me dependent Class Name or ID. Is there any another way to ...
0
votes
1answer
41 views

Using Metadata or Tooling api to get Custom Application's association with Custom Fields and Custom Objects?

If anyone know if we can using the metadata api or tooling api from SFDC to find all dependency around the custom app in SFDC. Looking to see we can see all custom setting that has been configured in ...
0
votes
0answers
98 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 ...
2
votes
1answer
87 views

Tooling REST API CalloutException Read timed out

We've got an issue regarding Salesforce improperly cleaning out FlowElementTestCoverage records, leaving over a million "stranded" on an old/inactive Flow Version. This is causing us to be ...
1
vote
1answer
774 views

Querying LeadStatus (including inactive)

It is trivial to retrieve all active LeadStatus values through the REST APIs, but I cannot see a way to pull in the inactive ones. SOQL query to retrieve active lead statuses: SELECT Id, ApiName ...
1
vote
0answers
67 views

Tooling API SOQL Where clause not working for certain fields

I'm working in the developer console using the tooling api to write a query against permission sets. This query works: select Name, Label, Description, ManageableState, NamespacePrefix, Type from ...

1
2 3 4 5
8