Slaesforce FAQ

how to bold text in salesforce chatter apex

by Elaina Ullrich Published 2 years ago Updated 2 years ago
image

If you know ahead which values will be bold (meaning no custom logic in apex), then it would be best to use style="font-weight:bold;" and hardcode this style into your visualforce. But if you require custom logic within apex to determine if it will be bold or not

Full Answer

What is chatter in Salesforce apex?

Use Chatter in Apex to develop custom experiences in Salesforce. Create Apex pages that display feeds, post feed items with mentions and topics, and update user and group photos. Create triggers that update Chatter feeds.

How to add Salesforce Chatter posts with links to URLs and mentions?

You can refer the following example to add Salesforce Chatter posts with links, urls and mentions: public with sharing class ChatterUtils { // makes a simple chatter text post to the specified user from the running user public static void simpleTextPost (Id userId, String postText) { ConnectApi. FeedType feedType = ConnectApi. FeedType.

How do I use chatter REST API in apex?

Many Chatter REST API resource actions are exposed as static methods on Apex classes in the ConnectApi namespace. These methods use other ConnectApi classes to input and return information. The ConnectApi namespace is referred to as Chatter in Apex. In Apex, you can access some Chatter data using SOQL queries and objects.

image

How to make text bold in Apex?

You can't do it in the apex class. If you know ahead which values will be bold(meaning no custom logic in apex), then it would be best to use style="font-weight:bold;" and hardcode this style into your visualforce.

Which of the following options are available when formatting Chatter posts?

To disable and hide the formatting options, deselect Allow users to compose rich text posts on the Chatter Settings page in Setup. Users can format text posts, questions, and posts with link or file attachments on the Chatter publisher on the Home page, the Chatter tab, groups, profile, and record detail pages.

How do you bold something in HTML?

The HTML element defines bold text, without any extra importance.

Can workflow Post to chatter?

Now not only can you update a field, create a task, or send an outbound message, but with Process Builder you can also create a record or a flow, post to chatter, submit to the approval process, and invoke other processes.

How do you post to chatter with flow?

In Flow Builder, add an Action element to your flow. In the Action field, enter Chatter , and select Post to Chatter.

How do you make text bold?

Make text bold . Click Bold. in the Font group on the Home tab. Type the keyboard shortcut: CTRL+B.

How do I change my font to bold?

To bold the text in HTML, use either the strong tag or the b (bold) tag. Browsers will bold the text inside both of these tags the same, but the strong tag indicates that the text is of particular importance or urgency. You can also bold text with the CSS font-weight property set to “bold.”

How do you make words bold in code?

To make text bold in HTML, use the tag or tag. Both the tags have the same functioning, but tag adds semantic strong importance to the text.

shradha jain

You can refer the following example to add Salesforce Chatter posts with links, urls and mentions: public with sharing class ChatterUtils { // makes a simple chatter text post to the specified user from the running user public static void simpleTextPost (Id userId, String postText) { ConnectApi.FeedType feedType = ConnectApi.FeedType.UserProfile; ConnectApi.MessageBodyInput messageInput = new ConnectApi.MessageBodyInput (); messageInput.messageSegments = new List<ConnectApi.MessageSegmentInput> ();.

Naveen Naidu

Is that possible with batch.. I need to send chatter notifications when opp close it today.

Karthik J

Hi this code sends post to everyone, How to send post to particular person in chatter? Please tell me I need this.

image
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 1 2 3 4 5 6 7 8 9