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
0 answers
201 views

Create a StandardValueSet via Tooling API

I am currently working on StandardValueSet and I would like to try to insert an entry in the said resource. I looked at the documentation and it sort of lacks the necessary information for me to be ...
Oneb's user avatar
  • 25
0 votes
1 answer
566 views

How to automate my Post production refresh steps like updating the configuration through Apex code using Tooling/Metadata API

After every production refresh of Sandboxes I have to perform manual steps updating Custom Label, Remote Site Settings, Named Credential, Custom Settings and Custom Metadata. How can I automate the ...
Hemanta Chandra's user avatar
0 votes
1 answer
775 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 ...
ebar's user avatar
  • 447
1 vote
2 answers
2k views

call tooling API when using lightning component [duplicate]

When I make request tooling API from Apex by using lightning component, the error This session is not valid for use with the REST API is responsed. Also, the response status code is 401, and status is ...
Shinya's user avatar
  • 437
0 votes
3 answers
2k views

How can I get the custom object Tooling API Id?

I want to get the custom object id using the custom object's API name. Please tell me the way how to get id. req.setEndpoint(domainUrl+'/services/data/v46.0/tooling/query?q='+ ...
S Kawasaki's user avatar
0 votes
3 answers
2k views

How to get custom object id dynamically using apex

