2

I have created a a quickAction on Case object, called "Escalate". Apart from filling in some custom fields on case, it checks the "isEscalated" field and changes Status of the case to "Escalated"

Goal - When the status changes to "Escalated", i want to post a chatter on the case with @mention to user's manager.

I just need to know how many ways are there to do this (with as well as without apex). Just pointing in general direction is good, i can do the digging myself. I just want to make sure i dont miss some possible solution.

i think process builder can do this (and if i am wrong, please let me know) Will workflow do that (let post chatter)? I will look at documentation. But if anyone wants to give a yes or no answer, it will help

Apart from above two ways, what other ways are there?

UPDATE I realize that workflows are useless for this. I tried using process builder, but i have two concerns- 1) Need to @mention Running user's manager. Can't seem to find an option for Running User in process builder. Does anyone know a solution for this. 2) In the body of the comment, i need to display a numeric field, if it has a number, otherwise, display 0. So this requires use of formula. I can't seem to get it working in process builder. I need something like this in the chatter -

Balance Due : {!NullValue(Case.Balance_Due__c, "0")}.

Any possible solutions to above 2 issues with process builder? Or should i start looking at apex (hopefully we can pass current user and current case record to an apex class from process builder)

2

1 Answer 1

1

Easiest way to do this is via Process Builder. There is a Post to Chatter action! So simple and easy to use... just set your criteria (when a case is changed to escalated) and then set the action after that happens.

Other options are to trigger a Flow from Process Builder to do the post (that doesn't really make too much sense unless you're doing queries to fill in the information or find who you should mention). And lastly is of course Apex.

4
  • David, please read my update. I do need to @mention current user's manager. And in the body of chatter, i need some formula to display value of a field conditionally. Anyway it can be done via process builder? Or should i think about apex
    – user123
    Commented Jan 13, 2016 at 5:33
  • Yes --- see my update, I'll add in a screenshot. You can add in all merge fields you want -- I like to use a formula on the record and then reference that in PB as opposed to doing it in PB if I can. Commented Jan 13, 2016 at 13:25
  • Scratch that... as I tested it doesn't work dynamically in PB :( -- I would try the Apex route cause Flow's @mentions aren't very functional. Commented Jan 13, 2016 at 14:27
  • An update, you can dynamically mention in process builder: @[Field Id Merge Field Here] (Make sure you have the outer brackets). Commented Mar 27, 2018 at 21:57

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .