<?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"><channel><title><![CDATA[Argen's Space]]></title><description><![CDATA[Learning notes]]></description><link>https://argenturatbek.com</link><generator>RSS for Node</generator><lastBuildDate>Wed, 15 Apr 2026 15:50:09 GMT</lastBuildDate><atom:link href="https://argenturatbek.com/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Setting a Salesforce User Password via Developer Console (Apex)]]></title><description><![CDATA[If you would like to quickly set a temporary password for a user, you can do so in the Developer Console.

Get the user via a query (you can use a more specific WHERE clause; in my case, I am just querying based on the user’s name)
 SELECT Id FROM Us...]]></description><link>https://argenturatbek.com/setting-a-salesforce-user-password-via-developer-console-apex</link><guid isPermaLink="true">https://argenturatbek.com/setting-a-salesforce-user-password-via-developer-console-apex</guid><dc:creator><![CDATA[Argen Turatbek]]></dc:creator><pubDate>Tue, 27 Jan 2026 06:59:54 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/stock/unsplash/FnA5pAzqhMM/upload/d43f3c483c3a4c54a73feb3eeeec32d5.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>If you would like to quickly set a temporary password for a user, you can do so in the Developer Console.</p>
<ol>
<li><p>Get the user via a query (you can use a more specific <strong>WHERE</strong> clause; in my case, I am just querying based on the user’s name)</p>
<pre><code class="lang-sql"> <span class="hljs-keyword">SELECT</span> <span class="hljs-keyword">Id</span> <span class="hljs-keyword">FROM</span> <span class="hljs-keyword">User</span> <span class="hljs-keyword">WHERE</span> <span class="hljs-keyword">Name</span> = <span class="hljs-string">'argen'</span>
</code></pre>
<p> <img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1769496498292/3d0ad6c8-3756-4b64-8a4a-a3ecc314ab4e.png" alt="Developer Console &gt; Query Editor &gt; Execute" class="image--center mx-auto" /></p>
<p> Developer Console &gt; Query Editor &gt; Execute</p>
</li>
<li><p>Copy the Id from the query result and paste the following Apex code into the Anonymous Window (or simply run CTRL + E if you are on Windows or CMD + E if you are on Mac).</p>
<pre><code class="lang-java"> String userId = <span class="hljs-string">'005***************'</span>; <span class="hljs-comment">// In your case, you will paste the full Id.</span>
 String tempPassword = <span class="hljs-string">'tempPassword123!'</span>; <span class="hljs-comment">// Password we set for the user.</span>
 System.setPassword(userId, tempPassword);
