0

I need to track that my team is acknowledging support requests, by posting a chatter post to the requestor. I have a checkbox on our custom object, which I'd like a process builder to flag as True when at least 1 chatter post is present, and the sender has a System Administrator Profile.

1
  • 1
    Welcome to Salesforce Stack Exchange (SFSE). Please take the Tour & look in the Help Center - especially What topics can I ask about here? where it states, "Questions that ask for the community to write code or provide step-by-step instructions for implementation...are likely to be closed." This site exists to help you. Please edit your question to include what you have tried and how it is not working (e.g., exact errors, issues).
    – Moonpie
    Sep 11 '21 at 18:02
2

First, a little bit context on Chatter Posts and how they relate to Custom Object

Chatter posts on your custom object will be a FeedItem record, which will have ParentId pointing towards your Custom Object Record and the CreatedBy User for it would be the user with System Administrator Proflile.

Now since you want to set the flag as true, whenever a any such post exists. You will need to trigger your process builder, when ever a new feed item is added and if the inserted FeedItem post is being posted by System Administrator Profile user then check the flag on ParentId reference object (Custom Object) to true.

The conditions for Process builder would be.

  1. Feed item Process builder, triggered whenever a record is being created.

  2. Check if the record is being created by User.Profile.Name = System Administrator

I have taken case here as an example, you can add your custom object here in your process builder.

Example screenshot of what the required process builder would look like

2
  • 1
    Welcome to Salesforce Stack Exchange (SFSE). Nice contributions - please keep contributing!
    – Moonpie
    Sep 11 '21 at 21:14
  • couldn't you use $Profile.Name of the running user rather than the CreatedBy relationship, seems simpler?
    – cropredy
    Sep 19 '21 at 5:43

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.