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.
-
1Welcome 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).– MoonpieSep 11, 2021 at 18:02
1 Answer
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.
Feed item Process builder, triggered whenever a record is being created.
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.