</code></pre>
<p> <img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1769497137156/b2c96137-0830-41ca-a63e-8dc3cbf60b33.png" alt class="image--center mx-auto" /></p>
<p> Click the <strong>“Execute”</strong> button at the bottom right.</p>
</li>
<li><p>You can log in with the new password. Please follow this approach only in Sandbox or Development environments. Also, make sure the user is active and not frozen.</p>
</li>
</ol>
]]></content:encoded></item><item><title><![CDATA[Exam Prep Notes: Salesforce Certified AI Associate]]></title><description><![CDATA[Introduction

Here are some study notes I've put together from Trailhead.com and Salesforce.com while preparing for my Salesforce Certified AI Associate Exam. These notes are just for learning and might not be perfect, so double-check everything with...]]></description><link>https://argenturatbek.com/exam-prep-notes-salesforce-certified-ai-associate</link><guid isPermaLink="true">https://argenturatbek.com/exam-prep-notes-salesforce-certified-ai-associate</guid><category><![CDATA[Salesforce]]></category><category><![CDATA[AI]]></category><category><![CDATA[Certification]]></category><dc:creator><![CDATA[Argen Turatbek]]></dc:creator><pubDate>Tue, 28 May 2024 08:30:41 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1716884971960/040be224-28ca-4eed-8a3c-298551fbf0c7.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h2 id="heading-introduction">Introduction</h2>
<blockquote>
<p>Here are some study notes I've put together from <a target="_blank" href="http://trailhead.com/">Trailhead.com</a> and <a target="_blank" href="http://salesforce.com/">Salesforce.com</a> while preparing for my Salesforce Certified AI Associate Exam. These notes are just for learning and might not be perfect, so double-check everything with other sources. Some parts are copied directly.</p>
</blockquote>
<h3 id="heading-main-information">Main Information</h3>
<ul>
<li><p>Content: 40 multiple-choice questions</p>
</li>
<li><p>Time allotted to complete the exam: 70 minutes</p>
</li>
<li><p>Passing score: 65%</p>
</li>
<li><p>Trailmix: <a target="_blank" href="https://trailhead.salesforce.com/users/strailhead/trailmixes/prepare-for-your-salesforce-ai-associate-credential">Prepare for Your Salesforce AI Associate Credential</a></p>
</li>
<li><p>Module: <a target="_blank" href="https://trailhead.salesforce.com/content/learn/modules/cert-prep-salesforce-ai-associate">Salesforce AI Associate Certification Prep</a></p>
</li>
<li><p>AI basics, its different types such as predictive analytics, machine learning, NLP, and computer vision</p>
</li>
<li><p>Salesforce's Trusted AI Principles, particularly in the context of CRM systems like Salesforce and its suite of products</p>
</li>
<li><p>The role of data quality, data preparation/cleansing, and data governance in training and fine-tuning AI models</p>
</li>
<li><p>Ethical and responsible handling of data, including privacy, bias, security, and compliance considerations</p>
</li>
<li><p>Ability to engage in meaningful discussions with stakeholders on how AI can be used to improve their business and differing scenarios, including identifying opportunities for AI-driven improvements and potential challenges</p>
</li>
</ul>
<h3 id="heading-exam-outline">Exam Outline:</h3>
<p><strong>AI Fundamentals: 17%</strong></p>
<ul>
<li><p>Explain the basic principles and applications of AI within Salesforce.</p>
</li>
<li><p>Differentiate between the types of AI and their capabilities.</p>
</li>
</ul>
<p><strong>AI Capabilities in CRM: 8%</strong></p>
<ul>
<li><p>Identify CRM AI capabilities.</p>
</li>
<li><p>Describe the benefits of AI as they apply to CRM.</p>
</li>
</ul>
<p><strong>Ethical Considerations of AI: 39%</strong></p>
<ul>
<li><p>Describe the ethical challenges of AI (for example, human bias in machine learning, lack of transparency, etc.).</p>
</li>
<li><p>Apply Salesforce's Trusted AI Principles to given scenarios.</p>
</li>
</ul>
<p><strong>Data for AI: 36%</strong></p>
<ul>
<li><p>Describe the importance of data quality.</p>
</li>
<li><p>Describe the elements/components of data quality.</p>
</li>
</ul>
<hr />
<h2 id="heading-ai-fundamentals-17">AI Fundamentals (17%)</h2>
<p>Main Types of AI:</p>
<ul>
<li><p>Numeric Predictions</p>
<ul>
<li><p>AI predictions take the value of 0 (not going to happen) to 1 (totally going to happen)</p>
</li>
<li><p>predict next quarter’s sales</p>
</li>
</ul>
</li>
<li><p>Classifications</p>
<ul>
<li><p>flag fraudulent transactions</p>
</li>
<li><p>diagnose illnesses</p>
</li>
<li><p>identify toxic comments</p>
</li>
</ul>
</li>
<li><p>Robotic Navigation</p>
<ul>
<li><p>the case of autonomous (hands-free) driving</p>
</li>
<li><p>can adapt to changing environmental conditions</p>
</li>
<li><p>rescue robots that can traverse disaster areas, such as a collapsed building</p>
</li>
</ul>
</li>
<li><p>Language Processing</p>
<ul>
<li><p>NLP → Natural Language Processing.</p>
</li>
<li><p>NLP is a huge part of generative AI.</p>
<ul>
<li>subcategory of AI that takes words and turns them into unique images, sounds, and words.</li>
</ul>
</li>
</ul>
</li>
</ul>
<p><strong>How machine learning works?</strong></p>
<p>The core driver of AI. A process of using algorithms to tell something interesting about data without code. Computers learn from data with minimal programming.</p>
<ul>
<li><p>Natural Language Understanding (NLU) systems handle communication between people and machines</p>
</li>
<li><p>Natural Language Processing (NLP) machines ability to understand what humans mean when they speak as naturally would to another human.</p>
</li>
<li><p>Named Entity Recognition (NER) → data labeling. Breaking apart a sentence into segments that a computer can understand and respond to quickly.</p>
</li>
<li><p>Deep Learning → refers to artificial neural networks being developed between data points in large databases. Connecting dots to give insights, draw conclusions.</p>
</li>
</ul>
<blockquote>
<p>All Relies on Data</p>
</blockquote>
<p>→ Structured Data: organized, with labels on every column.</p>
<p>→ lets computers <strong>do supervised learning</strong></p>
<p>→ Unstructured Data: unorganized, news article, unlabeled image file.</p>
<p>→ unsupervised learning, which is when AI tries to find connections in the data without knowing what’s looking for.</p>
<blockquote>
<p>AI is incomplete without <strong>Neural Networks</strong></p>
</blockquote>
<p>Products SF</p>
<div class="hn-table">
<table>
<thead>
<tr>
<td>Name</td><td>Description</td></tr>
</thead>
<tbody>
<tr>
<td>Einstein Bots</td><td>resolve customer issues, collect qualified customer information, and hand off the customers to agents,</td></tr>
<tr>
<td>Einstein Agent</td><td>case routing, automatic triaging, case field prediction.</td></tr>
<tr>
<td>Einstein Discovery</td><td>take action with predictivr service KPIs. real-time analysis of drivers that impact KPIs, like churn or CSAT and suggested recommendations and explanations, managers are empowered to make more strategic decisions for their business.</td></tr>
<tr>
<td>Einstein Vision for Field Service</td><td>automates image classification to resolve issues. Just by taking a picture of the object, Einstein Vision can instantly identify the part, ensuring accuracy for the technician and boosting first-time fix rates.</td></tr>
<tr>
<td>Einstei Language</td><td>deep learning to developers. devs can use pretrained. models to classify text by the sentiment as either positive, neutral, negative and be able to classify the underlying intent in a body of text.</td></tr>
<tr>
<td></td></tr>
</tbody>
</table>
</div><p>Bots → Transparent, Personable, Thorough, Iterative.</p>
<p><strong>Why we need Neural Networks?</strong></p>
<p>Training AI by adding extra layers to find hidden meaning in data is what’s called <strong>deep learning</strong>.</p>
<p>designing a neural network involves choosing the number of nodes, layers, and the appropriate math for the task it’s training for.</p>
<blockquote>
<p><strong>Imagine a skilled talent scout who’s looking for the next great baseball player. “I’ll know him when I see him,” they might say. They can’t explain how they’ll know, they just will. In the same way, our neural network can’t explain why certain factors are important.</strong></p>
</blockquote>
<h3 id="heading-ai-for-biz">AI for Biz</h3>
<ul>
<li><p><strong>Yes-and-No Predicitons and Answers</strong></p>
<p>  → AI helps you answer these questions by analyzing historical data.</p>
<p>  → Scores are used.(0 to 100)</p>
</li>
<li><p><strong>Numeric Predicitions</strong></p>
<p>  → how much revenue?</p>
<p>  → how many days it will take us to resolve this customer’s issue</p>
</li>
<li><p><strong>Classifications</strong></p>
<p>  → use deep learning to operate on unstructured data like free text or images.</p>
<p>  → clustering: gathers insights from your data that you may not otherwise have noticed. if you are a clothing vendor, AI might learn that both rural older men and urban twentysomethings like to buy a certain type of sweater.</p>
<p>  Where your intuition might tell you that these are two totally different groups, the data shows they behave similarly with respect to the products they buy, and you may want to market to those two groups in a similar way.</p>
</li>
<li><p><strong>Recommendations</strong></p>
<p>  → people who bought a specific pair of shoes also often order a certain pair of socks.</p>
<p>  → recommend content like whitepapers to business users</p>
</li>
<li><p><strong>Workflow And Rules</strong></p>
<ul>
<li>→ Workflow and rules aren’t technically part of AI, but they’re an essential part of how AI is used. Use workflow when the AI predicts that a customer is unlikely to renew.</li>
</ul>
</li>
<li><p><strong>Summarization</strong></p>
<p>  Gen AI helps summarize chunks of info into quick and easy to digest notes for you.</p>
</li>
</ul>
<p>MARKETING</p>
<p><strong>Send Time Optimization</strong> helps predict the best time to send a communication for the highest response rate, specific to each person.</p>
<h3 id="heading-generative-ai">Generative AI</h3>
<p>Unlike traditional AI models, generative AI “doesn’t just classify or predict, but creates content of its own […] and, it does so with a human-like command of language.</p>
<blockquote>
<p>“AI is only as good as the data you give it and you have to make sure that the datasets are representative.”</p>
</blockquote>
<p>Typically by using one of two types of deep learning models:</p>
<ol>
<li><p><strong>Generative Adversarial Networks (GANs)</strong></p>
<p> made up of two neural networks: a generator and a discriminator.</p>
<p> the two networks compete with each other, with the generatot creating an output is real or fake, the generator then fine-tunes its outut based on the discriminator’s feedback, and the cycle continues until stumps the discriminator.</p>
<p> <a target="_blank" href="https://www.youtube.com/watch?v=TpMIssRdhco">https://www.youtube.com/watch?v=TpMIssRdhco</a></p>
</li>
<li><p><strong>Transformer Models</strong></p>
<p> like ChatGPT (Chat Generative Pretrained Transformer), create outputs based on sequential data (like sentences or paragraphs) rather than individual data points.</p>
</li>
<li><p><strong>Variational Autoencoders (VAEs)</strong></p>
<p> rely on on two neural networks to generate new data based on sample data, and neural radiance fields (NeRFs), which is being used to create 2D and 3D images.</p>
<p> Salesforce’s <strong>CodeGen</strong> → turn English prompts into executable code.</p>
<p> Salesforce <strong>ProGen</strong> Project creates language models based around amino acids instead of letters and words, generative AI was able to produce proteins that have not been found in nature, and in many cases, are more functional.</p>
<blockquote>
<p>But IT leaders are on guard: <a target="_blank" href="https://www.salesforce.com/news/stories/generative-ai-research/">Nearly six in 10 (59%)</a> said they think generative AI outputs are inaccurate.</p>
</blockquote>
</li>
</ol>
<h3 id="heading-generative-ai-vs-predictive-aihttpswwweweekcomartificial-intelligencegenerative-ai-vs-predictive-ai"><a target="_blank" href="https://www.eweek.com/artificial-intelligence/generative-ai-vs-predictive-ai/">Generative AI vs Predictive AI</a></h3>
<p>GenAI → utilizes complex modeling to add a creative element. GenAI software creates images, text, video and software code based on user prompts.</p>
<p>PredAI → uses large data reps to recognize patterns time. PredAI apps draw inferences and suggest outcomes and future trends.</p>
<div class="hn-table">
<table>
<thead>
<tr>
<td>Parameters</td><td>Generative AI</td><td>Predictive AI</td></tr>
</thead>
<tbody>
<tr>
<td>Objective</td><td>Generates new, original content or data</td><td>Predicts and analyzes existing patterns or outcomes</td></tr>
<tr>
<td>Function</td><td>Creates new information or content</td><td>Makes predictions based on existing data</td></tr>
<tr>
<td>Training data</td><td>Requires diverse and comprehensive data</td><td>Requires historical data for learning and prediction</td></tr>
<tr>
<td>Examples</td><td>Text generation, image synthesis</td><td>Forecasting, classification, regression</td></tr>
<tr>
<td>Learning process</td><td>Learns patterns and relationships in data</td><td>Learns from historical data to make predictions</td></tr>
<tr>
<td>Use cases</td><td>Creative tasks, content creation</td><td>Business analytics, financial forecasting</td></tr>
<tr>
<td>Challenges</td><td>May lack specificity in output</td><td>Limited to existing patterns, may miss novel scenarios</td></tr>
<tr>
<td>Training complexity</td><td>Generally more complex and resource-intensive</td><td>Requires less complex training compared to generative models</td></tr>
<tr>
<td>Creativity</td><td>Generative AI is creative and produces things that have never existed before</td><td>Predictive AI lacks the element of content creation</td></tr>
<tr>
<td>Different algorithms</td><td>Generative AI uses complex algorithms and deep learning to generate new content based on the data it is trained on</td><td>Predictive AI generally relies on statistical algorithms and machine learning to analyze data and make predictions</td></tr>
</tbody>
</table>
</div><p>Limitations of GenAI:</p>
<ul>
<li><p>Vulnerability to adversarial attacks</p>
</li>
<li><p>Contextual ambiguity</p>
</li>
<li><p>Potential biases</p>
</li>
</ul>
<p>PredAI use cases: financial services, fraud detection, healthcare, marketing.</p>
<h3 id="heading-natural-language-processing-basics">Natural Language Processing Basics</h3>
<p>CS and Linguistics to give computers the ability to understand, interpret, and generate human language in a way that’s meaningful and useful to humans.</p>
<p>NLP was the Turing Test by Alan Turing, the test measures a machine’s ability to answer any questions in a way that’s indistinguishable from a human.</p>
<p><strong>NLP has two subfields</strong></p>
<p>Data processed <strong>from unstructured to structured</strong> is called <strong>natural language understanding (NLU).</strong></p>
<p>Data processed the reverse way–from <strong>structured to unstructured</strong>–is called <strong>natural language generation (NLG).</strong></p>
<p><strong>Elements of natural language in English include:</strong></p>
<ul>
<li><p><strong>Vocabulary:</strong> The words we use</p>
</li>
<li><p><strong>Grammar:</strong> The rules governing sentence structure</p>
</li>
<li><p><strong>Syntax:</strong> How words are combined to form sentences according to grammar</p>
</li>
<li><p><strong>Semantics:</strong> The meaning of words, phrases, and sentences</p>
</li>
<li><p><strong>Pragmatics:</strong> The context and intent behind cultural or geographic language use</p>
</li>
<li><p><strong>Discourse and dialogue:</strong> Units larger than a single phrase or sentence, including documents and conversations</p>
</li>
<li><p><strong>Phonetics and phonology:</strong> The sounds we make when we communicate</p>
</li>
<li><p><strong>Morphology:</strong> How parts of words can be combined or uncombined to make new words</p>
</li>
</ul>
<h3 id="heading-parsing-natural-language">Parsing Natural Language</h3>
<p><strong>parsing</strong>, involve breaking down text or speech into smaller parts to classify them for NLP.</p>
<p>Parsing includes <strong>syntactic parsing</strong>, where elements of natural language are analyzed to identify the underlying grammatical structure,</p>
<p>and <strong>semantic parsing</strong> which derives meaning.</p>
<p><strong>Syntactic</strong> parsing may include:</p>
<ul>
<li><p><strong>Segmentation:</strong> Larger texts are divided into smaller, meaningful chunks. Segmentation usually occurs at the end of sentences at punctuation marks to help organize text for further analysis.</p>
</li>
<li><p><strong>Tokenization:</strong> Sentences are split into individual words, called tokens. In the English language, tokenization is a fairly straightforward task because words are usually broken up by spaces. In languages like Thai or Chinese, tokenization is much more complicated and relies heavily on an understanding of vocabulary and morphology to accurately tokenize language.</p>
</li>
<li><p><strong>Stemming:</strong> Words are reduced to their root form, or <em>stem</em>. For example <em>breaking</em>, <em>breaks</em>, or <em>unbreakable</em> are all reduced to <em>break</em>. Stemming helps to reduce the variations of word forms, but, depending on context, it may not lead to the most accurate stem. Look at these two examples that use stemming:</p>
<p>  “I’m going outside to rake <strong>leaves</strong>.”</p>
<p>  Stem = <em>leave</em></p>
<p>  “He always <strong>leaves</strong> the key in the lock.”</p>
<p>  Stem = <em>leave</em></p>
</li>
<li><p><strong>Lemmatization:</strong> Similar to stemming, lemmatization reduces words to their root, but takes the part of speech into account to arrive at a much more valid root word, or <em>lemma</em>. Here are the same two examples using lemmatization:</p>
<p>  “I’m going outside to rake <strong>leaves</strong>.”</p>
<p>  Lemma = <em>leaf</em></p>
<p>  “He always <strong>leaves</strong> the key in the lock.”</p>
<p>  Lemma = <em>leave</em></p>
</li>
<li><p><strong>Part of speech tagging:</strong> Assigns grammatical labels or tags to each word based on its part of speech, such as a noun, adjective, verb, and so on. Part of speech tagging is an important function in NLP because it helps computers understand the syntax of a sentence.</p>
</li>
<li><p><strong>Named entity recognition (NER):</strong> Uses algorithms to identify and classify named entities–like people, dates, places, organizations, and so on–in text to help with tasks like answering questions and information extraction.</p>
</li>
</ul>
<p><strong>Sentiment analysis:</strong> Involves determining whether a piece of text</p>
<p><strong>Intent analysis:</strong> Intent helps us understand what someone wants or means based on what they say or write.</p>
<p><strong>Context (discourse) analysis:</strong> Natural language relies heavily on context. The interpretation of a statement might change based on the situation, the details provided, and any shared understanding that exists between the people communicating.</p>
<p>AI from A to Z: the GenAI Glossary:</p>
<div class="hn-table">
<table>
<thead>
<tr>
<td>Anthropomorphism</td><td>The tendency for people to attribute human motivation, emotions, characteristics or behavior to AI systems.</td></tr>
</thead>
<tbody>
<tr>
<td>Artificial neural network (ANN)</td><td>An Artificial Neural Network (ANN) is a computer program that mimics the way human brains process information.</td></tr>
<tr>
<td>Augmented intelligence</td><td>Augmented intelligence (AI) is a human-centered design pattern that uses artificial intelligence (AI) to enhance human intelligence, rather than replace it. AI uses machines to mimic human behavior, while AI uses machines with a different perspective and goal in mind. AI is intended to operate without human assistance, while AI enhances human intelligence</td></tr>
<tr>
<td>Conversational AI</td><td>a type of artificial intelligence that uses machine learning, natural language processing, and foundation models to simulate human conversation.</td></tr>
<tr>
<td>Deep learning</td><td>An advanced form of AI that helps computers become really good at recognizing complex patterns in data. useful for things like image recognition, speech processing, and natural-language understanding.</td></tr>
<tr>
<td>Discriminator (in a GAN)</td><td>the discriminator is like a detective. When it’s shown pictures (or other data), it has to guess which are real and which are fake. The “real” pictures are from a dataset, while the “fake” ones are created by the other part of the GAN, called the generator (see <a target="_blank" href="https://www.salesforce.com/blog/generative-ai-glossary/?_gl=1*17jrkqw*_ga*MTU0Mzc1NjQ4NC4xNjQ5NTEyMTI4*_ga_H6M98GGB18*MTcxMzc5NzI4My42NS4xLjE3MTM3OTgzMjIuMC4wLjA.*_gcl_au*MjA3MDIzNzgyNy4xNzEzNzkwMDQ2&amp;_ga=2.169919136.1649462121.1713790047-1543756484.1649512128#Generator">https://www.salesforce.com/blog/generative-ai-glossary/?_gl=1*17jrkqw*_ga*MTU0Mzc1NjQ4NC4xNjQ5NTEyMTI4*_ga_H6M98GGB18*MTcxMzc5NzI4My42NS4xLjE3MTM3OTgzMjIuMC4wLjA.*_gcl_au*MjA3MDIzNzgyNy4xNzEzNzkwMDQ2&amp;_ga=2.169919136.1649462121.1713790047-1543756484.1649512128#Generator</a> below). The discriminator’s job is to get better at telling real from fake, while the generator tries to get better at creating fakes. This is the software version of continuously building a better mousetrap.</td></tr>
<tr>
<td>Ethical AI maturity model</td><td>a framework that helps organizations assess and enhance their ethical practices in using AI technologies.</td></tr>
<tr>
<td>Explainable AI (XAI)</td><td>Explainable AI (XAI) should provide insight into what influenced the AI’s results, which will help users to interpret (and trust!) its outputs</td></tr>
<tr>
<td>Generative AI</td><td></td></tr>
<tr>
<td><a target="_blank" href="https://www.salesforce.com/news/stories/what-is-generative-ai/">https://www.salesforce.com/news/stories/what-is-generative-ai/</a> is the field of artificial intelligence that focuses on creating new content based on existing data.</td><td></td></tr>
<tr>
<td>Generative adversarial network (GAN)</td><td>GANs are made up of two neural networks: a <a target="_blank" href="https://www.salesforce.com/blog/generative-ai-glossary/?_gl=1*17jrkqw*_ga*MTU0Mzc1NjQ4NC4xNjQ5NTEyMTI4*_ga_H6M98GGB18*MTcxMzc5NzI4My42NS4xLjE3MTM3OTgzMjIuMC4wLjA.*_gcl_au*MjA3MDIzNzgyNy4xNzEzNzkwMDQ2&amp;_ga=2.169919136.1649462121.1713790047-1543756484.1649512128#generator">https://www.salesforce.com/blog/generative-ai-glossary/?_gl=1*17jrkqw*_ga*MTU0Mzc1NjQ4NC4xNjQ5NTEyMTI4*_ga_H6M98GGB18*MTcxMzc5NzI4My42NS4xLjE3MTM3OTgzMjIuMC4wLjA.*_gcl_au*MjA3MDIzNzgyNy4xNzEzNzkwMDQ2&amp;_ga=2.169919136.1649462121.1713790047-1543756484.1649512128#generator</a> and a <a target="_blank" href="https://www.salesforce.com/blog/generative-ai-glossary/?_gl=1*17jrkqw*_ga*MTU0Mzc1NjQ4NC4xNjQ5NTEyMTI4*_ga_H6M98GGB18*MTcxMzc5NzI4My42NS4xLjE3MTM3OTgzMjIuMC4wLjA.*_gcl_au*MjA3MDIzNzgyNy4xNzEzNzkwMDQ2&amp;_ga=2.169919136.1649462121.1713790047-1543756484.1649512128#discriminator-in-GAN">https://www.salesforce.com/blog/generative-ai-glossary/?_gl=1*17jrkqw*_ga*MTU0Mzc1NjQ4NC4xNjQ5NTEyMTI4*_ga_H6M98GGB18*MTcxMzc5NzI4My42NS4xLjE3MTM3OTgzMjIuMC4wLjA.*_gcl_au*MjA3MDIzNzgyNy4xNzEzNzkwMDQ2&amp;_ga=2.169919136.1649462121.1713790047-1543756484.1649512128#discriminator-in-GAN</a>. The two networks compete with each other, with the generator creating an output based on some input, and the discriminator trying to determine if the output is real or fake. The generator then fine-tunes its output based on the discriminator’s feedback, and the cycle continues until it stumps the discriminator.</td></tr>
<tr>
<td>Generative pre-trained transformer (GPT)</td><td></td></tr>
<tr>
<td>GPT is a neural network family that is trained to generate content. GPT models are pre-trained on a large amount of text data, which lets them generate clear and relevant text based on user prompts or queries.</td><td></td></tr>
<tr>
<td>Generator</td><td></td></tr>
<tr>
<td>A generator is an AI-based software tool that creates new content from a request or input. It will learn from any supplied training data, then create new information that mimics those patterns and characteristics. ChatGPT by OpenAI is a well-known example of a text-based generator.</td><td></td></tr>
<tr>
<td>Grounding</td><td>about ensuring that the system understands and relates to real-world knowledge, data, and experiences. It’s a bit like giving AI a blueprint to refer to so that it can provide relevant and meaningful responses rather than vague and unhelpful ones. For example, if you ask an AI, “What is the best time to plant flowers?” an ungrounded response would be, “Whenever you feel like it!” A grounded response would tell you that it depends on the type of flower and your local environment. The grounded answer shows that AI understands the context of how a human would need to perform this task.</td></tr>
<tr>
<td>Hallucination</td><td>A hallucination happens when generative AI analyzes the content we give it, but comes to an erroneous conclusion and produces new content that doesn’t correspond to reality or its training data.</td></tr>
<tr>
<td>Human in the Loop (HITL)</td><td>making sure that we offer oversight of AI output and give direct feedback to the model, in both the training and testing phases, and during active use of the system.</td></tr>
<tr>
<td>Large language model (LLM)</td><td>An LLM is a type of artificial intelligence that has been trained on a lot of text data. It’s like a really smart conversation partner that can create human-sounding text based on a given prompt. Some LLMs can answer questions, write essays, create poetry, and even generate code.</td></tr>
<tr>
<td>Machine learning</td><td>is how computers can learn new things without being programmed to do them.</td></tr>
<tr>
<td>Machine learning bias</td><td></td></tr>
<tr>
<td>Machine learning bias happens when a computer learns from a limited or one-sided view of the world, and then starts making skewed decisions when faced with something new.</td><td></td></tr>
<tr>
<td>Model</td><td>a program that’s been trained to recognize patterns in data. You could have a model that predicts the weather, translates languages, identifies pictures of cats, etc. Just like a model airplane is a smaller, simpler version of a real airplane, an AI model is a mathematical version of a real-world process.</td></tr>
<tr>
<td>Parameters</td><td>Parameters are numeric values that are adjusted during training to minimize the difference between a model’s predictions and the actual outcomes. They define the LLM’s structure and behavior and help it to recognize patterns, so it can predict what comes next when it generates content.</td></tr>
<tr>
<td>Prompt defense</td><td>what terms and topics you don’t want your machine learning model to address.</td></tr>
<tr>
<td>Prompt engineering</td><td>Prompt engineering means figuring out how to ask a question to get exactly the answer you need. It’s carefully crafting or choosing the input (prompt) that you give to a machine learning model to get the best possible output.</td></tr>
<tr>
<td>Red-Teaming</td><td></td></tr>
<tr>
<td>The term “red-teaming” is drawn from a military tactic that assigns a group to test a system or process for weaknesses. When applied to generative AI, red-teamers craft challenges or prompts aimed at making the AI generate potentially harmful responses. By doing this, they are making sure the AI behaves safely and doesn’t inadvertently lead to any negative experiences for the users. It’s a proactive way to ensure quality and safety in AI tools.</td><td></td></tr>
<tr>
<td>Reinforcement learning</td><td></td></tr>
<tr>
<td>a technique that teaches an AI model to find the best result via trial and error, as it receives rewards or corrections from an algorithm based on its output from a prompt. Think about training an AI to be somewhat like teaching your pet a new trick. Your pet is the AI model, the pet trainer is the algorithm, and you are the pet owner. With reinforcement learning, the AI, like a pet, tries different approaches. When it gets it right, it gets a treat or reward from the trainer, and when it’s off the mark, it’s corrected. Over time, by understanding which actions lead to rewards and which don’t, it gets better at its tasks. Then you, as the pet owner, can give more specific feedback, making the pet’s responses refined to your house and lifestyle.</td><td></td></tr>
<tr>
<td>Transformer</td><td></td></tr>
<tr>
<td>Transformers are a type of deep learning model, and are especially useful for processing language. They’re really good at understanding the context of words in a sentence because they create their outputs based on sequential data (like an ongoing conversation), not just individual data points (like a sentence without context). The name “transformer” comes from the way they can transform input data (like a sentence) into output data (like a translation of the sentence).</td><td></td></tr>
<tr>
<td>Validation</td><td>Validation is a step used to check how well a model is doing during or after the training process. The model is tested on a subset of data (the validation set) that it hasn’t seen during training, to ensure it’s actually learning and not just memorizing answers.</td></tr>
<tr>
<td>Zero data retention</td><td>prompts and outputs are erased and never stored in an AI model.</td></tr>
<tr>
<td>Zone of proximal development (ZPD)</td><td>An education concept. For example, each year students progress their math skills from adding and subtracting, then to multiplication and division, and even up to complex algebra and calculus equations. The key to advancing is progressively learning those skills. In machine learning, ZPD is when models are trained on progressively more difficult tasks, so they will improve their ability to learn.</td></tr>
</tbody>
</table>
</div><hr />
<h2 id="heading-ai-capabilities-in-crm-8">AI Capabilities in CRM (8%)</h2>
<ol>
<li><p>Salesforce Einstein</p>
<ol>
<li><p>AI Assistants</p>
<ol>
<li><p>Voice input</p>
</li>
<li><p>Natural lang understanding</p>
</li>
<li><p>Voice output (natural lang generation)</p>
</li>
<li><p>Intelligent interpretation</p>
</li>
</ol>
</li>
</ol>
</li>
</ol>
<p>        Einstein Out-of-the-box Apps</p>
<p>        Einstein Platform → Discover, Predict, Recommend, Automate, Generate</p>
<p>        Einstein Prediction Builder → a simple point-click wizard that allows you to make custom predictions on your non-encrypted Salesforce data.</p>
<p>        Einstein Next Best Action → use rules-based and predictive models to provide anyone in your business with intelligent, contextual recommendations and offers. Actions are delivered at the moment of maximum impact—surfacing insights directly within Salesforce.</p>
<p>        Einstein GPT → yk.</p>
<p>        <strong>Einstein Bots</strong></p>
<p>        Needs to have Service Cloud License.</p>
<p>        <strong>Einstein Next Best Action</strong></p>
<p>        <img src="https://prod-files-secure.s3.us-west-2.amazonaws.com/77140265-b1fc-4c3b-96ea-e9c0b25ddda0/016f44f9-83ba-4f90-b31b-860a9edae722/Untitled.png" alt="Untitled" /></p>
<p>        AI Is Only as Good as the Data</p>
<p>        <strong>Sales Cloud Einstein.</strong></p>
<p>        <strong>Einstein Lead Scoring</strong> - This feature applies the power of AI to analyze your history of lead conversions and find the true patterns in those conversions</p>
<p>        <strong>Einstein Opportunity Insights</strong> offers smart predictions and follow-ups about different opportunities precisely when they’re needed</p>
<p>        <strong>Einstein Account Insights</strong> helps your sales team maintain their relationships with customers by keeping the team informed about key business developments that affect customers.</p>
<p>        <strong>Einstein Activity Capture</strong>, activity-related insights (such as when a contact mentions a competitor or is leaving their company) are identified from recent emails and events related to accounts.</p>
<p>        <strong>Einstein Email Insights →</strong> Actionable intelligence in reps’ inboxes helps identify which customers need attention.</p>
<p>        <strong>Einstein Automated Contacts →</strong> Contact records are automatically added to Salesforce, so reps spend less time on data entry.</p>
<p>        <strong>Einstein Activity Capture →</strong> Having email and event data automatically logged on Salesforce records increases reps’ productivity and visibility into potential customers.</p>
<p>        <strong>Einstein Readiness Assessor</strong> is a tool that tells you whether you meet the requirements for specific Sales Cloud Einstein feature</p>
<h3 id="heading-einstein-discovery">Einstein Discovery</h3>
<p>        Salesforce Einstein Discovery augments your business intelligence with statistical modeling and supervised machine learning in a no-code-required, rapid-iteration environment.</p>
<p>        <strong>Note</strong>: Einstein Discovery requires either the CRM Analytics Plus license or Einstein Predictions license, both of which are available for an extra cost.</p>
<h3 id="heading-target-business-outcomes-to-improve">Target Business Outcomes to Improve</h3>
<p>        Begin by selecting a business problem you want to solve, typically monitored as a key performance indicator (KPI). Einstein Discovery-powered solutions address these use cases:</p>
<ul>
<li><p><strong>Regression</strong> for numeric outcomes represented as quantitative data (measures), such as currency, counts, or any other quantity.</p>
</li>
<li><p><strong>Binary classification</strong> for text outcomes with only two possible results. These are typically yes or no questions that are expressed in business terms, such as churned or not churned, opportunity won or lost, employee retained or not retained, and so on.</p>
</li>
<li><p><strong>Multiclass classification</strong> for text outcomes with 3 to 10 possible results. For example, a manufacturer can predict, based on customer attributes, which of five service contracts a customer is most likely to choose.</p>
</li>
</ul>
<h3 id="heading-ethical-model-development-with-einstein-discovery">Ethical Model Development with Einstein Discovery</h3>
<p>Disparate Impact → it means that the data reflects discriminatory practices toward a particular group.</p>
<p>Proxy values are other attributes in your dataset that are correlated with sensitive</p>
<p>variables.</p>
<p>A <strong><em>model</em></strong> is a sophisticated custom equation based on a comprehensive statistical understanding of past outcomes that's used to predict future outcomes.</p>
<p><strong>Einstein Predicition Service: a public REST API service that lets you programmatically interact with Einstein Discovery–powered models and predictions.</strong></p>
<ul>
<li><p>Get predictions on your data.</p>
</li>
<li><p>Get suggested actions to take to improve predicted outcomes.</p>
</li>
<li><p>Manage prediction definitions and models that are deployed in Salesforce.</p>
</li>
<li><p>Manage bulk scoring jobs.</p>
</li>
<li><p>Manage model refresh jobs.</p>
</li>
</ul>
<hr />
<h2 id="heading-ethical-considerations-of-ai-39"><strong>Ethical Considerations of AI (39%)</strong></h2>
<p><strong>Audience Targeting, Collect and Respect Preferences, Frequency Capping,</strong></p>
<p><strong>[Behavioral Messaging Scenarios]</strong></p>
<p>Abandon Cart is the canonical retailer use case for behavioral messaging., Abandon Browse,</p>
<p>Price Drop → If you let a consumer know when the product goes on sale, your brand message is meaningful, relevant, and in the consumers’ interest. Also consider adding a feedback mechanism that allows the consumer to tell you,</p>
<p>New Item in Favorite Category or New Promotional Campaign <strong>→</strong></p>
<p>Post purchase → Give customers a reason to come back to you</p>
<p><strong>Frequency Capping</strong></p>
<h2 id="heading-relationship-design">Relationship Design</h2>
<h3 id="heading-human-centered-design-hcd">Human-centered design (HCD)</h3>
<p>method of creative problem-solving that leads to a desired outcome.</p>
<ul>
<li><p><strong>User experience (UX) design</strong>—The creation of meaningful and relevant experiences for users.</p>
</li>
<li><p><strong>Service design</strong>—The creation of consistent user or customer experiences across multiple interactions.</p>
</li>
<li><p>UX design and service design describe what someone is designing: a product or a service. HCD is how something is designed. HCD methods have long been applied to UX and service design. It’s a flexible and powerful practice. What you do with it is all about where you focus.</p>
</li>
<li><p><strong>Relationship Design</strong> is the creation of experiences that foster ongoing engagement and strengthen connections between people, companies, and communities over time.</p>
</li>
</ul>
<p>Service design focuses on:</p>
<ul>
<li><p>How easily someone can accomplish their goals during an interaction, whether online or in person.</p>
</li>
<li><p>How consistent the brand experience is for customers across distinct interactions—whether they’re online, in an app, on different devices, or in person.</p>
</li>
<li><p>How organizations are set up to deliver great experiences to customers.</p>
</li>
</ul>
<p>Relationship Design → Engagement, Connection, Social Values.</p>
<p>Success is at the intersection of desirability, feasibility, and viability.</p>
<h3 id="heading-mindsets-of-relationship-design">Mindsets of Relationship Design</h3>
<ul>
<li><p>**Compassion mindset—**to lead with strengthening connection</p>
</li>
<li><p>**Courage mindset—**to push ourselves to be vulnerable</p>
</li>
<li><p>**Intention mindset—**to engage with clear purpose</p>
</li>
<li><p>**Reciprocity mindset—**to exchange value in service of longevity</p>
</li>
</ul>
<h3 id="heading-cycle-of-exclusion">Cycle of Exclusion</h3>
<ul>
<li><p><strong>Why we make:</strong> The motivations of the problem solver.</p>
</li>
<li><p><strong>Who makes it:</strong> The problem solver.</p>
</li>
<li><p><strong>How we make:</strong> The methods and resources the problem solver uses.</p>
</li>
<li><p><strong>Who uses it:</strong> The assumptions the problem solver makes about the people who use the solution.</p>
</li>
<li><p><strong>What we make:</strong> The solution or product that the problem solver creates.</p>
</li>
</ul>
<h3 id="heading-risk-of-a-hero-complex">Risk of a Hero Complex</h3>
<p>A common pitfall to avoid is wanting to be the hero who saves the day with a design. Yes, great design can have a meaningful impact and you may even be called a superhero for creating it. But making assumptions about what products or solutions a group might need will likely lead to trouble.</p>
<p>Ability Bias → the habit of using our own abilities as the baseline to solve problems.</p>
<h3 id="heading-disability-about-mismatches">Disability About Mismatches</h3>
<p>&lt;aside&gt; 💡 Disability ≠ personal health condition → Disability = mismatched human interactions</p>
<p>&lt;/aside&gt;</p>
<p>&lt;aside&gt; 💡 The persona spectrum is what we use in inclusive design to solve for one person and then extend to many</p>
<p>&lt;/aside&gt;</p>
<ul>
<li><p>[x] Relatioship Design</p>
</li>
<li><p>[x] Ethics by Design</p>
</li>
<li><p>[x] Inclusive Design</p>
</li>
<li><p>[x] Values-Driven Design</p>
<p>  Values → key character traits or codes of conduct that individuals and organizations aspire to or embody.</p>
</li>
<li><p>[x] Design as a Social Practice</p>
</li>
<li><p>[x] Accountability in Design</p>
</li>
<li><p>[x] Relationship Design at Scale</p>
</li>
</ul>
<p>Trusted AI Principles: Responsible, Accountable, Transparent, Empowering, Inclusive</p>
<p>Consumers don’t trust AI systems but they expect companies to use them responsibly</p>
<hr />
<h2 id="heading-data-for-ai-36"><strong>Data for AI (36%)</strong></h2>
<h3 id="heading-data-literacy">Data Literacy</h3>
<p><strong>Tableau Products</strong></p>
<ul>
<li><p>Tableau Prep Builder</p>
</li>
<li><p>Tableau Desktop</p>
</li>
<li><p>Tableau Server</p>
</li>
<li><p>Tableau Cloud</p>
</li>
<li><p>Tableau Public</p>
</li>
<li><p>Tableau Desktop Public Edition</p>
</li>
<li><p>Tableau Mobile</p>
</li>
</ul>
<p><strong>Asking Why</strong></p>
<p>The 5 Whys technique, developed by Toyota Motors founder Sakichi Toyoda, proposes asking <em>why?</em> of a problem that’s been identified, and then continuing to ask why for each answer or explanation given. Although the primary goal of the technique is to determine the root cause of a defect, we can use this technique to dig into the causes of any outcome.</p>
<h3 id="heading-discover-variables-and-field-types">Discover Variables and Field Types</h3>
<p><strong>Qualitative</strong> variables are variables that cannot be measured numerically, such as categories or characteristics. Categorize. Segment.</p>
<ol>
<li><p>Nominal: cannot be ranked. (banana, grapes, and apples → these are nominal variables because there is no implied ranked order among them.</p>
</li>
<li><p>Ordinal → can be ranked. Ordinal = ordered.</p>
</li>
</ol>
<p><strong>Quantitative</strong> variables are variables that can be measured numerically, such as the number of items in a set. Can be aggregated.</p>
<ol>
<li><p>Discrete Variables: individually separate &amp; distinct. E.g, 3 children, 6 children → when you can count them separately.</p>
</li>
<li><p>Continuous Variables: Continuous means forming an unbroken whole, without interruption. Volume of water in the ocean.</p>
</li>
</ol>
<p><strong>Variance:</strong> how data points vary from the mean.</p>
<p><strong>Standard deviation:</strong> is the measure of the distribution of statistical data</p>
<p>Here are the major characteristics of a <strong>normal distribution.</strong></p>
<ul>
<li><p>They are symmetrical around the mean.</p>
</li>
<li><p>The mean and median are equal.</p>
</li>
<li><p>The area under the normal curve is equal to 1.0 (or 100%).</p>
</li>
<li><p>They are denser in the center and less dense in the tails.</p>
</li>
<li><p>They are defined by two parameters, the mean and the standard deviation</p>
</li>
</ul>
<p><strong>Inference</strong> is the process of drawing conclusions about a population based on a sample of the dat</p>
<h3 id="heading-guidelines-to-recognize-misleading-charts">Guidelines to Recognize Misleading Charts</h3>
<ul>
<li><p>The bar charts should have a zero baseline.</p>
</li>
<li><p>get to know source (who, what, where, when, why)</p>
</li>
<li><p>Axes (how the data is displayed in chart)</p>
<ul>
<li><p>Horizontal axis → x-axis</p>
</li>
<li><p>Vertical axis → y-axis</p>
</li>
</ul>
</li>
<li><p>A <a target="_blank" href="https://www.mathsisfun.com/data/scatter-xy-plots.html">scatterplot</a> shows the relationship between two quantitative variables. The data is plotted as <a target="_blank" href="https://www.mathsisfun.com/data/cartesian-coordinates.html">Cartesian coordinates</a>, marking how far over and how far up each data point is.</p>
</li>
<li><p>A <a target="_blank" href="https://www.tableau.com/data-insights/reference-library/visual-analytics/charts/line-charts">line chart</a> connects a series of quantitative values, and is often used to show a time series (where the x-axis is time). Also known as a line graph or line plot.</p>
</li>
<li><p>A <a target="_blank" href="https://www.tableau.com/data-insights/reference-library/visual-analytics/charts/histograms">histogram</a> depicts a distribution of data and the frequency of values in a data set as connected bars. The width of the bars is tied to the values on the x-axis. Statisticians, scientists, and analysts refer to the widths of each bar as <strong>bins</strong>.</p>
</li>
<li><p>A <a target="_blank" href="https://www.tableau.com/data-insights/reference-library/visual-analytics/charts/box-whisker">box and whisker plot</a> shows the distribution of data using percentiles. Also known as a box plot.</p>
</li>
<li><p>An interval is the distance between the values (tick marks) on a quantitative axis.</p>
</li>
<li><p>use SCAM Checklist: Source, Chart, Axes on charts, Message</p>
</li>
</ul>
<h3 id="heading-eu-privacy-law">EU Privacy Law</h3>
<p>General Data Protection Regulation (GDPR)</p>
<div class="hn-table">
<table>
<thead>
<tr>
<td>Term</td><td>Definition</td><td>Example</td></tr>
</thead>
<tbody>
<tr>
<td>Data Subject</td><td>A “natural person” who can be directly or indirectly identified by information such as a name, an identification number, location data, an online identifier (such as a username), or their physical, genetic, or other identity.</td><td>Marie Dubois</td></tr>
<tr>
<td>Personal Data</td><td>Any information relating to an identified or identifiable data subject.</td><td>Woman. Age 48. Ph#: 33 1 7210 940. Address: 99 Place de l'Étoile, 75008 Paris, France. Likes hats. Reads Le Monde online every day.</td></tr>
<tr>
<td>Sensitive Personal Data</td><td>Personal data pertaining to racial or ethnic origin, political opinions, religious or philosophical beliefs, trade-union membership, information about health, sex life and sexual orientation, and genetic or biometric data.</td><td>Member of En Marche! Party. Catholic. Broke leg last year. Copy of fingerprints and retinal scan.</td></tr>
<tr>
<td>Processing</td><td>Anything that is done to or with personal data.</td><td>Any collection, storage, transfer, sharing, modification, use, or deletion of personal data.</td></tr>
<tr>
<td>Controller</td><td>An entity that determines the purposes and means of processing of personal data.</td><td>Grande Banque du Nord is a financial institution that is providing Marie with a mortgage to buy a house. When Marie first registers on Grande Banque's website to get more information about mortgages, Grande Banque becomes a controller of the personal data Marie provides.</td></tr>
<tr>
<td>Processor</td><td>An entity that processes personal data based on the instructions of a controller.</td><td>Salesforce becomes a processor of Marie’s personal data when Grande Banque uploads her data to its Sales Cloud instance.</td></tr>
<tr>
<td>Pseudonymous Data</td><td>Personal data that cannot be tied to a specific data subject without additional information that is stored separately, with technological measures to ensure the data is not combined with that additional information.</td><td>When Marie visits the Grande Banque website portal hosted on Experience Cloud to learn more about the mortgage process, the system records her IP address in hashed form and links it to the pages that Marie views. The hashed IP address is considered pseudonymous data, because, although the hashed IP address alone does not identify Marie, it’s still possible to link it to other information that relates to Marie.</td></tr>
<tr>
<td>Anonymous Data</td><td>Data that cannot ever be connected to an identified or identifiable person.</td><td>The Grande Banque website asks people to leave reviews. The system does not collect any information from reviewers—not even IP addresses. The reviews themselves can be considered anonymous.</td></tr>
</tbody>
</table>
</div><h3 id="heading-data-requirements">Data Requirements</h3>
<p>Einstein Discovery requires a CRM Analytics dataset with at least 3 columns: one outcome variable plus two explanatory or predictor variables. Einstein Discovery supports datasets with up to 50 variable.</p>
<p>Time frames, how much data to get, time series,</p>
<h3 id="heading-data-quality-dimensions">Data Quality Dimensions:</h3>
<ol>
<li><p>Completeness.</p>
</li>
<li><p>Validity</p>
</li>
<li><p>Uniqueness</p>
</li>
<li><p>Timeliness’</p>
</li>
<li><p>Consistency</p>
</li>
<li><p>Accuracy</p>
</li>
</ol>
<hr />
]]></content:encoded></item><item><title><![CDATA[[TIL] Javascrip Dev 1 - Summer '23 Review Notes]]></title><description><![CDATA[Synchronizing component data without a page refresh using RefreshView API
lightning/refresh module and RefreshView API provides a way to refresh component data in LWC. Updates the data for a specific hierarchy of components. Can refresh data for Sale...]]></description><link>https://argenturatbek.com/til-javascrip-dev-1-summer-23-review-notes</link><guid isPermaLink="true">https://argenturatbek.com/til-javascrip-dev-1-summer-23-review-notes</guid><category><![CDATA[Salesforce]]></category><category><![CDATA[JavaScript]]></category><dc:creator><![CDATA[Argen Turatbek]]></dc:creator><pubDate>Sat, 16 Dec 2023 12:28:50 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/stock/unsplash/g5jpH62pwes/upload/f6e5ea3bf48125018578ac2d51a1852f.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h3 id="heading-synchronizing-component-data-without-a-page-refresh-using-refreshview-api">Synchronizing component data without a page refresh using RefreshView API</h3>
<p><code>lightning/refresh</code> module and RefreshView API provides a way to refresh component data in LWC. Updates the data for a specific hierarchy of components. Can refresh data for Salesforce Platform containers, LWC and Aura.</p>
<h3 id="heading-querying-dom-elements-with-refs">Querying DOM elements with refs</h3>
<p>Refs can be used to access elements in shadow DOM and light DOM. Refs locate DOM elements without a selector and only query elements contained inside the template. Previously, we could only use the <code>querySelector()</code> to locate specific DOM elements.</p>
<ol>
<li><p>Add the <code>lwc:ref</code> and assign it a value.</p>
</li>
<li><p>Call this using <code>this.refs</code></p>
</li>
</ol>
<pre><code class="lang-xml"><span class="hljs-tag">&lt;<span class="hljs-name">template</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">lwc:ref</span>=<span class="hljs-string">"myDiv"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">template</span>&gt;</span>
</code></pre>
<pre><code class="lang-javascript"><span class="hljs-keyword">export</span> <span class="hljs-keyword">default</span> <span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-keyword">extends</span> <span class="hljs-title">LightningElement</span> </span>{
  renderedCallback() {
    <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">this</span>.refs.myDiv);
  }
}
</code></pre>
<p>Using <code>this.refs</code> for a nonexistent ref, returns undefined. If duplicates are available, <code>this.refs</code> references the last directive. For a component with more than one template <code>this.refs</code> refers to the most recently rendered template.</p>
<h3 id="heading-overlays-with-the-new-modal-component">Overlays with the new modal component</h3>
<p>To create a modal component, import LightningModal from lightning/modal in your JavaScript file. Then, create a component class that extends LightningModal.</p>
<pre><code class="lang-javascript"><span class="hljs-comment">/* c/myModal.js */</span>
<span class="hljs-keyword">import</span> { api } <span class="hljs-keyword">from</span> <span class="hljs-string">'lwc'</span>;
<span class="hljs-keyword">import</span> LightningModal <span class="hljs-keyword">from</span> <span class="hljs-string">'lightning/modal'</span>;
<span class="hljs-keyword">export</span> <span class="hljs-keyword">default</span> <span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">MyModal</span> <span class="hljs-keyword">extends</span> <span class="hljs-title">LightningModal</span> </span>{
    handleOkay() {
        <span class="hljs-built_in">this</span>.close(<span class="hljs-string">'okay'</span>);
   }
}
</code></pre>
<p>This component doesn’t use a <code>lightning-modal</code> tag. Instead, the modal’s HTML template uses helper <code>lightning-modal-*</code> components to make the modal’s header, footer, and body. The <code>lightning-modal-body</code> component is required, and the others are optional.</p>
<pre><code class="lang-javascript">&lt;!-- c/myModal.html --&gt;
<span class="xml"><span class="hljs-tag">&lt;<span class="hljs-name">template</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">lightning-modal-header</span> <span class="hljs-attr">label</span>=<span class="hljs-string">"My Modal Heading"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">lightning-modal-header</span>&gt;</span>
 <span class="hljs-tag">&lt;<span class="hljs-name">lightning-modal-body</span>&gt;</span>This is the modal’s contents.<span class="hljs-tag">&lt;/<span class="hljs-name">lightning-modal-body</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">lightning-modal-footer</span>&gt;</span>
      <span class="hljs-tag">&lt;<span class="hljs-name">lightning-button</span> <span class="hljs-attr">label</span>=<span class="hljs-string">"OK"</span> <span class="hljs-attr">onclick</span>=<span class="hljs-string">{handleOkay}</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">lightning-button</span>&gt;</span>
  <span class="hljs-tag">&lt;/<span class="hljs-name">lightning-modal-footer</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">template</span>&gt;</span></span>
