How to Export All (Down-Up-In-Out) References of the Item to Excel
If you want to export the Down/Up (Incoming/Outgoing) references of the exported items to Excel, you can use the attached Excel template.
The key elements of these scripts are:
The attached Excel template contains working examples of how to do this:
exportReferences.xlsx