How to get custom object id dynamically. I have created one button on UI called Create custom field and on click of that button, I want to redirect it to that custom object field creation page(object ...
akashg7's user avatar
11 votes
1 answer
151 views

What is `apexCache` and `apexCacheWarmer` in tooling API?

I was exploring few bits using tooling API, and stumbled upon 2 endpoints that got my attention. They are /services/data/v45.0/tooling/apexCache and /services/data/v45.0/tooling/apexCacheWarmer ...
Pranay Jaiswal's user avatar
1 vote
0 answers
528 views

How to fetch all profile metadata including object permission, field permisssion, record type etc. using Salesforce Tooling API

I am using workbench to retrieve a user profile using tooling API, but unable to retrieve any data in fieldPermissions, objectPermissions or recordTypeVisibilities files. Can anyone suggest me how to ...
Prashant Kumar's user avatar
6 votes
1 answer
901 views

Is there a reliable way to know which SObjects are supported by a SOSL search?

Having some trouble as an ISV with dynamic SOSL. I have a search box that searches all records. When building the SOSL query, I only add objects that have the IsSearchable flag set to true on the ...
Toby Curtis's user avatar
2 votes
1 answer
2k views

How can i figure out if a process builder contains apex class call?

I have a lot of processes in my org. I have a requirement to list the processes which are calling an apex class i.e- If a process builder consists of an immediate action which is calling an apex class ...
karan's user avatar
  • 170
2 votes
1 answer
640 views

Unable to import binding 'SforceServiceBinding' with the Summer 19 Tooling API WSDL

I'm trying to update to the Summer `19 (v46.0) Tooling API WSDL in a .NET project. When I attempt to update the service reference from the v45.0 WSDL I get the following error from ...
Daniel Ballinger's user avatar
1 vote
0 answers
604 views

Tooling API not retrieving relationship name/label

Querying on Customfield using Tooling API in workbench is returning relationship label "null" even if object has the relationship field(lookup/master-detail). For Example: My Object has 3 relationship ...
Sam's user avatar
  • 11
0 votes
1 answer
936 views

How to set the externalSharingModel for managed package objects using automation?

Related to System.runAs for CspLitePortal Profile Users recently started returning no rows, I am now wondering how to automate the setting of the external sharing model for some SObjects contained in ...
Keith C's user avatar
  • 135k
0 votes
2 answers
287 views

Get NamespacePrefix for a given Package Id (in org with LMA app)

Is there a way to get the Namespace Prefix of Managed Package where I just have the Id of? Maybe it is helpful that my code sits in the same org as the LMA app in with its sfLma__Package__c objects. ...
Robert Sösemann's user avatar
1 vote
1 answer
147 views

Bulkify the Tooling/Metadata API

Came across various articles and I couldn't find approach for bulkyfying the Tooling/metadata API. In this post, the most voted answer handles one request at a time. However what I am trying to ...
LWC_Beginner's user avatar
3 votes
0 answers
104 views

Uploading Self Signed Cert Through MetaData SOAP

I am trying to understand the right way to format a SOAP POST in order to upload a self-signed certificate into a scratch org. Based on here: https://developer.salesforce.com/docs/atlas.en-us....
trebleCode's user avatar
0 votes
0 answers
163 views

How to assign record type to dependent picklist(from global picklist) in APEX

I have global picklist 'Country' In my Address object i have picklist 'Country' which was created as a dependent picklist from globalpicklist. Can we assign existing custom record type to this ...
Keerthi kambhampati's user avatar
2 votes
0 answers
565 views

Status=Unauthorized, StatusCode=401 when accessing the Tooling REST API [duplicate]

I am getting this HTTP error: Status=Unauthorized, StatusCode=401 When I try and access the Tooling REST API from an Lightning component Apex controller being used inside Salesforce, running as ...
Robs's user avatar
  • 9,187
2 votes
1 answer
2k views

Tooling API: Fetch sObject details of Process builder

I know we can fetch Active Version and latest version details using Tooling API from FlowDefinition, however is there a way we can fetch sObject details? '/services/data/v43.0/tooling/query?q=Select+...
Ajay 's user avatar
  • 1,529
0 votes
1 answer
436 views

How to fetch Declarative Metadata i.e. meta.xml file with Tooling API query?

Is there a way to fetch the meta.xml file via tooling api query? The meta.xml looks like this for apex class: <?xml version="1.0" encoding="UTF-8"?> <ApexClass xmlns="http://soap.sforce.com/...
Nagendra Singh's user avatar
0 votes
1 answer
174 views

Tooling API: Unable to update existing GlobalPicklist

I'm able to create a global picklist -'Fruits' String fieldDef = '{"Metadata":{"customValue":[{"label":"Apple","valueName":"Apple"},{"label":"Orange","valueName":"Orange"}],"description":null,"...
Keerthi kambhampati's user avatar
0 votes
1 answer
190 views

How to do Tooling API Query filtering name

/services/data/v45.0/tooling/query?q=select+id,FullName+from+globalvalueset+limit+1 I'm able to fetch the one of the records. /services/data/v45.0/tooling/query?q=select+id,FullName+from+...
Keerthi kambhampati's user avatar
0 votes
1 answer
394 views

"Element {}CcEmails invalid at this location in type WorkflowAlert"

I'm trying to update the ccEmails field on WorkflowAlert table through tooling API, but I keep getting this error: { "message": "Element {}CcEmails invalid at this location in type WorkflowAlert", "...
Brohan's user avatar
  • 447
0 votes
1 answer
283 views

Find how many System.Debug lines are there in sandbox environment?

I want to find how many System.Debug lines are there in sandbox environment. As System.Debug statment is Consider in Apex character limit count. So Is there any tool or any method such as Tooling ...
amit patil's user avatar
2 votes
1 answer
36 views

Is the Trial-Phase relaxing Test-enforcing and ToolingAPI to save APEX on Production Orgs?

As a great surprise I have noticed today at the org of a new client (his Org is running in the Trial-phase) that APEX Tests seems not to be enforced and that I could modify and save APEX quickly using ...
Uwe Heim's user avatar
  • 28.3k
2 votes
1 answer
963 views

Get the Id of a Layout from its name

Im looking to use a combination of the tooling api object ProfileLayout and the SetupAuditTrail object. I can query the SetupAuditTrail and with a bit of parsing extract the names of any layouts that ...
paul's user avatar
  • 1,502
1 vote
1 answer
386 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" : "...
Yogesh Patil's user avatar
1 vote
1 answer
1k 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 ...
Jahnvi Jasani's user avatar
0 votes
1 answer
445 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 ...
GedAWizardofEarthSea's user avatar
12 votes
1 answer
955 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!...
Uwe Heim's user avatar
  • 28.3k
3 votes
1 answer
707 views

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

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 ...
Kevin's user avatar
  • 43
0 votes
1 answer
289 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 ...
Hemant Keni's user avatar
1 vote
1 answer
295 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 ...
Srinivas Salloori's user avatar
1 vote
1 answer
618 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,+...
akarnid's user avatar
  • 1,954
2 votes
0 answers
40 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 ...
Patlatus's user avatar
  • 16k
2 votes
1 answer
2k 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 ...
Apoorv Bambarde's user avatar
5 votes
1 answer
973 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, ...
ekiim's user avatar
  • 323
3 votes
3 answers
2k 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-...
paul's user avatar
  • 1,502
2 votes
0 answers
462 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 ...
Khavish 's user avatar
2 votes
1 answer
291 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 ...
Jeff's user avatar
  • 909
0 votes
1 answer
623 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 ...
Rajamani Neelamegam's user avatar
4 votes
0 answers
58 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 ...
gaiser's user avatar
  • 1,360
4 votes
2 answers
536 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/...
Ysr Shk's user avatar
  • 3,104
11 votes
2 answers
2k 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 ...
Wookie88's user avatar
  • 713
2 votes
1 answer
5k 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 ...
user2542953's user avatar
1 vote
0 answers
713 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 ...
eliranyosef's user avatar
1 vote
0 answers
72 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: ...
Bryan Sosa's user avatar
1 vote
1 answer
489 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 ...
Justin's user avatar
  • 79
0 votes
0 answers
151 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, ...
amit patil's user avatar
3 votes
1 answer
1k 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 ...
Robs's user avatar
  • 9,187

1 2 3
4
5
9