You need to sign in to do that
Don't have an account?
Christopher Milner
Create Visualforce Page/Button to Mass Relate Contacts to Implementation Project
Context:
Within our org we have a custom "Workfront" object we are using to track implementation projects for new customers. This object has a related list on the page layout called "Workfront Participants", which is a junction object with two lookup fields. One is a contact lookup and the other lookup for the "Workfront" project. The "Workfront" object is related to accounts in our org.
Need:
I would like a visualforce page list button that loads a new page which is a list of contacts from the account the current project is related to. A user can then select checkboxes next to each desired contact and click "add" to add them to the "Workfront Participants" related list.
Is this something that is doable/someone could assist me with?
Within our org we have a custom "Workfront" object we are using to track implementation projects for new customers. This object has a related list on the page layout called "Workfront Participants", which is a junction object with two lookup fields. One is a contact lookup and the other lookup for the "Workfront" project. The "Workfront" object is related to accounts in our org.
Need:
I would like a visualforce page list button that loads a new page which is a list of contacts from the account the current project is related to. A user can then select checkboxes next to each desired contact and click "add" to add them to the "Workfront Participants" related list.
Is this something that is doable/someone could assist me with?
I have gone through the requirement, as per your requirement I have created a dummy code.
Please go through the code. Code is covering your essential requirement.
You need to create a custom button over Work Front Object. The button would be a Javascript button calling the Visualforce page with Account Id as WorkFront Id as parameters.
Below is the code with Visualforce Page Image:
Visualforce Page:
Apex Controller:
Modify the code with error handling functionality and use of CSS or SLDS to make it look more beautiful.
I would love to hear from you regarding this requirement.
If found the satisfying, mark as solved.