You need to sign in to do that
Don't have an account?

Is there a way to reference child campaigns on a Visualforce page located on the parent campaign?
I'm trying to pull a field from all child campaigns and reference it on a Visualforce page accessed via a button on the parent campaign. Is there anyway to do that? Thanks.
Please find the code for Campaigns:
Visualforce Page:
Apex Class: I also tested the above code in my DE environement and below is the result:
Please do let me know if it helps you.
Regards,
Mahesh
All Answers
Please find the below code:
Visualforce Page:
Apex Class:
I also tested the above code in my DE environement and below is the result:
Please do let me know if it helps you.
Regards,
Mahesh
Super helpful, thanks! Could you provide some further advice?
How do I adjust the code if I'm not dealing with a quote but just a child campaign?
Please find the code for Campaigns:
Visualforce Page:
Apex Class: I also tested the above code in my DE environement and below is the result:
Please do let me know if it helps you.
Regards,
Mahesh
One final question, do you have a suggestion for how to add each child campaign as a column in the table rather than a row?
It will be tough because columns should be fixed, we can't make them dynamic.
Regards,
Mahesh
I'm also trying to pull fields from the child campaign and reference them on a visual force page.
I copied & pasted the Apex Class code into a new Apex Class and received the following error:

"Error: Compile Error: unexpected token: 'public class CampaignController' at line 1 column 0"
Any idea what I am doing wrong? Screenshot attached.
Thank You!