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.


The Tooling API does not have a documented CustomLabel object you can interact with. The list of supported objects are listed in Tooling API Objects.

On version 42.0, there's two objects that represent labels, CustomLabel and ExternalString. However, attempting to insert, update, or delete labels results in the following error:

[ {
  "message" : "entity type cannot be inserted: Custom Label",
  "fields" : [ ]
} ]
  • You can query custom labels using tooling API. Are u sure? – Arteezy Apr 26 '18 at 19:40
  • @SouravNandy It's not in the documentation or the describe call. Are you sure you're not mistaking the Tooling API with the Metadata API? – sfdcfox Apr 26 '18 at 19:44
  • Select id,Name from CustomLabel If i run this in query editor with Using tooling API checkbox it is giving me the values. – Arteezy Apr 26 '18 at 21:27
  • @SouravNandy Okay, so it's new in v42, but it's not documented, and DML operations are restricted. – sfdcfox Apr 26 '18 at 21:39
  • yea same result i also got.. just wanted to confirm... If i now go via Metadata API how should i go about.. – Arteezy Apr 26 '18 at 21:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.