Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

1
vote
1answer
45 views

Tooling API - Invalid field issue

I am using Rest API to update the Apex trigger using ApexTriggerMember. I am using the below json string as body in request. String json = {"MetadataContainerId" : "1dc7F00000DD9UYQA1", "FullName" : "...
1
vote
1answer
40 views

MetaData API and Tooling API

Is it possible to get below things using Apex: I want to get field Updates that are used in a particular or all WorkFlow rule/s. I want to get Workflow rules and approval Processes that are ...
0
votes
1answer
24 views

Can I query Salesforce Queue and can I do it using the metadata or tooling APIs?

Can I query Salesforce Queue and can I do it using the metadata or tooling APIs? Looking to quickly access this data from Salesforce inspector, also looking to see if there is a way to check if a ...
10
votes
1answer
82 views

Will LightningComponentBundle and LightningComponentResource mapped into the database like AuraDefinitionBundle and AuraDefinition

I'm checking this on a Spring'19 v45 Sandbox in Execute Anonymous: [ select Id from AuraDefinitionBundle ] // ==> works fine! [ select Id from AuraDefinition ] // ==> flawless!...
1
vote
1answer
25 views

How can I know how many fields are allowed to create in custom object via Metadata API?

I am trying to create sql table structure in salesforce as an object. In salesforce, there is a field limitation that allows only creation of 100 fields (I am using PE). My SQL table contains more ...
0
votes
1answer
17 views

Is it allowed to create a custom field dynamically through managed package

Is it allowed to create a custom field dynamically(Tooling API) through managed package? Will it create any issue from the salesforce review perspective? What will be the best way to give access to ...
1
vote
1answer
30 views

Do we have an option to create UnManaged package using any Salesforce API call?

I want to create an unmanaged package using API call, is it possible? Is yes, please suggest the approach. Our expectation is to create a unmanaged package in a salesforce org and add the metadata ...
1
vote
1answer
22 views

Querying inlineHelpText using the tooling API

From my small experiments it seems that this field isn't queryable through the Tooling API. Using this query here: https://www.salesforce.com/services/data/v40.0/tooling/query?q=Select+Id,+...
2
votes
0answers
21 views

Can metadata container contain AuraDefinitionBundle, Layout, FlexiPage, Object? [duplicate]

I want to build a package to find out metadata dependencies and determine which classes, triggers, pages, components, lightning components and applications, flexi pages, layouts, objects, custom ...
0
votes
1answer
41 views

How can i get the list of global picklist translated value using tooling Api?

Here I have the following end point to get the list of global pick list value. /services/data/v43.0/tooling/query?q=select+id+from+globalvalueset+where+developername='T_Shirts_Size' But i want the ...
5
votes
1answer
35 views

Finding out which page layouts are available for an object with APEX

When you check the Metadata.Operations.retrieve method, It requires you to know prior the fullname for the page layout you want to retrieve, and the Layout object it's not available with regular SOQL, ...
1
vote
1answer
48 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-...
0
votes
0answers
15 views

Making API Calls to tooling api from Lightning component [duplicate]

I am getting the following error when my lightning component controller is doing rest callouts to the salesforce tooling api {"message":"This session is not valid for use with the REST API","...
2
votes
0answers
48 views

Getting FullName from Tooling API gives FIELD_INTEGRITY_EXCEPTION

I need to get the API names of all layouts in my salesforce org.I have used composite metadata api to perform queries in batch of 5 and then get the FullName.It works fine but i get a field integrity ...
0
votes
1answer
32 views

How do I specify profile mappings on a PackageInstallRequest?

I have created an unmanaged package containing a Salesforce Platform Profile named "Foo". In the org where I am attempting to install the package, I have also created a Salesforce Platform Profile ...
0
votes
1answer
21 views

Retrieve LastModifiedBy from FieldDefinition query

I am able to retreive field definition for a custom object except last modified by. below is my SOQL. select Label, DeveloperName , DataType, IsCalculated, RelationshipName from FieldDefinition ...
2
votes
0answers
30 views

Bug: blank locationsNotCovered returned from REST: /tooling/runTestsSynchronous/

Starting a few days ago SFDC sandboxes upgraded to Winter 19 started to return blank locationsNotCovered node in /tooling/runTestsSynchronous/ result For example - a basic call with 1 test class like ...
4
votes
2answers
81 views

Symbol table for Lightning components to find Dependencies/References

Like we do have SymbolTable for apex class, to find their references/dependencies; do we have anything for the Lightning Components(to find dependencies/references of lightning components/application/...
8
votes
2answers
129 views

Tooling API in Apex - polymorphism, generic query() callout?

I am working on Salesforce project heavily depending on use of Tooling API (we are executing tests on remote SF organizations and gathering results). What bothers me is I cannot use polymporphism ...
1
vote
1answer
178 views

errorCode“:”METHOD_NOT_ALLOWED“,”message“:”HTTP Method 'POST' not allowed. Allowed are HEAD,GET

I am running the below code in developer console to get OrgPercentage coverage, but it is throwing an error "errorCode":"METHOD_NOT_ALLOWED","message":"HTTP Method 'POST' not allowed. Allowed are ...
1
vote
0answers
72 views

unable to find end tag when query dependencyApi

I'm trying to run the query "SELECT MetadataComponentId FROM MetadataComponentDependency" via tooling connection. and I get the following error- com.sforce.ws.ConnectionException: unable to find end ...
1
vote
0answers
27 views

Error Creating an ApexPage with standardController via ToolingAPI: INVALID_TYPE : sObject type 'Case' is not supported

I am trying to create a ApexPage via Tooling API, that includes a standardController, following this example: Creating Visualforce Page Using Tooling API However it throws the following error: ...
1
vote
1answer
32 views

Tooling API Queries in Dev Console only show one row

When submitting a SOQL query in the Dev Console using the Tooling API only one result row shows, even though more overall rows are returned, as confirmed by the "Query Results" notice above the ...
0
votes
0answers
27 views

Fetching external references through symbol table

Can anyone suggest a way to obtain the external references, with the help of symbol table results obtained. Am able to fetch dependencies, but when it comes to external references, am getting it as ...
0
votes
0answers
20 views

Fetch Metadata from Salesforce using Tooling API objects [duplicate]

I am building a tool in Java to fetch all the metadata from Salesforce using the Tooling API. For Ex: I want to fetch all the profiles details including object-permission, field-premission, ...
3
votes
1answer
130 views

How to send a PATCH HTTP Callout from Apex to Salesforce Tooling REST API

BACKGROUND I using Apex to get a list of FlowDefinition and would like to update the activeVersionNumber via using a PATCH request. QUESTION How can I achieve this using Apex if it does not support ...
0
votes
2answers
20 views

Define Object Fields (Custom) Usage and Compare Metadata Between Similar Fields

I am new to coding in Apex, but understand java and other object oriented languages. I am looking to use an API (such as the Tooling and SOAP API's) to compare fields in my Case object in my org. An ...
0
votes
0answers
193 views

IP addresses AND REST API call

I'm trying to make tooling API call from developer console which works perfectly fine in my dev org. But if same I try in my customer's org(under private network), it fails. Error :Access from ...
0
votes
0answers
55 views

Salesforce Delta Deployment / Change Tracker

We have a requirement to generate the Salesforce components modified between two dates. I can achieve it by generating package.xml for the entire org and then leveraging GIT diff to obtain the delta ...
0
votes
2answers
231 views

Cloning Sandbox in Spring 18

Reference - https://help.salesforce.com/articleView?id=data_sandbox_clone.htm&type=5 How do you think it may impact the Release Process from dev to QA? Rather than moving code base for testing ...
0
votes
1answer
131 views

Tooling API in Batch Apex?

We've requirement to 'PERIODICALLY' fetch description of all object and their custom fields and store in NEW custom object(FieldsAndObjectDescription) We've huge Org and have more than 20K custom ...
1
vote
0answers
20 views

Lightning App Builder: how to check if an app is active?

I have created an app via Lightning App Builder called testApp how can you verify if the app is activated using Rest API/SOQL/APEX? I have tried using FlexiPage but it does not support field that ...
1
vote
1answer
38 views

Query list of Sharing Settings, Report Type, Custom Lables

I am currently working on a tool where I need to access the metadata, for which i am using the tooling API and the SOAP API. I am trying to query and get the list of all the data. I was able to ...
0
votes
0answers
171 views

Tooling API - get all active Process Builders for a given sObject

I want to get the list of Active Process builders on a particular Sobject. Tooling API reference does not have a lookup to Sobject on the FlowDefinition Object. I was able to get the below query in ...
1
vote
2answers
71 views

Using Tooling API to run multiple test Synchronously

I am trying to use the POST methods to run some test classes.I am testing the API calls with workbench /services/data/v41.0/tooling/runTestsSynchronous/ This body works {"tests":[{"className":"...
1
vote
1answer
49 views

Do we have `setQueryOptions` for tooling API?

The Symbol table is only queried through tooling API. Do we have an option to set setQueryOptions when doing that, or similar way of setting batch size to do that. Because when running query() and ...
0
votes
1answer
35 views

Add or Edit Custom Metadata Records Declaratively requires CustomizeApplication, any Visualforce workarounds to allow regular user this ability?

I'm currently using visualforce and apex to allow a user to manage their own Hierarchical Custom Settings. By design this allows non-admins the ability to edit their Hierarchical Custom Setting values ...
1
vote
1answer
187 views

Tooling API : how to query on Salesforce Standard classes?

How can I query and get Standard Apex classes and their Symbol table via tooling API or Partner API? For eg: getting a custom Apex Class : String apexClassBodytooling = "SELECT Id, Name, SymbolTable ...
0
votes
0answers
37 views

I can't find Metadata API (CRUD) or Tooling API working sample code to update a custom field?

We need sample code (Java, .Net, etc) that will update a custom field. I would expect that by May 2018 something basic like this should be available somewhere!? Our programmer has tried a few ...
1
vote
2answers
93 views

ToolingConnection's query method throwing com.sforce.ws.ConnectionException: Failed to load class: com.sforce.soap.tooling.InvalidSObjectFault

I'm using Salesforce Tooling API in Java code and I am able to use create method of ToolingConnection. Bellow code is creating an apex class successfully. I'm getting exception when using query method ...
2
votes
1answer
163 views

Custom field update API

I am working in a sandbox, and using the Tooling API. I need to update the metadata of the custom field in Salesforce, but I am unable to do so. For this I am trying to work on the PATCH method. Below ...
3
votes
2answers
647 views

Create/Update Global Value Set using Tooling API

Can someone tell me how to create and update Global value set using tooling API? No sure what so send in request body.
2
votes
2answers
521 views

How to use Tooling API to get available values from picklist

How would one get the values available values of a System Custom Field? Here are the details of the "System Custom Field": Field Label: "Working Status" Field Name: "Working_Status" API Name: ...
2
votes
1answer
50 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/...
1
vote
1answer
68 views

Finding sharing settings OWD

I'm trying to find the sharing settings OWD information and I have looked at the tooling/api and APEX/SOQL could not find, is that even possible to retrieve this metadata information?
2
votes
1answer
367 views

Query the created date of a custom field?

I'm trying to do a large scale field cleanup within my org, and I'm looking to get a list of the custom fields by object (in this case the Account sobject), some basic details for those fields, and ...
3
votes
2answers
240 views

How to access profile restrict login hours

How can I check the login hours of a user profile that configured in user's profile? I have looked into LoginHours but could not find. In which object/soql/apex/rest/tooling api it would be ...
0
votes
0answers
27 views

Lightning app builder - find assigned profiles

How would you find what Profiles has selected for the Lightning App Builder pages? tried querying the tooling API but it does not have the profile information, and I'm just wondering is there any ...
2
votes
3answers
89 views

Dependency ApexTrigger

How can I get all objects (with different actions) related to an ApexTrigger? For example: TriggerX ---> Related Objects : Account (insert), CustomObject__c (update) ... So far, I've tested "...
2
votes
1answer
304 views

create and update custom labels through ToolingAPI

How to create and update Custom Label using tooling API? Is it possible to do it without deployment? Dont want to create and update via Metadata API.