</code></pre>
]]></content:encoded></item><item><title><![CDATA[How to get Security Token in Salesforce.com?]]></title><description><![CDATA[Option 1:
To reset your security token, follow these steps:

Go to your Personal Settings.

Search for "Reset My Security Token" on Quick Find Box
 Refer to the picture below for visual guidance.



Option 2:
If the option 'Reset My Security Token' i...]]></description><link>https://argenturatbek.com/how-to-get-security-token-in-salesforcecom</link><guid isPermaLink="true">https://argenturatbek.com/how-to-get-security-token-in-salesforcecom</guid><category><![CDATA[Salesforce]]></category><category><![CDATA[Security]]></category><dc:creator><![CDATA[Argen Turatbek]]></dc:creator><pubDate>Tue, 20 Jun 2023 05:07:30 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/stock/unsplash/yekGLpc3vro/upload/c636da7e204fa68fc8c085094445217f.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h2 id="heading-option-1">Option 1:</h2>
<p>To reset your security token, follow these steps:</p>
<ol>
<li><p>Go to your Personal Settings.</p>
</li>
<li><p>Search for "Reset My Security Token" on Quick Find Box</p>
<p> Refer to the picture below for visual guidance.</p>
</li>
</ol>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1687225365755/20f27a21-8b97-4df0-a223-355f57bfc6d5.png" alt class="image--center mx-auto" /></p>
<h2 id="heading-option-2">Option 2:</h2>
<p>If the option 'Reset My Security Token' is not visible within 'Personal Settings,' you can try the following method.</p>
<p>It is possible that the reason for not seeing the option could be that you are currently accessing from an IP address that falls within the Trusted IP Ranges. In such cases, Salesforce hides that option. However, you can still access it through the provided link.</p>
<p>Simply add <strong><mark>"/_ui/system/security/ResetApiTokenEdit"</mark></strong> after the base URL (e.g., <a target="_blank" href="https://......force.com/"><strong>https://......</strong></a><a target="_blank" href="http://force.com"><strong>force.com</strong></a>).</p>
<h3 id="heading-step-1">Step 1:</h3>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1687237196424/8a01c015-6e8b-4e87-83bd-995c1f95946e.png" alt class="image--center mx-auto" /></p>
<h3 id="heading-step-2">Step 2:</h3>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1687237469799/4577f26c-5d7d-4129-b1da-112ba0a8e25d.png" alt class="image--center mx-auto" /></p>
<p>Alternatively, you can use the following URLs (depending on the type of organization):</p>
<p>For prod/dev orgs: <a target="_blank" href="https://login.salesforce.com/_ui/system/security/ResetApiTokenEdit"><strong>https://login.salesforce.com/_ui/system/security/ResetApiTokenEdit</strong></a></p>
<p>For sandboxes:</p>
<p><a target="_blank" href="https://test.salesforce.com/_ui/system/security/ResetApiTokenEdit"><strong>https://test.salesforce.com/_ui/system/security/ResetApiTokenEdit</strong></a></p>
<blockquote>
<p>Please note that the second method might not work if you do not have my-domain enabled or if there are other factors affecting the redirect.</p>
</blockquote>
]]></content:encoded></item><item><title><![CDATA[How to delete an Apex Class from Production using VS Code?]]></title><description><![CDATA[Which method to choose?
There are various methods, including the Force.com IDE, Workbench, and Ant Migration Tool, to remove Apex classes from Production.
This guide will demonstrate how to use the Visual Studio Code IDE to remove a class or trigger ...]]></description><link>https://argenturatbek.com/how-to-delete-an-apex-class-from-production-using-vs-code</link><guid isPermaLink="true">https://argenturatbek.com/how-to-delete-an-apex-class-from-production-using-vs-code</guid><category><![CDATA[Apex]]></category><category><![CDATA[TIL]]></category><dc:creator><![CDATA[Argen Turatbek]]></dc:creator><pubDate>Fri, 16 Sep 2022 06:37:33 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/stock/unsplash/O2MdroNurVw/upload/fd91ff558b424e6c677fe5c3f8af7b47.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h3 id="heading-which-method-to-choose">Which method to choose?</h3>
<p>There are various methods, including the Force.com IDE, Workbench, and Ant Migration Tool, to remove Apex classes from Production.</p>
<p>This guide will demonstrate how to use the Visual Studio Code IDE to remove a class or trigger from the production.</p>
<h3 id="heading-1-create-a-project-with-manifest">1. Create a project with manifest</h3>
<p>First, create a project on Visual Studio Code, that is connected to your production environment. After authorizing successfully, retrieve the <strong>manifest.xml</strong> file from the source. Make sure that manifest.xml contains ApexClass as a member. After retrieving, you will see all the classes under the folder /force-app/classes.</p>
<p>Now, go to the specific class you want to delete.</p>
<h3 id="heading-2-edit-classnamecls-metaxml-file">2. Edit className.cls-meta.xml File</h3>
<p>Let's say you want to get rid of the class <strong>badApexClass</strong>.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1663309380569/2xIG6wKP3.png" alt="image.png" /></p>
<p>Go to your .cls-meta.xml file and change the status from <strong>Active</strong> to <strong>Deleted</strong></p>
<pre><code class="lang-plaintext">&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;ApexClass xmlns="http://soap.sforce.com/2006/04/metadata"&gt;
    &lt;apiVersion&gt;55.0&lt;/apiVersion&gt;
    &lt;status&gt;Active&lt;/status&gt;
