Is there any way to show a single vf page as a related list (inside a detail page layout) across multiple / all custom and standard objects like notes and attachments?
I have integrated Salesforce and sharepoint and whenever user clicks upload button from a vf page embedded in a detail page of a record, the data will be updated to sharepoint and the sharepoint url and the current record sf id will be updated in a separate mapping object and the records from that object will be filtered based on current record id and shown as a related list / table inside this vf page. I need to use this vf page across all custom and standard objects so that I can use this as an alternative for notes and attachments and all my data will reside in sharepoint instead of salesforce and it will appear as if it resides in salesforce as records and when the Dcoument names are clicked from the related list, it will open the document from sharepoint.
I have done all these integrations and my only problem now is showing the same vf page across all custom/standard objects.
I know there is a clue :-
- Create the vf page with standardcontroller=currentobject name.
- Add the vf page to the current object record detail page layout
- After adding the page to the page layout, change the attribute standardcontroller in vf page to the next object name, add in that to the next object's page layout and so on.
But, it would really be a pain for doing this for all my 250 objects in the system and even if I do am not sure how I can handle deployment with this and if it will work or not.
And I don't want to create 250 different VF pages (with just different standardcontroller attribute value) either for doing this. Is there any other alternative? Can someone help here?