4

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/events).

Please let me know, if there are any other(native to Salesforce) mechanisms.

3

From what I remember from one of the Dreamforce session you can do it using MetadataComponentDependency (Pilot) . If you can get your company to sign for this Pilot probably that would solve your use case.

https://developer.salesforce.com/docs/atlas.en-us.214.0.api_tooling.meta/api_tooling/tooling_api_objects_metadatacomponentdependency.htm

  • 1
    That seems quite promising. However, the documentation has ApexClass as MetadataComponentType in all of their example. I guess even SF is not known of existing types(ow it would have been a picklist field with predefined set of values) Playing across the same would help more to understand the same! – Ysr Shk Oct 24 '18 at 17:28
2

To the extent I know of and I can see in the documentation, there's nothing available as of today.

As of now, the Tooling API Objects don't even support any Lightning related features. If you see the Tooling API guide, you will see that the Lightning related objects are reserved for future use.

As for finding dependencies, one of the approaches that I have used in past is to search for occurrence of my component across all applicable places just by using an editor search. Other than that, I am not aware of anything that comes out of the box.

  • Manual search(or parse) will always help. I was just wondering if we could have in-house API way to do the same. Regarding mentioned object, SFDC docs doesn't have much info, so we can't assume the purpose of the objects. Thanks for the time! :-) – Ysr Shk Oct 24 '18 at 17:31
  • 1
    And that's my point. As for the objects, it's not available yet, so you cannot work on it anyways. So you will need to have a workaround here, and unfortunately in this case, it's all manual. – Jayant Das Oct 24 '18 at 17:33
  • As of now will try to see if I can avail pilot feature mentioned by Pranay, otherwise will opt for manual parsing! – Ysr Shk Oct 24 '18 at 17:38

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.