&lt;/ApexClass&gt;
</code></pre>
<pre><code class="lang-plaintext">&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;ApexClass xmlns="http://soap.sforce.com/2006/04/metadata"&gt;
    &lt;apiVersion&gt;55.0&lt;/apiVersion&gt;
    &lt;status&gt;Deleted&lt;/status&gt;
&lt;/ApexClass&gt;
</code></pre>
<h3 id="heading-3-run-the-following-command-using-the-terminal">3. Run the following command using the terminal</h3>
<pre><code class="lang-plaintext">sfdx force:source:deploy -m ApexClass:badApexClass -l RunLocalTests -u ProjectAliasName
</code></pre>
<h3 id="heading-4-check-the-output">4. Check the Output</h3>
<p>You should see something similar to this on your terminal:</p>
<pre><code class="lang-plaintext">=== Deployed Source

 FULL NAME                   TYPE      PROJECT PATH                                                            
 ─────────────────────────── ───────── ─────────────────────────────────────────────────────────────────────── 
 badApexClass        ApexClass force-app/main/default/classes/badApexClass.cls                 
 badApexClass        ApexClass force-app/main/default/classes/badApexClass.cls-meta.xml        

=== Test Results Summary

Passing: 10
Failing: 0
Total: 10
Time: 12789
Deploy Succeeded.
</code></pre>
<p>Congratulations! You've successfully deleted that Apex class with minimal effort.</p>
]]></content:encoded></item></channel></rss>