Skip to main content

#Chatter2 debatiendo

I've set up a flow that sends a chatter post whenever an email-to-case comes in. Now I want to use the flow to add any possible attachments to the chatter post. Is this possible with just a flow? 

 

#Flow  #Chatter

1 respuesta
  1. 9 sept, 15:45

    Hi Terry, 

     

    Yes, this is possible with pure declarative Flow, no Apex needed. Here's how it fits together: 

     

    Background:  

    Email-to-Case attachments are stored as ContentDocument/ContentVersion records, linked to the EmailMessage record via ContentDocumentLink (LinkedEntityId = the EmailMessage's Id), not as old-style Attachment records. Chatter posts (FeedItem) can't hold files directly either, they need a FeedAttachment junction record pointing to a ContentVersion. 

    Official reference:

    https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_contentdocumentlink.htm

     

     

    Flow structure: 

     

    1. Trigger: Record-Triggered Flow on EmailMessage (After Save), or continue from wherever your current flow starts (Case creation via Email-to-Case). 

     

    2. Get Records: query ContentDocumentLink where LinkedEntityId equals the EmailMessage's Id. This gives you the ContentDocumentId(s) of any attachments on that email. 

     

    3. Get Records: query ContentVersion where ContentDocumentId is In your collection from step 2, and IsLatest = true. This gets you the actual file version records you'll attach. 

     

    4. Create Records: create your FeedItem (Chatter post) as you're already doing, on the Case. 

     

    5. Create Records: for each ContentVersion found in step 3, create a FeedAttachment record with: 

       - Feed Entity ID = the FeedItem Id created in step 4 

       - Attachment Record ID = the ContentVersion Id from step 3 

       - Type = Content 

     

    This is exactly the declarative pattern documented for Flow-built Chatter posts with attachments. Reference (community-verified build with the same object structure):

    https://developer.salesforce.com/docs/atlas.en-us.200.0.chatterapi.meta/chatterapi/quickreference_post_feed_element_content.htm

     

     

    One sequencing note: the FeedItem must be created and its Id known BEFORE you can create the FeedAttachment, so make sure your Flow creates the FeedItem in a separate Create Records element (not bulkified together with FeedAttachment), then use the created FeedItem's Id in the following FeedAttachment creation step. 

     

    This works entirely with standard Flow elements, get records, create records, no Apex required.

0/9000
Hafsa Ahmed ha preguntado en #Experience Site

I have recently enabled chatter on our experience site and have updated members on workspace to allow chatter tagging between internal and customer users, however, when a chatter notification(on bell icon) comes into the community, the users are not navigated to the post or the record by clicking the notification alert like how we do in salesforce(internally). This created some confusion for the community user to relate the chatter post to the record. What am I doing wrong? Please help.

 

Please note chatter is enabled and the users can communicate back and forth the only issue is when clicking the notification the eternal users are not directed to the post or the record on which the chatter was posted.

 

Thank you in advance.

 

#Experience Site  #Community Cloud  #Chatter  #Sales Cloud

 

#Trailhead Challenges #TrailblazerCommunity  #Salesforce  #Customer Service

5 respuestas
  1. 28 feb 2024, 15:53

    I got it, I was missing the feed detail page on my community. Thank you.

0/9000
3 comentarios
0/9000

Community,

 

I need your help! I am trying to get chatter to be used on the Lead object. I have it dropped into this lightning record page. When I change the type to global, it works fine but posts to "my followers" instead of the record obviously. BUT when type is set to record, it doesn't show up at all on the lightning record page. Only the feed feature is visible, not the publisher feature. What could I be missing?

Chatter on LeadsAny help you have will be appreciated!!!

 

#Chatter

4 respuestas
  1. 21 mar 2024, 13:06

    I figured out the answer. In the Object Manager page layout, I had not included "question, poll, post" in the lightning and mobile actions options. I just dragged and dropped those and all was well! thanks everyone!

0/9000

In Chatter, what configurations do I need to make so that users cannot delete each other’s posts?

Amplifying information: All users must be under the same Profile.

#Chatter #Chatter Topics #Chatter
0/9000

Hello. I'm trying to complete this challenge "Collaborate with Feeds and Groups" but keep getting an error 

 

Challenge not yet complete in Cunning Panda Playground

We can't find a Chatter post that includes an inline image.

 

I've tried multiple images and all of the suggestions I can find like switching to classic but still keep getting the error. I've used a new playground and an existing one and still get the error. Any suggestions? 

 

#Trailhead Challenges  #Chatter

5 respuestas
  1. 4 abr 2024, 14:10

    Hi @Christina R Armenta, I am from the Trailhead help team. We are glad that the issue is now resolved.

    May I request you please mark the correct answer as Accepted Answer and close this thread so that it can be helpful for other Trailblazers as well who are facing the similar issue.

    Best Regards,

    Sathvika T

    Trailblazer Help

0/9000

Out of office

When I enable the out of office functionality on my user page , where will I be able to see the message?

On the chatter feed or the emails that I sent to the customers ?

#Sales Cloud #Email #Chatter
0/9000

Hello i have created an aura component and which i am calling it from opportunity action button

and using these for chatter

feedchatter aura component auto closing

 

forceChatter:publisher 

forceChatter:feed

The problem I'm encountering is that when I input text in the publisher and wait for 5 seconds, the modal closes on its own. Furthermore, even when I click on "Share," the modal also closes. How can I troubleshoot and resolve this issue?

 

Screenshot 2024-02-21 103714.png

 

#Salesforce  #Salesforce Developer  #Salesforce Admin  #Salesforce Developers  #Lightning Aura Component  #Chatter

1 respuesta
0/9000

I have users that are requesting additional information be added the chatter email notification. They'd like to see (service Cloud) Job number, job name etc. 

 

TIA. 

 

#Service Cloud  #Chatter

1 respuesta
0/9000

In my organization, the chatter setup is operational and functions correctly within the Chatter Application. However, I've noticed an issue where it is not updating properly on the tab next to the user details.

 

I would appreciate your assistance in resolving this matter. I have attached the screenshots for your reference.

 

Please guide possible solutions.

 

Thank you in advance.

 

#Salesforce Admin #Chatter 

1 respuesta
  1. Ajaypreet Singh Saini (Grantbook) Forum Ambassador
    29 feb 2024, 15:30

    Hey @Sangeethraj K P, seems like you have chatter feed component on the page layout but not the chatter publisher.

    Make sure you edit the page and add that component.

0/9000