Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 2984

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.

3 votes
Accepted

Getting the SourceId of current Sandboxes in the system

You need to perform a Tooling API Query. The endpoint for a query is at /services/data/vXX.X/tooling/query, which takes a parameter, q, that represents the query. The query itself must be URL escaped …
sfdcfox's user avatar
  • 502k
1 vote

Can you run a callout to the tooling API as non-admin user without giving them "Modify All P...

No. The Tooling API is an administrative API, giving the ability to create, modify, and delete metadata elements, things a Developer Persona would have need to do. Instead, you want to use the SOAP de …
sfdcfox's user avatar
  • 502k
4 votes
Accepted

Refreshing a Sandbox via the Tooling API - HTTP PATCH

PATCH methods use the ID in the URL; if you put it in the body, it simply won't work. Here's how it should look: /services/data/v42.0/tooling/sobjects/SandboxInfo/0GQ58000000TQacGAG { "AutoActiva …
sfdcfox's user avatar
  • 502k
0 votes
Accepted

Tooling API to get the ID of the field

Yes, the Tooling API counts as calls against your org. Usually, thus won't matter, unless you expect this function to be called very frequently. You might use a hybrid approach. Cache the response in …
sfdcfox's user avatar
  • 502k
0 votes

Retrieve LastModifiedBy from FieldDefinition query

To get the ID, use LastModifiedById: select Label, DeveloperName , DataType, IsCalculated, RelationshipName, LastModifiedById from FieldDefinition where EntityDefinition.QualifiedApiName = 'objectna …
sfdcfox's user avatar
  • 502k
3 votes

Tooling api sObject type 'ProfileLayout' is not supported

The describe call you're apparently looking for is: /services/data/v43.0/sobjects/<ObjectName>/describe/layouts/<recordTypeId> This will give you all the layout information need for a given record …
sfdcfox's user avatar
  • 502k
2 votes
Accepted

Security Audit about Salesforce IDE (plugin for Sublime Text)

The software is FOSS, so it goes without saying that the author most likely has not intentionally hidden any back doors in the software. A cursory search and browse suggests that the code makes no att …
sfdcfox's user avatar
  • 502k
4 votes
Accepted

How to scan barcode in salesforce?

Yes, I have actually written a barcode scanner page a few years ago in Visualforce. The Scanner Set the scanner to Keyboard Mode. This varies by model. Make sure you also configure a scan terminatio …
sfdcfox's user avatar
  • 502k
1 vote
Accepted

INVALID_FIELD_FOR_INSERT_UPDATE when creating/updating an Apex class via Tooling API

The error happened because your code compiled to: 'select id,name from '+ Account Which is invalid. This code: \'select id,name from \'+ %s Should be: [select name from %s] Note that I recommended …
sfdcfox's user avatar
  • 502k
1 vote

Is there a command you can use to get a list of all features that are currently active in an...

There's not a built-in command, but this is where Salesforce DX plugins can help. browserforce, written by Matthias Rolke, is a plugin that allows you to retrieve an org configuration and deploy it to …
sfdcfox's user avatar
  • 502k
1 vote

Tooling API - Query sObject not support error

The Tooling API doesn't support standard record objects. It's meant to be a way to access metadata objects, such as ApexClass and CustomField, particularly in a way that you'd use it for "tooling" (me …
sfdcfox's user avatar
  • 502k
3 votes
Accepted

How to indent code in apex class created using tooling API

You can use \r and \t to format your code. You can also make your code easier to read with some proper JSON encoding: public class ApexClassWrapper { public String Name; public String Body; } Ape …
sfdcfox's user avatar
  • 502k
4 votes
Accepted

How to get ConnectedApp details using REST API

As far as I can tell, you can't. ConnectedApp settings are only available in the Metadata API. You'll need to learn a bit of SOAP in order to get at the data.
sfdcfox's user avatar
  • 502k
1 vote
Accepted

How to get all the available set of CustomField data types?

The available types are listed in several places, CustomField being one. I'm not sure if there's a way to actually "describe" these values dynamically; the Tooling API only describes the field as a "c …
sfdcfox's user avatar
  • 502k
8 votes
Accepted

Is it possible to use the Tooling API to update field level security on Profiles and Permiss...

The objects you're looking for are UserEntityAccess and UserFieldAccess, for object security and field security, respectively. Unfortunately, it appears that these tables are read-only, so you're stil …
sfdcfox's user avatar
  • 502k

15 30 50 per page