How to insert Chatter Post to a Chatter Group using Apex in Salesforce?
We have insert a record into FeedItem object and set the Group Id in the Chatter Group to insert Chatter Post to a Chatter Group using Apex in Salesforce. Sample ....
We have insert a record into FeedItem object and set the Group Id in the Chatter Group to insert Chatter Post to a Chatter Group using Apex in Salesforce. Sample ....
1. Edit the Report. 2. Select Properties. 3. Click Select Folder. 4. Click All Folders. 5. Click Public Reports Folder and click Select Folder. 6. Report will be now in ....
To avoid the System.ListException: List index out of bounds Exception in Salesforce, make sure the size of the list is checked before fetching list values using the index. For example, if ....
Prerequisites: 1. Install Apex Log Analyzer. https://marketplace.visualstudio.com/items?itemName=financialforce.lana 2. The file extension should be .log. 1. Drag and Drop the downloaded Debug Log into tools --> debug --> logs. 2. Right ....
When the users upload files, it will be stored in ContentDocument Entity. So, develop a trigger on ContentDocument entity to fire when the users upload files in Salesforce. Sample Trigger: ....
soap/ajax/54.0/connection.js library can be used to create records using JavaScript in Salesforce. There is no need to use Apex. Sample Code: <apex:page > <script type="text/javascript"> let __sfdcSessionId = '{!GETSESSIONID()}'; </script> ....
Exception "Insert failed. First exception on row 0; first error: INVALID_MARKUP, Error while parsing Rich Text Content: Unsupported HTML tag or attribute encountered - span: [RawBody]" is thrown if the ....
We can use JavaScript method in action attribute to dynamically assign Row Actions in Lightning Datatable using Lightning Web Component in Salesforce. Check the following code for example. If the ....
sforce.opencti.runApex() can be to run or execute Apex using OpenCTI in Salesforce. Sample Code:Apex: global class OpenCTIController { webService static String fetchContacts( String strPhoneNumber ) { List < Contact > ....
Sample Code: sforce.opencti.saveLog( { value:{ entityApiName : "Task", Subject : "Testing", Priority : "Low" }, callback: function( result ) { console.log( 'Result is', JSON.stringify( result ) ); ....