1

Does the Tooling API count against the Org limit?

I have a scenario in which I need to create custom button on related list and by pass record type selection page and re-direct to appropriate Page layout/record type automatically based on the values of the Parent record.

Since the re-direction is done through Visual Force, I need to automatically populate some of the Lookup fields on child record using Apex. To achieve this, I need the Id of the lookup fields on the child record.

The way I'm making it work right now: 1. Store the values of look up field in Custom setting.

The way I want it to work: 1. Extract the Id of look up field dynamically using Tooling API. Now I'm confused, if make a rest call to Tooling API, will it count against my Org limit?

Please advice.

  • You're asking about the number of calls to the Tooling API, right? – Jagular Dec 3 '14 at 20:04
  • Yes it was tooling API... – get2arpit Dec 3 '14 at 23:42
0

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 custom settings, and use those values when available.

  • Yeah the hybrid approach sounds good.. That way it will just be 1 call and going forward Custom setting will be used.. thanks again! – get2arpit Dec 3 '14 at 23:43

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.