Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollup of opportunity contact role #59

Closed
agnaramasi opened this issue Aug 19, 2014 · 14 comments
Closed

Rollup of opportunity contact role #59

agnaramasi opened this issue Aug 19, 2014 · 14 comments

Comments

@agnaramasi
Copy link

Hello,
I am trying to create a rollup on the opportunity to count the number of contact roles a certain type that have been assigned. I get an error when I deploy the trigger stating that the object does not support triggers. I get the same error if I attempt to use scheduled mode.
I understand that opportunity contact roles do not support triggers, but shouldn't scheduled mode still be possible?
Many thanks for your wonderful tool.
Jonathon

@agnaramasi
Copy link
Author

Here is a screenshot. I selected "Scheduled" mode in this example.
image

@aheber
Copy link
Contributor

aheber commented Aug 19, 2014

That is because Salesforce doesn't support having triggers on that object.
You can vote to support the idea to change that: https://success.salesforce.com/ideaview?id=08730000000BrdvAAC

You might want to try and do it as a scheduled job rather than realtime. I haven't tried it, but that would be my next step.

@agnaramasi
Copy link
Author

The same error happens when I set to scheduled mode. I appreciate any suggestions you can provide!

@aheber
Copy link
Contributor

aheber commented Aug 19, 2014

Oops! I missed that, sorry.

@agnaramasi
Copy link
Author

Do I need to press "Deploy" before I can schedule the RollupJob class?

@afawcett
Copy link
Collaborator

Schedule mode still needs the triggers unfortunately, as it records changes to the child records the scheduled job processes.

@afawcett
Copy link
Collaborator

@aheber Thanks btw for picking this one up! :-)

@afawcett
Copy link
Collaborator

afawcett commented Sep 3, 2014

I'm sorry, currently schedule mode still requires a trigger to log the records changed for the job to pick up. I did ponder long and hard about this design decision, and in the end could not find a way to do it without. The Replication API came close, but does not give events on deletion of records. Sorry, i will keep an eye out in the future for new features of the platform and/or ideas to remove this requirement.

@afawcett afawcett closed this as completed Sep 3, 2014
@agnaramasi
Copy link
Author

Really appreciate the effort! Thanks Andrew,
Jonathon
On Sep 3, 2014 4:22 AM, "Andrew Fawcett" notifications@github.com wrote:

I'm sorry, currently schedule mode still requires a trigger to log the
records changed for the job to pick up. I did ponder long and hard about
this design decision, and in the end could not find a way to do it without.
The Replication API came close, but does not give events on deletion of
records. Sorry, i will keep an eye out in the future for new features of
the platform and/or ideas to remove this requirement.


Reply to this email directly or view it on GitHub
#59 (comment)
.

@andykallio
Copy link

Just want to show my support for a solution here. I voted for https://success.salesforce.com/ideaview?id=08730000000BrdvAAC years ago, and I have tried to vote for it again several times since! I seem to butt heads with this a couple times a year...guess it's time to migrate to a custom object.

@afawcett
Copy link
Collaborator

afawcett commented Nov 1, 2014

Just upvoted! 👍

@tenacoder
Copy link

tenacoder commented Jul 11, 2017

Are we able to do a realtime Rollup of opportunity contact role now?

@DanDonin
Copy link
Contributor

DanDonin commented Jul 11, 2017 via email

@tenacoder
Copy link

Thanks for confirming that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants