Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Metadata Dependencies

Sample wrapper around Dependencies API Pilot.

The wrapper make it even easier to query and produces the output in human readable format.

  1. It will create a list of dependencies in a csv under 'My Personal Documents'

  2. Email the dependencies in a .csv document to the user running.

Deploy to Salesforce

Usage & Sample

Once you have deployed in your Org.

  1. Find metadata that depends on 'Order' object:
DependencyService.withRefTo('Order');
  1. Find metadata that depends on an object's field by Id:
DependencyService.withRefToById('00N3000000Bact4EAB');
  1. Find metadata that depends on a ApexClass:
DependencyService.withRefTo('Utils');
  1. Run with query:
String queryStr = 'SELECT MetadataComponentName, MetadataComponentType,RefMetadataComponentName,RefMetadataComponentType FROM  MetadataComponentDependency WHERE RefMetadataComponentName = 'Apttus__APTS_Agreement__c';
DependencyService.withQquery(queryStr); .

About

Sample wrapper around Salesforce Metadata Dependencies API Pilot.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages