0

I am working on a POC, where we need to convert the Ideas into a Case. Once an Idea reaches, let us say 100 points ( assuming each person’s vote is 10 points ), the idea should gets converted to a case with a record type of Enhancement.

For the Idea object, as VoteTotal/VoteScore is a rollup summary field, there seems to be no way to detect the change using those points or votes. Only when you save or edit the Idea record, the process builder works. But upvoting or down voting doesn't trigger any change to the Idea record as such, hence Process Builder is not getting called.

Is there any way to achieve this functionality? Any pointers on this will be really helpful.

2

This can't be done directly; triggers nor workflows execute when VoteTotal hits a threshold. See SFDC HELP doc

To monitor the activity of Ideas, you can:

Create a workflow rule or trigger based on the number of comments an idea receives. You cannot create a workflow rule or trigger based on an idea’s vote total or vote count. You also cannot create a trigger that inserts or deletes a comment when the Idea object is updated.

Create a custom report based on an idea's vote score or number of comments.

So, to get close to your goal,

  1. Create a scheduled job (Apex)
  2. Have it run every hour (or every 15 mins)
  3. Apex code scans all Ideas looking for those whose threshold is > 100 and has no Case
  4. Creates Case and xrefs the Case to the Idea
| improve this answer | |
0

The Process Builder should fire, please do check your criteria again may be there is some error in your criteria.

For example, suppose there is a Roll-Up on Opportunity that counts the number of Opportunity Product, when we add/delete the Opportunity Product then Opportunity is also updated and hence all the Triggers, Workflows, Process Builders are fired.

Alternatively you can code to achieve the functionality.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.