I know we can Query AuraDefinitionBundle with the tooling api and retrieve some fields, but one that is not included is Last Modified Date. How would one retrieve that information for all AuraDefinitionBundle records? I am documenting all of our AuraDefinitionBundle records and that would be really nice to have to see when it was last modified and pull that info into a CSV file. Any insight would be helpful!
-
Should you not base such info on your version control system's information?– Phil WCommented Aug 19, 2020 at 6:16
-
if we had one i likely would be and wouldn't be doing this project. Not my call– BobbygllhCommented Aug 19, 2020 at 12:08
-
Ouch! That's a project waiting for disaster then...– Phil WCommented Aug 19, 2020 at 12:17
-
tell me about it, i jumped on the project a few months ago and have been dealing with the ramifications of not having one since– BobbygllhCommented Aug 19, 2020 at 12:19
Add a comment
|
1 Answer
You can get this field when you query through the Tooling API
/services/data/v49.0/tooling/query/?q=SELECT+id,LastModifiedDate+FROM+AuraDefinitionBundle
You can also just use SOQL to get the same Last Modified Date field.
SELECT Id,LastModifiedDate,DeveloperName FROM AuraDefinitionBundle
Another option is to use specific ID of an AuraDefinitionBundle through the Tooling API as well
/services/data/v48.0/tooling/sobjects/AuraDefinitionBundle/Id here