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

Comments

Projects
None yet
6 participants
@agnaramasi
Copy link

agnaramasi commented Aug 19, 2014

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

This comment has been minimized.

Copy link

agnaramasi commented Aug 19, 2014

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

@aheber

This comment has been minimized.

Copy link

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

This comment has been minimized.

Copy link

agnaramasi commented Aug 19, 2014

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

@aheber

This comment has been minimized.

Copy link

aheber commented Aug 19, 2014

Oops! I missed that, sorry.

@agnaramasi

This comment has been minimized.

Copy link

agnaramasi commented Aug 19, 2014

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

@afawcett

This comment has been minimized.

Copy link
Owner

afawcett commented Aug 20, 2014

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

@afawcett

This comment has been minimized.

Copy link
Owner

afawcett commented Aug 20, 2014

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

@afawcett

This comment has been minimized.

Copy link
Owner

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 Sep 3, 2014

@agnaramasi

This comment has been minimized.

Copy link

agnaramasi commented Sep 3, 2014

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

This comment has been minimized.

Copy link

andykallio commented Oct 29, 2014

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

This comment has been minimized.

Copy link
Owner

afawcett commented Nov 1, 2014

Just upvoted! 👍

@tenacoder

This comment has been minimized.

Copy link

tenacoder commented Jul 11, 2017

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

@DanDonin

This comment has been minimized.

Copy link
Collaborator

DanDonin commented Jul 11, 2017

@tenacoder

This comment has been minimized.

Copy link

tenacoder commented Jul 11, 2017

Thanks for confirming that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment