<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by (ELTORO.it) Andres Perez on Medium]]></title>
        <description><![CDATA[Stories by (ELTORO.it) Andres Perez on Medium]]></description>
        <link>https://medium.com/@eltoroit?source=rss-da832a79dc04------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*qcpFog2dC6z1AV85b-0Sbw.png</url>
            <title>Stories by (ELTORO.it) Andres Perez on Medium</title>
            <link>https://medium.com/@eltoroit?source=rss-da832a79dc04------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 13:44:15 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@eltoroit/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com" rel="hub"/>
        <item>
            <title><![CDATA[What The Pizza Agent Teaches You About AgentScript]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://eltoroit.medium.com/what-the-pizza-agent-teaches-you-about-agentscript-ddb28023a912?source=rss-da832a79dc04------2"><img src="https://cdn-images-1.medium.com/max/2600/1*HElxZE4u15KsIuz8dO20kA.png" width="2612"></a></p><p class="medium-feed-snippet">This post answers the challenge that almost everyone got wrong!</p><p class="medium-feed-link"><a href="https://eltoroit.medium.com/what-the-pizza-agent-teaches-you-about-agentscript-ddb28023a912?source=rss-da832a79dc04------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://eltoroit.medium.com/what-the-pizza-agent-teaches-you-about-agentscript-ddb28023a912?source=rss-da832a79dc04------2</link>
            <guid isPermaLink="false">https://medium.com/p/ddb28023a912</guid>
            <dc:creator><![CDATA[(ELTORO.it) Andres Perez]]></dc:creator>
            <pubDate>Mon, 15 Jun 2026 00:41:37 GMT</pubDate>
            <atom:updated>2026-06-15T01:17:09.398Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[The AgentScript Challenge That AI Is Getting Wrong!]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://eltoroit.medium.com/demystifying-agentforce-the-agentscript-logic-challenge-even-experts-and-ai-are-getting-wrong-d04dd10c3c9f?source=rss-da832a79dc04------2"><img src="https://cdn-images-1.medium.com/max/2600/1*N1uyMIq8-QwEVWTh-_vDsg.png" width="3510"></a></p><p class="medium-feed-snippet">This article is behind a paywal, but if you can&#x2019;t see it please click in this link.</p><p class="medium-feed-link"><a href="https://eltoroit.medium.com/demystifying-agentforce-the-agentscript-logic-challenge-even-experts-and-ai-are-getting-wrong-d04dd10c3c9f?source=rss-da832a79dc04------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://eltoroit.medium.com/demystifying-agentforce-the-agentscript-logic-challenge-even-experts-and-ai-are-getting-wrong-d04dd10c3c9f?source=rss-da832a79dc04------2</link>
            <guid isPermaLink="false">https://medium.com/p/d04dd10c3c9f</guid>
            <dc:creator><![CDATA[(ELTORO.it) Andres Perez]]></dc:creator>
            <pubDate>Fri, 29 May 2026 23:17:11 GMT</pubDate>
            <atom:updated>2026-05-31T20:35:55.505Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Custom Agent Development with AgentForce]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://eltoroit.medium.com/custom-agent-development-with-agentforce-c157bc21badf?source=rss-da832a79dc04------2"><img src="https://cdn-images-1.medium.com/max/2600/1*9W5At4AzTrVTQYIlf97Pbg.png" width="3200"></a></p><p class="medium-feed-snippet">Laying the Groundwork for Custom Agent Development with AgentForce</p><p class="medium-feed-link"><a href="https://eltoroit.medium.com/custom-agent-development-with-agentforce-c157bc21badf?source=rss-da832a79dc04------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://eltoroit.medium.com/custom-agent-development-with-agentforce-c157bc21badf?source=rss-da832a79dc04------2</link>
            <guid isPermaLink="false">https://medium.com/p/c157bc21badf</guid>
            <category><![CDATA[agentforce]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[agents]]></category>
            <category><![CDATA[salesforce]]></category>
            <dc:creator><![CDATA[(ELTORO.it) Andres Perez]]></dc:creator>
            <pubDate>Thu, 30 Jan 2025 11:55:09 GMT</pubDate>
            <atom:updated>2025-01-30T11:55:09.287Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[From Cables to Agentic Development: A Historical Transformation in Software Development]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://eltoroit.medium.com/from-cables-to-agentic-development-a-historical-transformation-in-software-development-cca1f71ec2ab?source=rss-da832a79dc04------2"><img src="https://cdn-images-1.medium.com/max/2310/1*-g3xyNChf5DaShigpHCxAA.png" width="2310"></a></p><p class="medium-feed-snippet">The history of software programming is a remarkable testament to human innovation, marking our transition from physical machinery to&#x2026;</p><p class="medium-feed-link"><a href="https://eltoroit.medium.com/from-cables-to-agentic-development-a-historical-transformation-in-software-development-cca1f71ec2ab?source=rss-da832a79dc04------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://eltoroit.medium.com/from-cables-to-agentic-development-a-historical-transformation-in-software-development-cca1f71ec2ab?source=rss-da832a79dc04------2</link>
            <guid isPermaLink="false">https://medium.com/p/cca1f71ec2ab</guid>
            <category><![CDATA[history-of-technology]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[salesforce]]></category>
            <category><![CDATA[agentforce]]></category>
            <dc:creator><![CDATA[(ELTORO.it) Andres Perez]]></dc:creator>
            <pubDate>Fri, 24 Jan 2025 11:46:48 GMT</pubDate>
            <atom:updated>2025-01-24T22:33:27.836Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Say Goodbye to Chaotic Error Handling: Salesforce Meets Slack]]></title>
            <link>https://eltoroit.medium.com/say-goodbye-to-chaotic-error-handling-salesforce-meets-slack-ecd0788b2ed3?source=rss-da832a79dc04------2</link>
            <guid isPermaLink="false">https://medium.com/p/ecd0788b2ed3</guid>
            <category><![CDATA[salesforce]]></category>
            <category><![CDATA[slack]]></category>
            <category><![CDATA[salesforce-development]]></category>
            <dc:creator><![CDATA[(ELTORO.it) Andres Perez]]></dc:creator>
            <pubDate>Fri, 10 Jan 2025 14:40:51 GMT</pubDate>
            <atom:updated>2025-01-10T16:23:01.268Z</atom:updated>
            <content:encoded><![CDATA[<h4>Part 4: Posting an error message to Slack</h4><p>Now that we’ve confirmed we can post a simple message to Slack from an Apex class, we can begin working on the actual message that will be sent. In this article, we’ll create a simple Flow that is designed to fail, capture the error email sent, and post it directly to Slack.</p><h3>13. Create A Flow That Fails</h3><p>To create a flow that intentionally fails, begin by navigating to Salesforce and accessing the Setup menu. From there, search for <strong>Flows</strong> and select the option to create a new flow. Choose the <strong>Start From Scratch</strong> template and proceed by clicking <strong>Next</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2gUUi-I-bf3dd0gTJePdTw.png" /></figure><p>For the flow type, select <strong>Screen Flow</strong> and click <strong>Create</strong> to open the flow builder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sP_hfza9MvtEQf9ZGQADrw.png" /></figure><p>Start by adding a <strong>Screen element</strong> to your flow. This element will display a simple message, such as “Ready to fail?” This message acts as a pause point, giving users a moment before the error is generated.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cIu8l_AWv7qtLbWQ7AzvMg.png" /></figure><p>Next, add a <strong>Create element</strong> to the flow, which will attempt to create a contact record without providing a last name. Since the last name is a required field for contact records, this action is designed to fail.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8Y7Aq2oIg6XqsaRaaSYYwA.png" /></figure><p>Save your flow with a name like <strong>Error Generating</strong> to help identify it later. Then, debug the flow to test its functionality and ensure it’s working as expected.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wc545ePfUyI7zJtCIu-vwQ.png" /></figure><p>When prompted during debugging, click <strong>Next</strong>. As anticipated, the flow will fail, triggering an error due to the missing last name.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Acm_Tc9m3447Yrf0VUbEKg.png" /></figure><p>Finally, check your email to review the error notifications generated by the flow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*746yixKxlA3SV7_popDFHg.png" /></figure><h3>14. Create The Apex Email Handler Class</h3><p>Create an Apex class that will handle the emails containing errors. This class will capture the error emails and manage the process of sending them to Slack. For now, the focus will be on displaying the information in the debug log to verify that everything is functioning correctly before moving forward.</p><pre>public with sharing class SendErrorsToSlack implements Messaging.InboundEmailHandler {<br> public Messaging.InboundEmailResult handleInboundEmail(Messaging.InboundEmail email, Messaging.InboundEnvelope envelope) {<br>  List&lt;String&gt; lines = new List&lt;String&gt;();<br>  lines.add(&#39;*Current User Name:* &#39; + UserInfo.getUserName());<br>  lines.add(&#39;*Organization ID:* &#39; + UserInfo.getOrganizationId());<br>  lines.add(&#39;*Domain URL:* &#39; + System.Url.getOrgDomainUrl());<br>  lines.add(&#39;*Binary Attachments:* &#39; + email.binaryAttachments);<br>  lines.add(&#39;*From Address:* &#39; + email.fromAddress);<br>  lines.add(&#39;*From Name:* &#39; + email.fromName);<br>  lines.add(&#39;*Html Body:* &#39; + email.htmlBody.left(50).split(&#39;\n&#39;)[0]);<br>  lines.add(email.htmlBody);<br>  lines.add(&#39;*Html Body Is Truncated:* &#39; + email.htmlBodyIsTruncated);<br>  lines.add(&#39;*Message Id:* &#39; + email.messageId);<br>  lines.add(&#39;*Plain Text Body:* &#39; + email.plainTextBody.left(50).split(&#39;\n&#39;)[0]);<br>  lines.add(email.plainTextBody);<br>  lines.add(&#39;*Plain Text Body Is Truncated:* &#39; + email.plainTextBodyIsTruncated);<br>  lines.add(&#39;*References:* &#39; + email.references);<br>  lines.add(&#39;*Subject:* &#39; + email.subject);<br>  lines.add(&#39;*Text Attachments:* &#39; + email.textAttachments);<br>  lines.add(&#39;*To Addresses:* &#39; + email.toAddresses);<br><br>  for (String line : lines) {<br>   System.debug(line);<br>  }<br><br>  Messaging.InboundEmailResult result = new Messaging.InboundEmailresult();<br>  result.message = &#39;Done&#39;;<br>  result.success = true;<br>  return result;<br> }<br>}</pre><p>After deploying the Apex code, navigate to Setup &gt; Custom Code &gt; Email Services. Click on <strong>New Email Service</strong> to create a new service. In the form that appears, fill out the required fields as follows:</p><ul><li>For the <strong>Email Service Name</strong>, enter “SendErrorsToSlack.”</li><li>Set the <strong>Apex Class</strong> to “SendErrorsToSlack.”</li><li>For <strong>Accept Attachments</strong>, choose “All.”</li><li>Ensure that the <strong>Active</strong> checkbox is checked.</li><li>Set the <strong>Over email rate limit action</strong> to “Requeue Message.”</li><li>Under <strong>Other options</strong>, select “Discard Message.”</li><li>Check the box for <strong>Enable Error Routing</strong>.</li><li>In the <strong>Route Error Emails to This Email Address</strong> field, enter your email address.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iUfnX5TCZxiiWV9zLON9SA.png" /></figure><p>Once completed, click <strong>Save</strong>. Then, click on New Email Address to add a new email address.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VVtg87kIwBmfWACdpDBOpg.png" /></figure><p>Fill out the form as follows:</p><ul><li>Set the <strong>Email Address Name</strong> to “SendErrorsToSlack.”</li><li>For <strong>Email Address</strong>, enter “SendErrorsToSlack.”</li><li>Make sure the <strong>Active</strong> checkbox is checked.</li><li>In the <strong>Contact User</strong> field, select your user.</li><li>In the <strong>Accept Email From</strong>, enter “info@salesforce.com”</li></ul><p>Click <strong>Save</strong> once again.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9cPOgq31Qzi98xs_SisA4Q.png" /></figure><p>Finally, copy the email address to your clipboard. This is a very long address that will be generated and displayed on the screen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-aZiK1RH1mYgFkzdji4M-A.png" /></figure><h3>15. Set The Error Emails To Be Sent To That Address</h3><p>Navigate to Setup &gt; Email &gt; <strong>Apex Exception Email</strong>. Under the section <strong>Email Addresses Not in Salesforce</strong>, paste the long email address that you copied earlier. Once done, click <strong>Save</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-TomvtPOaRhlwXt1RaT3Nw.png" /></figure><h3>16. Set Flows To Use That Email Address</h3><p>Navigate to Setup &gt; Process Automation &gt; <strong>Process Automation Settings</strong>. Locate the section titled <strong>Send Process or Flow Error Email to</strong> and select <strong>Apex Exception Email Recipients</strong>. Afterward, click <strong>Save</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JisEvGtCHRr_U4YnmQv14A.png" /></figure><h3>17. Test Email Sent By Flow Errors Is Handled By Apex</h3><p>Open the <strong>Developer Console</strong> and ensure that the logs are enabled. Next, debug the flow as we did in step 13. Finally, verify that there is an entry in the debug log for the email handler.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qIyK8DnxgAOcVnLhNvBj1Q.png" /></figure><h3>18. Send Error To Slack</h3><p>Now that we’ve confirmed that failing flows trigger an email and can be managed by the Apex email handler, it’s time to post this information to the Slack channel we prepared earlier.</p><p>Update the Apex Code to this:</p><pre>public with sharing class SendErrorsToSlack implements Messaging.InboundEmailHandler {<br> public Messaging.InboundEmailResult handleInboundEmail(Messaging.InboundEmail email, Messaging.InboundEnvelope envelope) {<br>  List&lt;String&gt; lines = new List&lt;String&gt;();<br>  lines.add(&#39;*Current User Name:* &#39; + UserInfo.getUserName());<br>  lines.add(&#39;*Organization ID:* &#39; + UserInfo.getOrganizationId());<br>  lines.add(&#39;*Domain URL:* &#39; + System.Url.getOrgDomainUrl());<br>  lines.add(&#39;*Binary Attachments:* &#39; + email.binaryAttachments);<br>  lines.add(&#39;*From Address:* &#39; + email.fromAddress);<br>  lines.add(&#39;*From Name:* &#39; + email.fromName);<br>  lines.add(&#39;*Html Body:* &#39; + email.htmlBody.left(50).split(&#39;\n&#39;)[0]);<br>  lines.add(email.htmlBody);<br>  lines.add(&#39;*Html Body Is Truncated:* &#39; + email.htmlBodyIsTruncated);<br>  lines.add(&#39;*Message Id:* &#39; + email.messageId);<br>  lines.add(&#39;*Plain Text Body:* &#39; + email.plainTextBody.left(50).split(&#39;\n&#39;)[0]);<br>  lines.add(email.plainTextBody);<br>  lines.add(&#39;*Plain Text Body Is Truncated:* &#39; + email.plainTextBodyIsTruncated);<br>  lines.add(&#39;*References:* &#39; + email.references);<br>  lines.add(&#39;*Subject:* &#39; + email.subject);<br>  lines.add(&#39;*Text Attachments:* &#39; + email.textAttachments);<br>  lines.add(&#39;*To Addresses:* &#39; + email.toAddresses);<br><br>  // for (String line : lines) {<br>  //  System.debug(line);<br>  // }<br>  sendToSlack(lines);<br><br>  Messaging.InboundEmailResult result = new Messaging.InboundEmailresult();<br>  result.message = &#39;Done&#39;;<br>  result.success = true;<br>  return result;<br> }<br><br> private void sendToSlack(List&lt;String&gt; lines) {<br>  Http http = new Http();<br>  HttpRequest request = new HttpRequest();<br>  request.setEndpoint(&#39;callout:SlackNC/api/chat.postMessage&#39;);<br>  request.setMethod(&#39;POST&#39;);<br>  Map&lt;String, Object&gt; payload = new Map&lt;String, Object&gt;();<br>  payload.put(&#39;channel&#39;, &#39;C087L3GKN05&#39;);<br>  payload.put(&#39;text&#39;, String.join(lines, &#39;\n&#39;));<br>  String jsonBody = JSON.serialize(payload);<br>  request.setHeader(&#39;Content-Type&#39;, &#39;application/json&#39;);<br>  request.setBody(jsonBody);<br>  HttpResponse response = http.send(request);<br>  if (response.getStatusCode() == 200) {<br>   System.debug(&#39;Message sent successfully: &#39; + response.getBody());<br>  } else {<br>   System.debug(&#39;Error sending message: &#39; + response.getStatus() + &#39; - &#39; + response.getBody());<br>  }<br> }<br>}</pre><p>Once the Apex class is updated and executed anonymously, the error message should appear in Slack. Developers can then use this information to discuss and resolve the issue together.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vCPF2hOu8HEBKfN9o-baog.png" /></figure><p>This could be a good point to stop, but we’ll enhance it further in the next article. Some areas for improvement include:</p><ul><li>Attaching files</li><li>Formatting message</li><li>Creating a Custom Metadata Type to avoid hardcoding Slack channel IDs</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ecd0788b2ed3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Say Goodbye to Chaotic Error Handling: Salesforce Meets Slack]]></title>
            <link>https://eltoroit.medium.com/say-goodbye-to-chaotic-error-handling-salesforce-meets-slack-3d5536449cf8?source=rss-da832a79dc04------2</link>
            <guid isPermaLink="false">https://medium.com/p/3d5536449cf8</guid>
            <category><![CDATA[salesforce]]></category>
            <category><![CDATA[salesforce-development]]></category>
            <category><![CDATA[slack]]></category>
            <dc:creator><![CDATA[(ELTORO.it) Andres Perez]]></dc:creator>
            <pubDate>Fri, 10 Jan 2025 14:38:20 GMT</pubDate>
            <atom:updated>2025-01-10T15:07:34.187Z</atom:updated>
            <content:encoded><![CDATA[<h4>Part 3: How to post a simple message from Salesforce using Apex</h4><p>Now that we know that Slack works, thanks to the testing done in Postman, it’s time to configure Salesforce and test that we can post a simple message in the Slack channel.</p><p><strong>Note</strong>: In this blog series, we’re taking a code-based (rather than clicks-based) approach, as this is necessary for the upcoming steps. However, if you prefer a declarative solution, check out this other article:</p><p><a href="https://eltoro.it/agentforce-humans-with-agents-drive-customer-success-together-7d6742c904df">Agentforce: Humans with agents drive customer success together</a></p><h3>6. Create An Auth. Provider</h3><p>To begin the process of authorizing the Slack app from Salesforce, log in to your Salesforce org and navigate to <strong>Setup &gt; Identity &gt; Auth. Providers</strong>. Once there, click <strong>New</strong> and select <strong>Open ID Connect</strong> as the provider type.</p><p>Next, configure the provider settings as follows:</p><ul><li><strong>Provider Type</strong>: Open ID Connect</li><li><strong>Name</strong>: SlackAP</li><li><strong>Consumer Key</strong>: &lt;Grab the <strong>Client ID</strong> from Slack&gt;</li><li><strong>Consumer Secret</strong>: &lt;Grab the <strong>Client Secret</strong> from Slack&gt;</li><li><strong>Authorize Endpoint URL</strong>: <a href="https://slack.com/oauth/v2/authorize">https://slack.com/oauth/v2/authorize</a></li><li><strong>Token Endpoint URL</strong>: <a href="https://slack.com/api/oauth.v2.access">https://slack.com/api/oauth.v2.access</a></li><li><strong>Default Scopes</strong>: chat:write</li></ul><p>After filling in the details, click <strong>Save</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RFCl3Vv58iNsPze-XUHPVg.png" /></figure><p>Once saved, copy the <strong>Callback URL</strong>, which will be in the following format:<a href="https://customization-computing-909-dev-ed.scratch.my.salesforce.com/services/authcallback/SlackAP">https://&lt;MyDomain&gt;.salesforce.com/services/authcallback/SlackAP</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cU6H1ds-_RQ6etr40U1EKg.png" /></figure><p>Now, return to Slack and add this URL following similar steps to how you added the URL for Postman earlier (<a href="https://eltoro.it/say-goodbye-to-chaotic-error-handling-salesforce-meets-slack-37f5f31ff5ca">Step 4 in previous article</a>).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zz-mxywgGgtnWDGUjGltwg.png" /></figure><h3>7. Define The External Credentials</h3><p>The next step in the authorization process is to define the <strong>External Credentials</strong>, which will handle the authentication and authorization with Slack. Follow these steps:</p><p>In Salesforce, go to <strong>Setup</strong> &gt; <strong>Security</strong> &gt; <strong>Named Credentials</strong> &gt; <strong>External Credentials</strong>. Click <strong>New</strong> to create a new credential and configure the settings as follows:</p><ul><li><strong>Label</strong>: SlackEC</li><li><strong>Name</strong>: SlackEC</li><li><strong>Authentication Protocol:</strong> OAuth 2.0</li><li><strong>Authentication Flow Type</strong>: Browser Flow</li><li><strong>Scope</strong>: Leave this field blank</li><li><strong>Authentication Provider</strong>: Select the <strong>SlackAP</strong> provider (which was set up earlier)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xIVUVyvqlVbFJw1yuTc5og.png" /></figure><p>After entering the details, click <strong>Save</strong>. This will set up the necessary external credentials for Slack in your Salesforce org.</p><h3>8. Create The Principal User</h3><p>The next step in the authorization process is to define the <strong>Principal User</strong>. This is the user who will authenticate and authorize the Slack app and will be responsible for posting messages in the Slack channel. Follow these steps:</p><p>First, click <strong>New</strong> under the <strong>Principal</strong> related list. Then, configure the settings as follows:</p><ul><li><strong>Parameter Name</strong>: SlackP</li><li><strong>Sequence Number</strong>: 1</li><li><strong>Identity Type</strong>: Named Principal</li></ul><p>After configuring, click <strong>Save</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S_wbXWBwjaUuhDu-KgP8bw.png" /></figure><p>Once saved, go to <strong>Actions</strong> and select <strong>Authenticate</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2fWxtCK66Hx_yY7QCInH9w.png" /></figure><p>A prompt will appear similar to the one we saw in Postman (<a href="https://eltoro.it/say-goodbye-to-chaotic-error-handling-salesforce-meets-slack-37f5f31ff5ca">Step 4 in previous article</a>); click <strong>Allow</strong> to grant the necessary permissions, then click <strong>Confirm</strong> to finalize the authentication. Once completed, the status should display <strong>Configured</strong>, indicating that the authorization was successful.</p><h3>9. Create Permission Set To Allow Principal Access</h3><p>The next step in the authorization process is to create a <strong>Permission Set</strong>, which will be assigned to the users who need access to the Slack app from Salesforce. Follow these steps:</p><p>Navigate to <strong>Permission Sets</strong> in Salesforce and click <strong>New</strong> to create a new permission set. Configure the permission set with the following details:</p><ul><li><strong>Label</strong>: SlackPS</li><li><strong>API Name</strong>: SlackPS</li></ul><p>Then click <strong>Save</strong>. Once saved, go to <strong>External Credential Principal Access</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QTc6kce5UyTEKORQQgFq7w.png" /></figure><p>Click <strong>Edit</strong>, and add “<strong>SlackEC</strong> — <strong>SlackP”</strong>, then Click <strong>Save</strong> to apply the changes. This will ensure that the necessary permissions are set for the integration between Slack and Salesforce.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wBp0TBRNQzuG7fUNvlFBlg.png" /></figure><h3>10. Assign The Permission Set</h3><p>The next step in the authorization process is to assign the <strong>Permission Set</strong> to the users who need access to the Slack app in Salesforce. Follow these steps:</p><p>Click <strong>Manage Assignments</strong> in the Permission Set page. Then, click <strong>Add Assignment</strong> and select your username from the list. Click <strong>Next</strong> to proceed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5ThL8kpZ9wEQZmRmzrrTXA.png" /></figure><p>Finally click <strong>Assign</strong> to apply the permission set to your user. This will grant you the necessary permissions to interact with the Slack app within Salesforce.</p><h3>11. Create Named Credentials</h3><p>Finally, the last step in the authorization process is to create the <strong>Named Credentials</strong>, which will store the Slack URL and the associated <strong>External Credentials</strong> we just defined. Follow these steps:</p><p>Navigate to <strong>Setup &gt; Security &gt; Named Credentials</strong> in Salesforce. Click <strong>New</strong> to create a new named credential, then configure the settings as follows:</p><ul><li><strong>Label:</strong> SlackNC</li><li><strong>Name:</strong> SlackNC</li><li><strong>URL:</strong> <a href="https://slack.com/">https://slack.com</a></li><li><strong>External Credential: </strong>SlackEC</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nkudNYvpc_wGN-BTExJ84w.png" /></figure><p>After configuring, click <strong>Save</strong> to create the Named Credential. This will allow Salesforce to securely communicate with Slack. Now, it’s time to test.</p><h3>12. Test from Apex</h3><p>In the code below, make sure to replace the <strong>Channel ID</strong> with your own value, then execute the following anonymous Apex code:</p><pre>Http http = new Http();<br>HttpRequest request = new HttpRequest();<br>request.setEndpoint(&#39;callout:SlackNC/api/chat.postMessage&#39;);<br>request.setMethod(&#39;POST&#39;);<br>// request.setHeader(&#39;Content-Type&#39;, &#39;application/x-www-form-urlencoded&#39;);<br>// String body = &#39;channel=C087L3GKN05&amp;text=Hello World From Apex (FORM)&#39;;<br>// request.setBody(body);<br>Map&lt;String, Object&gt; payload = new Map&lt;String, Object&gt;();<br>payload.put(&#39;channel&#39;, &#39;C087L3GKN05&#39;);<br>payload.put(&#39;text&#39;, &#39;Hello World From Apex (JSON)&#39;);<br>String jsonBody = JSON.serialize(payload);<br>request.setHeader(&#39;Content-Type&#39;, &#39;application/json&#39;);<br>request.setBody(jsonBody);<br>HttpResponse response = http.send(request);<br>if (response.getStatusCode() == 200) {<br> System.debug(&#39;Message sent successfully: &#39; + response.getBody());<br>} else {<br> System.debug(&#39;Error sending message: &#39; + response.getStatus() + &#39; - &#39; + response.getBody());<br>}</pre><p>Once the code executes, you should see a new message in the Slack channel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3ZfZsEuSxecOdxy8MLWzMg.png" /></figure><p>Now that Salesforce is set up to post messages to Slack, we can move on to the next step: posting error messages. This will enable us to capture the error details received via email and send them directly to Slack.</p><p>Continue reading the next article:</p><p><a href="https://eltoro.it/say-goodbye-to-chaotic-error-handling-salesforce-meets-slack-ecd0788b2ed3">Say Goodbye to Chaotic Error Handling: Salesforce Meets Slack</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3d5536449cf8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Say Goodbye to Chaotic Error Handling: Salesforce Meets Slack]]></title>
            <link>https://eltoroit.medium.com/say-goodbye-to-chaotic-error-handling-salesforce-meets-slack-37f5f31ff5ca?source=rss-da832a79dc04------2</link>
            <guid isPermaLink="false">https://medium.com/p/37f5f31ff5ca</guid>
            <category><![CDATA[slack]]></category>
            <category><![CDATA[salesforce-development]]></category>
            <category><![CDATA[salesforce]]></category>
            <dc:creator><![CDATA[(ELTORO.it) Andres Perez]]></dc:creator>
            <pubDate>Fri, 10 Jan 2025 14:36:47 GMT</pubDate>
            <atom:updated>2025-01-10T15:09:09.563Z</atom:updated>
            <content:encoded><![CDATA[<h4>Part 2: How to create and configure a Slack App</h4><p>In this article, we will configure a new Slack app and test it using Postman by posting a simple message to a Slack channel. This will help us ensure that everything is set up correctly before moving on to more complex configurations.</p><h3>1. Create Slack App</h3><p>The first step is to create a new Slack App that will send the error messages from Salesforce to Apex.</p><p>To create this Slack app, start by visiting <a href="https://api.slack.com/">https://api.slack.com/</a>. Click on <strong>Your Apps</strong>, then select <strong>Create New App</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Tcl1KY32lSKcMq0qfNwh-w.png" /></figure><p>Choose the option to create the app <strong>from scratch</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V6uaKvBTMCFFc0kWUgyo3A.png" /></figure><p>Name your app <strong>SalesforceLogs</strong> and select a workspace where it will be used. Once you’ve made these selections, click <strong>Create App</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WT_9ES6pe2r_bDzkJepQRw.png" /></figure><p>Congratulations! Your app is now created, and you’re ready to proceed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nUTFGxF0bXCCKVtW0Vz-rA.png" /></figure><h3>2. Create Slack Channel</h3><p>To create a Slack channel for Salesforce logs, start by opening your Slack workspace at https://&lt;Workspace&gt;.slack.com/. This will navigate you to a URL like https://app.slack.com/client/&lt;Workspace ID&gt;. Next, create a new channel by clicking <strong>Channels &gt; Create &gt; Create channel</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-QY1bS_43Q6oqiPJsBQjlw.png" /></figure><p>Select the option for a <strong>Blank Channel</strong> and click <strong>Next</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0zDgha3gMtAFK0KAkAnaZg.png" /></figure><p>Name the channel <strong>salesforce-logs</strong>, and click <strong>Create</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t2ltw9xyT69X7KtoUJ7CHQ.png" /></figure><p>Skip adding people for now by selecting <strong>Skip for now</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sHqxWY4ucjh9nxHXn5GqmQ.png" /></figure><p>Once you’re done, your new channel is ready to use!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gqLfga_qWlp3bwBDFT-fgg.png" /></figure><h3>3. Grab Channel ID</h3><p>To retrieve the channel ID, first, click on the channel’s name.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1BtfzXEv9rOFpOh4hYhzGg.png" /></figure><p>This will open the channel’s settings, where you can locate the ID at the bottom of the modal dialog.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/1*03JCf-myYpyFBQOaPvDC2A.png" /></figure><p>If you’re browsing the channel on the web, you’ll find the ID directly in the URL, as shown here: https://app.slack.com/client/&lt;Workspace ID&gt;/Channel ID&gt;. Now that you have the Channel ID, you will be able to post to that channel.</p><h3>4. Authorize Slack App from Postman</h3><p>As with any integration you build, it’s always a good idea to test it in Postman first to ensure everything is functioning correctly. Once the testing is complete and everything is working as expected, you can proceed with making the necessary changes in Salesforce.</p><p>In this guide, we’ll take a step-by-step approach to build the integration, testing each stage to better understand the different configurations required in both Slack and Postman. Additionally, we’ll explore the types of errors you might encounter if the steps aren’t followed properly, helping you troubleshoot and avoid common issues in the future.</p><p>Start by opening Postman and creating a new workspace called <strong>Slack Workspace</strong>. Next, create a collection and name it <strong>Slack Collection</strong>. Finally, create a new request titled <strong>Slack Request</strong>. Don’t worry about the details of the request just yet — we’ll work on the request a bit later.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eoDrutIZtej4K4BgxF0_Rg.png" /></figure><p>Before diving into the configuration of the request, it’s important to first set up the authorization. To do this, select the required details from the Slack API, which you can find in the <strong>Basic Information</strong> section of your Slack app. Once you have the necessary details, you can proceed with the next steps to configure your request.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nUTFGxF0bXCCKVtW0Vz-rA.png" /></figure><p>In the Postman’s authorization settings, ensure you configure the following details:</p><ul><li><strong>Auth Type:</strong> OAuth 2.0</li><li><strong>Add auth data to:</strong> Request Headers</li><li><strong>Token:</strong> Token Name</li><li><strong>Header Prefix:</strong> Bearer</li><li><strong>Grant type:</strong> Authorization Code</li><li><strong>Auth URL:</strong> <a href="https://slack.com/oauth/v2/authorize">https://slack.com/oauth/v2/authorize</a></li><li><strong>Access Token URL:</strong> <a href="https://slack.com/api/oauth.v2.access">https://slack.com/api/oauth.v2.access</a></li><li><strong>Client ID:</strong> &lt;Grab the <strong>Client ID</strong> from Slack&gt;</li><li><strong>Client Secret:</strong> &lt;Grab the <strong>Client Secret</strong> from Slack&gt;</li><li><strong>Client Authentication:</strong> Send as Basic Auth header</li></ul><p>Once configured, click <strong>Get New Access Token</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MC5kAzfmen6vLoj8dYpKog.png" /></figure><p>At this point, you will encounter this error.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J1klFmWGoTM9WVFkWhPdbQ.png" /></figure><p>To resolve it, copy the callback URL provided by Postman: https://oauth.pstmn.io/v1/browser-callback. Go to your Slack app, click on <strong>OAuth &amp; Permissions</strong>, and scroll down to <strong>Redirect URLs</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TE4lahffQhgciAXejDhTKg.png" /></figure><p>Click <strong>Add New Redirect URL, a</strong>dd the copied URL from Postman here and click <strong>Save URLs</strong>.</p><p>Now, return to Postman and click <strong>Get New Access Token</strong> again. You will see a different error:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qs3OGUGDwRSUDRerIZb4nQ.png" /></figure><p>Review the <a href="https://api.slack.com/methods/chat.postMessage">Slack API </a><a href="https://api.slack.com/methods/chat.postMessage">chat.postMessagemethod documentation</a> to see that the <strong>chat:write</strong> scope is required for sending messages.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8XydH73e0tp_FQm2raZPyg.png" /></figure><p>Back in Postman, set the scope to <strong>chat:write</strong>, and click <strong>Get New Access Token</strong> once more.</p><p>At this point, you will encounter this error.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Gy_p5XT59VWAi8yjbIqF8A.png" /></figure><p>Then, go back to Slack, click on <strong>OAuth &amp; Permissions</strong>, and scroll to the <strong>Scopes</strong> section. Under <strong>Bot Token Scopes</strong>, click <strong>Add an OAuth Scope</strong>, and add <strong>chat:write</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5itfKa4n8vPxuOe1Vnru4w.png" /></figure><p>Now you can install this app by clicking <strong>Install App</strong> and proceed by clicking <strong>Install to FREE — JavaScript For IoT</strong> (the name of your Slack workspace)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QYoUUaxsjM3ip5LbhaQj6w.png" /></figure><p>Now click <strong>Allow</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_oCrDvLlZM0NgDONINXmqQ.png" /></figure><p>After completing this, return to Postman and click <strong>Get New Access Token</strong>. When prompted, click <strong>Proceed</strong> and then <strong>Use Token</strong> to finalize the setup.</p><p>You have Authorized Postman to post messages to the Slack channel.</p><h3>5. Post test message from Postman</h3><p>To begin, navigate to the <strong>Slack Request</strong> request in Postman. Ensure that the request method is set to <strong>POST</strong>, and the URL is configured as https://slack.com/api/chat.postMessage. Next, select <strong>Body</strong> and choose the <strong>x-www-form-urlencoded</strong> option. In the form fields, enter the following:</p><ul><li><strong>channel</strong>: &lt;Slack Channel ID&gt; (replace with your Slack channel ID)</li><li><strong>text</strong>: &quot;Hello World&quot;</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d7qv9AhYYwgz2cd3kLHROQ.png" /></figure><p>Click <strong>Send</strong>, and you will encounter this error message:</p><pre>{<br>    &quot;ok&quot;: false,<br>    &quot;error&quot;: &quot;not_in_channel&quot;<br>}</pre><p>This error indicates that the bot is not currently part of the channel. To fix this, go back to Slack and navigate to the salesforce-logs channel. Click on the channel title, then select the <strong>Integrations</strong> tab. Under <strong>Apps</strong>, click <strong>Add an App</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WqCJVMCUvw3t5E_rQIgbWw.png" /></figure><p>Find the <strong>SalesforceLogs</strong> app. Click the <strong>Add</strong> button next to it to add the bot to the channel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Svz0TrKXc48kXyBoX9mddA.png" /></figure><p>Now, return to Postman and go back to the <strong>Slack Request</strong> request. Click <strong>Send</strong> again, and you should receive a response confirming the success of the request:</p><pre>{<br>    &quot;ok&quot;: true,<br>    &quot;channel&quot;: &quot;C087L3GKN05&quot;,<br>    &quot;ts&quot;: &quot;1736296619.358569&quot;,<br>    &quot;message&quot;: {<br>        &quot;user&quot;: &quot;U087PH6KPU3&quot;,<br>        &quot;type&quot;: &quot;message&quot;,<br>        &quot;ts&quot;: &quot;1736296619.358569&quot;,<br>        &quot;bot_id&quot;: &quot;B087944FUR5&quot;,<br>        &quot;app_id&quot;: &quot;A087RBGVCF6&quot;,<br>        &quot;text&quot;: &quot;Hello World&quot;,<br>        &quot;team&quot;: &quot;T0864DHHFU1&quot;,<br>        &quot;bot_profile&quot;: {<br>            &quot;id&quot;: &quot;B087944FUR5&quot;,<br>            &quot;app_id&quot;: &quot;A087RBGVCF6&quot;,<br>            &quot;name&quot;: &quot;SalesforceLogs&quot;,<br>            &quot;icons&quot;: {<br>                &quot;image_36&quot;: &quot;https://a.slack-edge.com/80588/img/plugins/app/bot_36.png&quot;,<br>                &quot;image_48&quot;: &quot;https://a.slack-edge.com/80588/img/plugins/app/bot_48.png&quot;,<br>                &quot;image_72&quot;: &quot;https://a.slack-edge.com/80588/img/plugins/app/service_72.png&quot;<br>            },<br>            &quot;deleted&quot;: false,<br>            &quot;updated&quot;: 1736295934,<br>            &quot;team_id&quot;: &quot;T0864DHHFU1&quot;<br>        },<br>        &quot;blocks&quot;: [<br>            {<br>                &quot;type&quot;: &quot;rich_text&quot;,<br>                &quot;block_id&quot;: &quot;9Mt&quot;,<br>                &quot;elements&quot;: [<br>                    {<br>                        &quot;type&quot;: &quot;rich_text_section&quot;,<br>                        &quot;elements&quot;: [<br>                            {<br>                                &quot;type&quot;: &quot;text&quot;,<br>                                &quot;text&quot;: &quot;Hello World&quot;<br>                            }<br>                        ]<br>                    }<br>                ]<br>            }<br>        ]<br>    }<br>}</pre><p>Finally, head back to Slack and check the newly posted message, which should appear as expected in the salesforce-logs channel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HD-mdUIrqjLkkw5Y_XwDlA.png" /></figure><p>Now that Slack is configured to receive messages from an integration and we’ve tested it using Postman, we can move on to the Salesforce configuration. This step will allow us to set up the necessary connections between Salesforce and Slack for seamless communication.</p><p>Continue reading the next article:</p><p><a href="https://eltoro.it/say-goodbye-to-chaotic-error-handling-salesforce-meets-slack-3d5536449cf8">Say Goodbye to Chaotic Error Handling: Salesforce Meets Slack</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=37f5f31ff5ca" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Say Goodbye to Chaotic Error Handling: Salesforce Meets Slack]]></title>
            <link>https://eltoroit.medium.com/say-goodbye-to-chaotic-error-handling-salesforce-meets-slack-a315334c43a3?source=rss-da832a79dc04------2</link>
            <guid isPermaLink="false">https://medium.com/p/a315334c43a3</guid>
            <category><![CDATA[salesforce-development]]></category>
            <category><![CDATA[salesforce]]></category>
            <category><![CDATA[slack]]></category>
            <dc:creator><![CDATA[(ELTORO.it) Andres Perez]]></dc:creator>
            <pubDate>Fri, 10 Jan 2025 14:30:23 GMT</pubDate>
            <atom:updated>2025-01-10T15:14:06.449Z</atom:updated>
            <content:encoded><![CDATA[<h4>Part 1: Why Slack is the Hero Your Salesforce Errors Need</h4><p>Let’s talk about something every Salesforce developer knows too well — errors. Whether it’s a Flow or Apex gone rogue, errors are part of the job. But how we handle them? That’s where the magic happens.</p><p>Error management in Salesforce isn’t just about finding and fixing bugs; it’s about keeping your team productive and your projects running smoothly. The faster you resolve an issue, the less disruption it causes. But here’s the catch: Salesforce’s built-in error notification system sends emails to the person who last deployed the code, often leaving teams scrambling to figure out who should actually address the issue.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*746yixKxlA3SV7_popDFHg.png" /></figure><p>Enter Slack. By integrating Salesforce with Slack, you can turn a chaotic, fragmented error notification process into a streamlined, collaborative system. Imagine a single Slack channel where all error alerts land, ready for your team to tackle together. No more cluttered inboxes. No more missed notifications. Just real-time updates, instant collaboration, and faster fixes.</p><p>With Salesforce and Slack working together, your team becomes unstoppable. It’s like upgrading from an old flip phone to the latest smartphone — you’ll wonder how you ever managed without it.</p><h3>Current Challenges in Salesforce Error Notifications</h3><p>Here’s how error notifications work in Salesforce today: When a Flow or Apex code fails, an email is sent to the developer who deployed it. Seems straightforward, right? But let’s look closer.</p><p>In small teams, this might work fine. But in larger teams, where multiple developers are working on different parts of a project, this approach quickly falls apart. Here’s why:</p><ul><li><strong>Fragmented Notifications</strong>: Errors are sent to individual inboxes. If multiple developers deploy different pieces of code, notifications are scattered, and it’s hard to get a full picture of what’s going wrong.</li><li><strong>No Team Visibility</strong>: Only the person who gets the error email knows about it. The rest of the team remains in the dark, missing opportunities to help or learn from the issue.</li><li><strong>Dependency on One Developer</strong>: What happens if the developer who deployed the code is unavailable? The error sits unresolved until they return, causing delays and frustration.</li><li><strong>Email Overload</strong>: Let’s face it — nobody likes digging through email chains to find the one alert they need. Important notifications can easily get buried.</li><li><strong>Limited Team Collaboration</strong>: Emails don’t foster teamwork. Developers are less likely to help each other when notifications are siloed in inboxes.</li><li><strong>Missed Context Sharing</strong>: In Slack, developers can share insights or context about an error by leaving comments on the Slack thread. This collaboration helps others understand the issue better and speeds up resolution.</li><li><strong>Faster Knowledge Transfer</strong>: When developers discuss errors in Slack, the conversation is visible to everyone. This creates an opportunity for less experienced team members to learn from their peers.</li><li><strong>Enhanced Problem-Solving</strong>: By working together in Slack threads, developers can brainstorm solutions in real time, combining their expertise to tackle complex issues more effectively.</li></ul><p>The result? Confusion, delays, and missed opportunities to collaborate. Without Slack, it’s like trying to solve a puzzle with missing pieces, where no one can see the full picture or contribute to the solution.</p><h3>Why Slack is a Game-Changer for Error Management</h3><p>Slack takes this scattered process and centralizes it, transforming how your team handles errors.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K0Zseg331KaKznZXP5KOPA.png" /></figure><ul><li><strong>Centralized Notifications</strong>: All error alerts are routed to a dedicated Slack channel. Instead of multiple inboxes, there’s one shared space where the entire team can see what’s happening.</li><li><strong>Real-Time Updates</strong>: Notifications arrive instantly, so your team can start troubleshooting right away. No delays, no confusion.</li><li><strong>Team-Wide Visibility</strong>: Everyone stays informed. Whether it’s a Flow failure or an Apex issue, the entire team knows about it and can jump in to help.</li><li><strong>Seamless Collaboration</strong>: Developers can discuss the error, share insights, and brainstorm solutions — all in the same place. <strong><em>Slack isn’t just for notifications; it’s for conversations.</em></strong></li><li><strong>No Single Point of Dependency</strong>: If the developer who deployed the code is unavailable, no problem. All the information needed to resolve the issue is in Slack, so any team member can step in.</li></ul><blockquote>Imagine this: A Flow fails at 3 PM. Within seconds, the error notification appears in your team’s Slack channel. One developer sees it, shares some context, and another jumps in with a solution. By 3:10 PM, the issue is resolved, and the team moves on. That’s the power of Slack.</blockquote><h3>Breaking It Down: What’s Next?</h3><p>Implementing this integration might sound like a big task, but don’t worry — we’ll break it down into simple, actionable steps. To make it even easier, I’ve divided the setup process into five focused articles:</p><p><strong>Part 1: Why Slack is the Hero Your Salesforce Errors Need</strong><br>You’re reading this now — a high-level overview of how Slack can revolutionize your error management.</p><p><a href="https://eltoro.it/say-goodbye-to-chaotic-error-handling-salesforce-meets-slack-a315334c43a3">Say Goodbye to Chaotic Error Handling: Salesforce Meets Slack</a></p><p><strong>Part 2: How to create and configure a Slack App</strong><br>In the next article, we’ll set up Slack for error notifications and test it using Postman. You’ll learn how to create the foundation for your new system.</p><p><a href="https://eltoro.it/say-goodbye-to-chaotic-error-handling-salesforce-meets-slack-37f5f31ff5ca">Say Goodbye to Chaotic Error Handling: Salesforce Meets Slack</a></p><p><strong>Part 3: How to post a simple message from Salesforce using Apex</strong><br>Here, we’ll connect Salesforce to Slack, send test messages, and verify that everything works as expected.</p><p><a href="https://eltoro.it/say-goodbye-to-chaotic-error-handling-salesforce-meets-slack-3d5536449cf8">Say Goodbye to Chaotic Error Handling: Salesforce Meets Slack</a></p><p><strong>Part 4: Posting an error message to Slack</strong><br>This is where things get fun. We’ll create a Flow that intentionally fails (yes, on purpose!) and send its error message to Slack.</p><p><a href="https://eltoro.it/say-goodbye-to-chaotic-error-handling-salesforce-meets-slack-ecd0788b2ed3">Say Goodbye to Chaotic Error Handling: Salesforce Meets Slack</a></p><p><strong>Part 5: Some Improvements (Optional)</strong><br>Want to take your setup to the next level? In this article, we’ll explore enhancements like using External Services (OpenAPI) to simplify the Slack call, attaching files to the message, and formatting error messages for clarity using Slack Blocks.</p><p>&lt;THIS IS CURRENTLY BEING WRITTEN, NOT PUBLSIHED YET.&gt;</p><p>Each article is designed to give you the tools you need to build a robust, efficient error management system — one step at a time.</p><h3>Conclusion</h3><p>Let’s face it: Traditional Salesforce error notifications just don’t cut it for modern teams. They’re fragmented, inefficient, and prone to delays. But with Slack, you can turn those notifications into opportunities for collaboration, learning, and growth.</p><p>By centralizing error alerts into a single Slack channel, your team gets real-time updates, improved visibility, and faster resolutions. No more confusion. No more downtime. Just a smooth, seamless workflow that keeps your projects on track.</p><p>Ready to get started? In the next article, we’ll set up Slack to handle error notifications and test the system to make sure it’s running like a dream.</p><p>Stay tuned — your error management process is about to become smarter, faster, and dare I say, a little fun.</p><p>Continue reading the next article:</p><p><a href="https://eltoro.it/say-goodbye-to-chaotic-error-handling-salesforce-meets-slack-37f5f31ff5ca">Say Goodbye to Chaotic Error Handling: Salesforce Meets Slack</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a315334c43a3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Agentforce: Humans with agents drive customer success together]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://eltoroit.medium.com/agentforce-humans-with-agents-drive-customer-success-together-7d6742c904df?source=rss-da832a79dc04------2"><img src="https://cdn-images-1.medium.com/max/2600/1*5qc8sTx7kTYQkostYx2P1g.png" width="3466"></a></p><p class="medium-feed-snippet">There&#x2019;s no better place for agents to exist than Slack</p><p class="medium-feed-link"><a href="https://eltoroit.medium.com/agentforce-humans-with-agents-drive-customer-success-together-7d6742c904df?source=rss-da832a79dc04------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://eltoroit.medium.com/agentforce-humans-with-agents-drive-customer-success-together-7d6742c904df?source=rss-da832a79dc04------2</link>
            <guid isPermaLink="false">https://medium.com/p/7d6742c904df</guid>
            <category><![CDATA[slack]]></category>
            <category><![CDATA[salesforce]]></category>
            <category><![CDATA[agentforce]]></category>
            <dc:creator><![CDATA[(ELTORO.it) Andres Perez]]></dc:creator>
            <pubDate>Sat, 28 Dec 2024 09:39:37 GMT</pubDate>
            <atom:updated>2024-12-28T12:39:51.463Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[How Can Developers Leverage Salesforce Einstein and Agentforce?]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://eltoroit.medium.com/how-can-developers-leverage-salesforce-einstein-and-agentforce-1c6da59d8d02?source=rss-da832a79dc04------2"><img src="https://cdn-images-1.medium.com/max/2600/1*HH-611-yr30TCuuGcTdASA.png" width="2876"></a></p><p class="medium-feed-snippet">Salesforce has had quite a bit of movement recently on the AI front, there are very good trails that explain Agentforce, Prompt Templates&#x2026;</p><p class="medium-feed-link"><a href="https://eltoroit.medium.com/how-can-developers-leverage-salesforce-einstein-and-agentforce-1c6da59d8d02?source=rss-da832a79dc04------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://eltoroit.medium.com/how-can-developers-leverage-salesforce-einstein-and-agentforce-1c6da59d8d02?source=rss-da832a79dc04------2</link>
            <guid isPermaLink="false">https://medium.com/p/1c6da59d8d02</guid>
            <category><![CDATA[salesforce]]></category>
            <category><![CDATA[einstein]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[agentforce]]></category>
            <dc:creator><![CDATA[(ELTORO.it) Andres Perez]]></dc:creator>
            <pubDate>Wed, 27 Nov 2024 10:16:25 GMT</pubDate>
            <atom:updated>2024-11-27T10:18:44.334Z</atom:updated>
        </item>
    </channel>
</rss>