Could not find the required Chatter post when inserting a Communications record with Number__c set to 1;
#Trailhead Challenges
2 risposte
My daughter helped me find the answer. When setting up the Trigger, I had selected under Condition Requirements:
"All Conditions Are Met (AND) instead of
Any Condition Is Met (OR).
It was as simple as that.
please check the link;
https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000QN8rWSATCheck if a trigger, flow, or process is handling the Chatter post creation when Number__c = 1. Verify debug logs to see if FeedItem is being inserted. Ensure the user has Create permissions on FeedItem, and confirm Chatter is enabled with Feed Tracking. If using Apex, make sure the trigger runs
after insert and assigns ParentId correctly. Test manually via Developer Console or Salesforce Inspector. If still not working, try running the logic in Anonymous Apex or use a Flow instead of a trigger.