Skip to main content
Group

Chatter Questions

This is the group for all feedback, questions, and improvement requests around the new Chatter Questions feature which is becoming generally available in Winter '15 release.

I am looking for the solution to Mobile app. double opt-in problem for SMS, , will this feature found in SFMC, under Setup --> Feature Settings --> Email Studio --> Email Optional Features --> Double Opt-In.

works ??? as this is specifically under email

or is there another route ??

0/9000

Hello all,

 

I was wondering, as community admin, if it's possible to convert an already-posted question to a post in Chatter Questions. We are trying to close the "open questions" and most of them are not even questions but have been posted as such. I have not been able to find any lead on that. Could somebody please point me into the right direction if the conversion is possible.

 

Thanks much!

 

@* Experience Cloud * @Chatter Questions

2 answers
  1. Nov 13, 2023, 8:17 PM

    Hello, Muhammad

    Unfortunately, there is no native way to convert a Chatter post into a Chatter question :-( 

    However, there are a few workarounds that you can use:

     

    Method 1: Copy and Paste the Post Text into a New Chatter Question

    This is the simplest method but can be cumbersome if you have many posts to convert. 

     

    1.      Open the Chatter post that needs to be converted.

    2.      Copy the text of the post.

    3.      Open a new Chatter question.

    4.      Paste the post text into the question field.

     

    Method 2: Writing Code to Assist in Conversion

    !!! 

    This method is risky because it deletes converted posts after conversion, so I strongly recommend testing it in a sandbox to avoid any issues later on.

    !!!

    For this method, add the tag " #convert" to the post and then execute the following code in the Developer Console's Anonymous Window:

    // Declare variables

    List<FeedItem> postsToDelete = new List<FeedItem>();

    List<FeedItem> questionsToInsert = new List<FeedItem>();

    // Get all Chatter TextPosts

    List<FeedItem> textPosts = [SELECT Id, Body, ParentId FROM FeedItem WHERE Type = 'TextPost' AND ParentId != null];

    // Loop through all Chatter TextPosts

    for (FeedItem textPost : textPosts) {

    // Check if the post's Body contains the '#convert' tag

    if (textPost.Body != null && textPost.Body.contains('#convert')) {

    // Remove the '#convert' tag and <p> tags from the Body using a regular expression

    String cleanedBody = textPost.Body.replaceAll('(?i)#convert|<p>|</p>', '');

    // Create a new Chatter Question

    FeedItem question = new FeedItem(

    Type = 'QuestionPost',

    Title = 'Converted Question', // Set a default title or provide a meaningful title

    Body = cleanedBody,

    ParentId = textPost.ParentId // Assuming this is the correct relationship name for ParentId in your schema

    // Add other necessary fields for the question

    );

    // Add the new Chatter Question to the list for insertion

    questionsToInsert.add(question);

    // Update the original Chatter TextPost to remove the '#convert' tag and <p> tags

    textPost.Body = cleanedBody;

    update textPost;

    // Add the original Chatter TextPost to the list for deletion

    postsToDelete.add(textPost);

    }

    }

    // Insert the new Chatter Questions

    insert questionsToInsert;

    // Delete the original Chatter TextPosts

    delete postsToDelete;

    This code automates the process, and the converted questions will have the label "Converted Question".

     

    I tested it in the Trailhead Playground, and everything works. Below are the results:

    Before:Hello, MuhammadUnfortunately, there is no native way to convert a Chatter post into a Chatter question :-( However, there are a few workarounds that you can use: Method 1: Copy and Paste the Post TextAfter:t2.jpgI hope this solution will be helpful to you.

     

    Respectfully, 

    Mykhailo from IBVCLOUD OÜ team

0/9000

Notifications from Chatter Stream delayed beginning with last Friday, Oct 13 which is shortly after added sender from and address for hatter email. Any ideas concerning if we did something to cause the delay or if others are experiencing this?

4 answers
0/9000

 We have been sending out email notifications from noreply@chatter.salesforce.com for the last year or so after we first implemented Salesforce.com. For some reason, the email notifications appear to have stopped being sent as of 12:04 am EST on 10/7/2023. Has anyone else experienced this or know why we might be experiencing this. The Email Log File does not show any attempts to send email notification from noreply@chatter.salesforce.com since that time.

2 answers
0/9000

i am new to salesforce . I am getting Sobject exception for below code, I want to delete lead on updataion of Lead statu to 'Closed-Converted';

trigger leadDelete on lead (after update)

if(trigger.isUpdate){

if(trigger.isAfter){

list<Lead> newList =new List<Lead>();

for(Lead ld:Trigger.new){

if(ld.leadStatus !=Trigger.OldMap.get(ld.Id).leadStaus && ld.leadStatus=='Close' ){

 newList.add(ld);

}

}

if(!newList.isEmpty()){

delete newList;

}

}

}

4 answers
  1. May 9, 2023, 12:06 PM

    @Pravin Mumbare apologies for my confusion.  Please try this way:

    trigger leadDelete on Lead (after delete) {

    List<Lead> deletedLeads = Trigger.old;

    List<Lead> leadsToDelete = new List<Lead>();

    for (Lead ld : deletedLeads) {

    if (ld.LeadStatus == 'Closed - Converted') {

    leadsToDelete.add(ld);

    }

    }

    if (!leadsToDelete.isEmpty()) {

    delete leadsToDelete;

    }

    }

0/9000

Hello there, please can somebody suggest why two users with identical profiles and permissions have a different access to activity object? One can see and use it and another cannot.

 

Please can somebody advise what I can do here?

 

Thank you

5 answers
0/9000
7 answers
  1. Tom Bassett (Vera Solutions) Forum Ambassador
    Jul 21, 2022, 6:01 PM
0/9000

Node.js is only supported on Windows 8.1, Windows Server 2012 R2, or higher.

Setting the NODE_SKIP_PLATFORM_CHECK environment variable to 1 skips this

check, but Node.js might not execute correctly. Any issues encountered on

unsupported platforms will not be fixed.21:40:58.3 sfdx force:auth:web:login --setalias salesforce --instanceurl https://login.salesforce.com --setdefaultusername

 ended with exit code 216

1 answer
  1. Jul 20, 2022, 10:32 PM

    Hi shradha ,

     

    What is your OS using?

0/9000
0/9000