-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Count the number of relationships used on an object #70
Comments
For a specific object:
As an illustration, on Case, you can get the formulas via the tooling API.
|
@VinceFINET another way of doing this could be:
This would require less parsing of the formula code. |
providing that the DAPI can give you the references for formula fields (it does it) but also Workflow Field Update value formula, Validation Rule error formula, Workflow Rule criteria formula, ... |
Yes, you are right, that would only be for fields. For workflows, you can do something similar to what I do in 1- Get all the workflows related to a specific object, by using the object id 2- Once you have the workflows, use the |
Just wondering if the DAPI would count multiple times the use of a hierarchical lookup in formula. For example using case.parentId and case.parent.parentId count for two relationships right? And maybe in that example the DAPI will count the use of the parentId field once…. |
I don't think the DAPI supports this natively. And I wouldn't use it considering that it is going away. |
Count the number of distinct relationships used on an object across the Formula Fields, Validation Rules and Lookup filters.
This is an idea for now and a way to log how we could do this in the tool.
The text was updated successfully, but these errors were encountered: