I have a situation where I have a relationship between two objects (A-B) (1-M) and I would like to get the view page ID of a record in object A such that when I create a new record in object B from the View page of record A, I can perform certain tasks pertaining to where I come from. Could you possibly suggest as to how I can detect which view page I am coming from? Looking forward to your suggestions.
Hope this helps.
That's fine that I can extract it from the url parameter on the view page of record A, but lets say I am creating a new record for Object B from the view page of Object A. How can I then know from the object A's new record page, the view page id of the record where I am coming from?
What you can do is create a new button that will replace the new button link and pass the url from view page A and then add a param e.g (
Could you please post the complete answer?
May I ask first what exactly are you planning to do? Do you want to replace the default new button on the list view? Or do you want to create your own new button?