Skip to main content

Questions tagged [tooling]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
68 views

Salesforce tooling API. Add new value for picklist (depending on the record type)

Situation: There are 11 picklists on the Account, the values of which vary depending on the record type The API request returns me 5 picklists how can I addnew picklist value for record type from ...
Sergey Chernov's user avatar
0 votes
1 answer
100 views

Salesforce Apex Class 99 %. Is there any way I can extract the classes which are not being run or not used any Internal or external system

In our Organization Apex class has reached 99%. I have tried tooling API to fetch meta data and try to see unused methods and code as suggested in some of the articles but couldn't find any good one. ...
David Mycka's user avatar
  • 1,357
0 votes
1 answer
769 views

Creating multiple custom fields via Tooling API in a single call

I am attempting to create multiple custom fields in one REST API POST request to the /services/data/v56.0/tooling/sobjects/customfield endpoint using the following JSON body via Workbench AND Postman: ...
LandenW's user avatar
3 votes
1 answer
2k views

Create custom field type picklist via tooling rest api - which meta information required?

I want to create a new custom field on a custom object on SalesForce. The custom field type shall be of type 'picklist' (non-global) with a predefined set of values. I want to use the Salesforce ...
HeXor's user avatar
  • 287
0 votes
1 answer
441 views

Is there is a way to access Tooling API Objects in a test class

is there is a way to access Tooling API Objects ex.. RemoteProxy in a test class? I am trying to create a Test class to check if a RemoteProxy record exists. Sice test methods do not support Web ...
Ihab's user avatar
  • 1
0 votes
1 answer
159 views

How to create visible (FLS and in all Layouts) custom field via API

When I create a custom field via Tooling API post '{"Metadata":{"type":"Number","description":"test","inlineHelpText":"","...
follower90's user avatar
1 vote
2 answers
978 views

How do I get the logs (results) of executing anonymous Apex code in jsforce?

I have been trying to execute the following Apex code in jsforce (Node.js): var apexBody = "System.debug(UserInfo.isMultiCurrencyOrganization());"; conn.tooling.executeAnonymous(apexBody, function(...
Sumit Israni's user avatar
5 votes
0 answers
198 views

How can I find the relationship between MetadataComponentId and the expected name for the Metadata API?

I've been using the Dependency API to try to retrieve all dependencies for a given metadata. I would like to get a list of dependencies, and then retrieve these with the Metadata API. Unfortunately, ...
Fabien Taillon's user avatar
1 vote
1 answer
60 views

Missing ApexTestRunResult Data

Yesterday we had 10-11 records and today just 2. This is what I did: Check recycle bin and using All Data Check Bulk API delete capable processes and users Check connected apps. DataLoader.io SSO ...
kratos's user avatar
  • 541
3 votes
1 answer
125 views

ApexTestResultLimits in Tooling API work for both synchronous and asynchronous runs?

The documentation at ApexTestResultLimits states that: The ApexTestResultLimits object is populated for each test method execution, and it captures the limits used between the Test.startTest() and ...
kratos's user avatar
  • 541
0 votes
0 answers
20 views

Tooling API to fetch Duplicate Objects/Fields

I want to fetch duplicate object and field information before deploying my package to another org. Is there any pre build tool or tooling API reference that can resolve my problem?
Vandana's user avatar
3 votes
1 answer
345 views

Aggregate Query issue using Tooling API / Partner/SOAP API with C#

I wrote a utility that cycles through a bunch of orgs and pulls out information. I'm using the Partner SOAP API and C# to do this. Now, I'm trying to get some additional information that is only ...
Mike Jones's user avatar
2 votes
0 answers
41 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
  • 17.4k
1 vote
0 answers
87 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
0 votes
2 answers
42 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 ...
Andrew Sacco's user avatar
0 votes
1 answer
1k 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 ...
sfdc_Qrius's user avatar
0 votes
2 answers
59 views

Get Debug Logs with specified log levels for Execute Anonyous via APEX ToolingAPI (getting Error)

I imported the Tooling API WSDL back into Apex as toolingSoapSforceCom and added a Remote Site setting from my Salesforce pod/domain. toolingSoapSforceCom.SforceService toolingService = new ...
Rehan's user avatar
  • 23
1 vote
2 answers
4k views

Querying all the SandboxInfo via REST API

Our architecture uses Salesforce to send some emails to clients automatically, so to reproduce the full architecture in a demo environment we need to have an identical instance of Salesforce. We can ...
Edmondo's user avatar
  • 1,712
0 votes
1 answer
378 views

Is this possible to access Tooling API or REST API or SOAP API or Metadata API from Lightning Application

As far as I undestand, when I try to use Lightning Session Id, I receive an error This session is not valid for use with the REST API I have read in other topics that Lightning Session Id has ...
Patlatus's user avatar
  • 17.4k
1 vote
0 answers
219 views

Create new classes by Tooling API

I have a problem with creation new APEX classes by using #Tooling API. In first scenario, I want to create one class: Steps: Create MetadataContainer By using MetadataContainer Id, create ...
micha_s's user avatar
  • 57
2 votes
1 answer
1k views

Tooling API workflow Email alert update

I am trying to update workflow email alerts via Tooling API, My request is: req.setBody('{"fullName": "Test","Metadata": {"description": "Updated via WorkBench"}}'); As "Only the Metadata and ...
Aashima's user avatar
  • 21
0 votes
1 answer
103 views

How to get salesforce standart objects using API

I'm trying to get all salesforce system objects such as Set, List, System and their methods. I used tooling api, namely SymbolTable class to get methods and variables of specified classes, but i can't ...
podhornyi96's user avatar
0 votes
1 answer
97 views

ConnectionException while trying to query SymbolTable

While trying to query SymbolTable from ApexClassMember I recieve ConnectionException. ToolingConnection con = ...;//get connection here String query = "SELECT FullName, SymbolTable FROM ...
podhornyi96's user avatar
1 vote
1 answer
50 views

Execute "executeAnonymous" from VF page

I have a VF page with Apex:InputText area and execute button. I want to execute tooling api /executeAnonymous/?anonymousBody= from text area field and get the the result display in the VF page. I ...
MIX DML's user avatar
  • 2,442