Getting maintenance routing attachment from the backend
Need help on a sql query. How do I write my query if I want to get the document ID of an attachment that was attached to an asset activity's maintenance routings? I understand we could attach from the header and also from each operation, but I could not find a way in the tables to link the attachments to the asset activity's routings (header and operations).
I am looking at these tables:
FND_ATTACHED_DOCS_FORM_VL (attachments)
MTL_EAM_ASSET_ACTIVITIES_WB_V (asset activities)
BOM_OPERATIONAL_ROUTINGS (maintenance routings)
Hoping someone could help me on this. Thank you in advance.