<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
><channel><title>salesforce | Taha Syed | Salesforce</title>
<atom:link href="https://www.syedtaha.com/tag/salesforce/feed/" rel="self" type="application/rss+xml" /><link>https://www.syedtaha.com</link>
<description>Taha Syed &#124; Sales to Salesforce &#124; Dissecting and Defining the Rationale..</description>
<lastBuildDate>Mon, 17 Dec 2018 20:19:16 +0000</lastBuildDate>
<language>en-US</language>
<sy:updatePeriod>
hourly	</sy:updatePeriod>
<sy:updateFrequency>
1	</sy:updateFrequency>
<generator>https://wordpress.org/?v=6.9.4</generator>
<item><title>Trigger to Post Automated Random Chatter Comment</title><link>https://www.syedtaha.com/salesforce-apex-triggers/trigger-to-post-automated-random-chatter-comment/1099/</link>
<comments>https://www.syedtaha.com/salesforce-apex-triggers/trigger-to-post-automated-random-chatter-comment/1099/#respond</comments>
<dc:creator><![CDATA[Taha Syed]]></dc:creator>
<pubDate>Mon, 03 Dec 2018 20:45:03 +0000</pubDate>
<category><![CDATA[Apex Triggers]]></category>
<category><![CDATA[apex]]></category>
<category><![CDATA[chatter]]></category>
<category><![CDATA[comment]]></category>
<category><![CDATA[feedcomment]]></category>
<category><![CDATA[feeditem]]></category>
<category><![CDATA[post]]></category>
<category><![CDATA[salesforce]]></category>
<category><![CDATA[trigger]]></category>
<guid
isPermaLink="false">http://www.syedtaha.com/?p=1099</guid><description><![CDATA[<p>Apex Trigger to post an automated random comment whenever a chatter post is published. When any user posts to chatter and if the user's post contains the term "Success", an automated comment should be posted. This comment should be randomly selected from a list of comments; And should be posted as a specific user.</p>
The post <a
href="https://www.syedtaha.com/salesforce-apex-triggers/trigger-to-post-automated-random-chatter-comment/1099/">Trigger to Post Automated Random Chatter Comment</a> first appeared on <a
href="https://www.syedtaha.com">Taha Syed | Salesforce</a>.]]></description>
<content:encoded><![CDATA[<p><strong>Requirement: </strong>Write a trigger to post an automated random comment whenever a chatter post is published.<br
/>
<strong>Use Case:</strong> When any user posts to chatter and if the user&#8217;s post contains the term &#8220;Success&#8221;, an automated comment should be posted. This comment should be randomly selected from a list of comments; And should be posted as a specific user.</p><p>To achieve this requirement, we will be using two Chatter objects viz. <strong>Feed Item</strong> and <strong>Feed Comment. &#8216;</strong>Feed Item&#8217; records are the posts created by a User and the &#8216;Feed Comment&#8217; records are the comments on that post.</p><p>In other words, our requirement is to <strong>insert a random &#8216;Feed Comment&#8217; record, whenever a &#8216;Feed Item&#8217; record is inserted.</strong></p><p>The Trigger should be written with the following flow:</p><ol><li>Define the Trigger</li><li>Create a list for DML (last step)</li><li>Create a List of &#8216;Strings&#8217;/ Comments</li><li>Get a Random comment from the List in Step 3</li><li>Iterate through each Feed Item record in the List from Step 2. and add the random comment.</li><li>DML to insert List of newly created records</li></ol><p>&nbsp;</p><p>Now lets go through each step once again and write its respective code.</p><div
class="tab_widget wp_shortcodes_tabs"><ul
class="wps_tabs"><li><a
href="#" data-tab="tab-0-step-1">Step 1</a></li><li><a
href="#" data-tab="tab-1-step-2">Step 2</a></li><li><a
href="#" data-tab="tab-2-step-3">Step 3</a></li><li><a
href="#" data-tab="tab-3-step-4">Step 4</a></li><li><a
href="#" data-tab="tab-4-step-5">Step 5</a></li><li><a
href="#" data-tab="tab-5-step-6">Step 6</a></li></ul><div
class="tab_container"><div
id="tab-0-step-1" class="tab_content clearfix"></p><h2>Defining the trigger (the trigger syntax)</h2><p>Lets name our trigger <strong>randomChatterComment. </strong>The trigger will be on the <strong>FeedItem </strong>object and will be an <strong>After Insert</strong> trigger.</p><p>But why an after insert trigger? That's because the requirement is to create a comment on the FeedItem record being inserted. And we will need the FeedItems' ID to relate the Comment to it. The ID's and other system fields are available only in an <strong>after</strong> trigger.</p><p>The code defining our trigger will be:</p><pre class="lang:default decode:true" title="Step 1">trigger randomChatterComment on FeedItem (after insert) {</pre><p></div><div
id="tab-1-step-2" class="tab_content clearfix"></p><h2>Create a List of FeedComments for the final insert</h2><p>In this step, we will create a List of FeedComments that will be used in DML (last step)</p><pre class="lang:default decode:true ">    //Create a list to hold the list of Feed Comment records being inserted
    List&lt;FeedComment&gt; List2insert = New list&lt;FeedComment&gt;();</pre><p>&nbsp;</p><p></div><div
id="tab-2-step-3" class="tab_content clearfix"></p><h2>Create a List of Strings/Comments</h2><p>In this step, we will create a list of Strings (comments) from which a random one will be selected in the next step.</p><pre class="lang:default decode:true ">//Create a list of Strings
    List&lt;String&gt; commentList = New List&lt;String&gt;{
        'Congratulations and BRAVO!',
            'This calls for celebrating! Congratulations!',
            'You did it! So proud of you!',
            'I knew it was only a matter of time. Well done!',
            'Congratulations on your well-deserved success.',
            'Heartfelt congratulations to you.',
            'Warmest congratulations on your achievement.',
            'Congratulations and best wishes for your next adventure!',
            'So pleased to see you accomplishing great things.',
            'Feeling so much joy for you today. What an impressive achievement!',
            'You’ve worked so hard for this. Congrats!',
            'This is awesome! You’re awesome! Way to go!',
            'Here’s to your streak! Keep it up!',
            'Sincere congratulations on your hard-earned success',
            'You are proof that good things come to those who are willing to sacrifice to reach a worthwhile goal. Words can’t express how proud I am!',
            'You have the creativity and determination to do whatever you can dream. I hope you feel proud today and confident in your ability to rise to your next challenge.',
            'Celebrating the dedication you’ve shown on the way to this achievement. You’ve earned every bit of the success you’re enjoying.',
            'Congrats!!!'           
            };</pre><p></div><div
id="tab-3-step-4" class="tab_content clearfix"></p><h2>Get a Random Comment</h2><p>To get a random comment, we will first generate a random number. Then use the GET method to retrieve a comment from the List.</p><pre class="lang:default decode:true ">//Get a random number which is less than the size of the above list
   Integer i = (Math.random()* (commentList.size() -1)).intvalue();</pre><p></div><div
id="tab-4-step-5" class="tab_content clearfix"></p><h2>Iterate through Feed Item records and add comment</h2><p>In this step, we will iterate through each FeedItem record that entered the trigger. Remember, these are the records available in trigger.new</p><p>We will also use an If condition to check if the FeedItem record contains the word 'Success'. If yes, a we will create a FeedComment record with a random comment.</p><p>We will then add all the newly created FeedComment records to a final List that will be used in DML in the next step.</p><pre class="lang:default decode:true">    //iterate through each feed item record and add the comments
    For (FeedItem FIR:Trigger.new) { 
        //check if the post contains the word "Success"
        If (FIR.Body.contains('success')) {
            FeedComment FC = New FeedComment(); 
            FC.CommentBody = commentList.get(i);//add a random comment from the comment list using the random number generated earlier
            FC.FeedItemID = FIR.id;
            FC.CreatedById = '005f4000002NG0g'; //ID of user who will be commenting
            List2insert.add(fc); //add to final list of comments that needs to be inserted
        }
    }</pre><p>&nbsp;</p><p></div><div
id="tab-5-step-6" class="tab_content clearfix"></p><h2>DML to Insert the List of Feed Comments</h2><pre class="lang:default decode:true">Insert List2insert; // insert the final list of comments</pre><p></div></div></div><div
class="clear"></div><p>&nbsp;</p><p><strong>The complete trigger to post a random chatter comment will be as follows:</strong></p><pre class="lang:default decode:true ">trigger randomChatterComment on FeedItem (after insert) {
    
    //Create a list to hold the list of Feed Comment records being inserted
    List&lt;FeedComment&gt; List2insert = New list&lt;FeedComment&gt;();
    
    //Create a list of comments
    List&lt;String&gt; commentList = New List&lt;String&gt;{
        'Congratulations and BRAVO!',
            'This calls for celebrating! Congratulations!',
            'You did it! So proud of you!',
            'I knew it was only a matter of time. Well done!',
            'Congratulations on your well-deserved success.',
            'Heartfelt congratulations to you.',
            'Warmest congratulations on your achievement.',
            'Congratulations and best wishes for your next adventure!',
            'So pleased to see you accomplishing great things.',
            'Feeling so much joy for you today. What an impressive achievement!',
            'You’ve worked so hard for this. Congrats!',
            'This is awesome! You’re awesome! Way to go!',
            'Here’s to your streak! Keep it up!',
            'Sincere congratulations on your hard-earned success',
            'You are proof that good things come to those who are willing to sacrifice to reach a worthwhile goal. Words can’t express how proud I am!',
            'You have the creativity and determination to do whatever you can dream. I hope you feel proud today and confident in your ability to rise to your next challenge.',
            'Celebrating the dedication you’ve shown on the way to this achievement. You’ve earned every bit of the success you’re enjoying.',
            'Congrats!!!'           
            };
                //Get a random number which is less than the size of the above list
                Integer i = (Math.random()* (commentList.size() -1)).intvalue();
    
    //iterate through each feed item record and add the comments
    For (FeedItem FIR:trigger.new) { 
        //check if the post contains the word "Success"
        If (FIR.Body.contains('success')) {
            FeedComment FC = New FeedComment(); 
            FC.CommentBody = commentList.get(i);//add a random comment from the comment list using the random number generated earlier
            FC.FeedItemID = FIR.id;
            FC.CreatedById = '005f4000002NG0g'; //ID of user who will be commenting
            List2insert.add(fc); //add to final list of comments that needs to be inserted
        }
    }
    Insert List2insert; // insert the final list of comments
    
}</pre><p>&nbsp;</p>The post <a
href="https://www.syedtaha.com/salesforce-apex-triggers/trigger-to-post-automated-random-chatter-comment/1099/">Trigger to Post Automated Random Chatter Comment</a> first appeared on <a
href="https://www.syedtaha.com">Taha Syed | Salesforce</a>.]]></content:encoded>
<wfw:commentRss>https://www.syedtaha.com/salesforce-apex-triggers/trigger-to-post-automated-random-chatter-comment/1099/feed/</wfw:commentRss>
<slash:comments>0</slash:comments>
</item>
<item><title>Learn Salesforce Triggers with Examples and Scenarios</title><link>https://www.syedtaha.com/salesforce-apex-triggers/learn-salesforce-triggers-with-examples-and-scenarios/1072/</link>
<comments>https://www.syedtaha.com/salesforce-apex-triggers/learn-salesforce-triggers-with-examples-and-scenarios/1072/#respond</comments>
<dc:creator><![CDATA[Taha Syed]]></dc:creator>
<pubDate>Mon, 15 Oct 2018 20:41:31 +0000</pubDate>
<category><![CDATA[Apex Triggers]]></category>
<category><![CDATA[apex triggers]]></category>
<category><![CDATA[beginners]]></category>
<category><![CDATA[examples]]></category>
<category><![CDATA[salesforce]]></category>
<category><![CDATA[scenarios]]></category>
<category><![CDATA[triggers]]></category>
<category><![CDATA[triggers with examples]]></category>
<guid
isPermaLink="false">http://www.syedtaha.com/?p=1072</guid><description><![CDATA[<p>Learn Salesforce Apex Triggers with examples and scenarios by dissecting them line by line. This List of Salesforce Triggers is for beginners to practice and learn.</p>
The post <a
href="https://www.syedtaha.com/salesforce-apex-triggers/learn-salesforce-triggers-with-examples-and-scenarios/1072/">Learn Salesforce Triggers with Examples and Scenarios</a> first appeared on <a
href="https://www.syedtaha.com">Taha Syed | Salesforce</a>.]]></description>
<content:encoded><![CDATA[<h1>Learn Salesforce Triggers with Examples and Scenarios.</h1><p>&nbsp;</p><p>This post is dedicated to learning Salesforce triggers with examples and scenarios by dissecting them line by line. All triggers will be written with plenty of comments and explanations so that its easier for us to understand and implement.</p><p>&nbsp;</p><ul><li><a
href="http://www.syedtaha.com/salesforce-apex-triggers/write-your-first-hello-world-salesforce-apex-trigger-triggers-for-beginners/946/" target="_blank" rel="noopener"><strong>Write Your First Hello World Salesforce Apex Trigger – Triggers for Beginners</strong></a></li></ul><p
style="text-align: left; padding-left: 30px;"><em>The <strong>“Hello World”</strong> program is the simplest program used to illustrate the basic syntax of a programming language. The program outputs “Hello World” and is traditionally the first program written by all beginner developers. Our <strong>Hello World </strong>trigger&#8217;s requirement is: <strong>When a Lead is updated, update the lead’s first name to ‘Hello’ and the last name to ‘World’</strong></em></p><p>&nbsp;</p><ul><li><a
href="http://www.syedtaha.com/salesforce-apex-triggers/trigger-to-change-the-stage-when-opportunity-is-created-triggers-for-beginners/979/" target="_blank" rel="noopener"><strong>Trigger to Change the Stage when an Opportunity is created</strong></a></li></ul><p
style="padding-left: 30px;"><em>Every time an Opportunity is created (and the user selects any Stage), the <strong>Opportunity Stage</strong> should change and default to <strong>Prospecting. </strong></em></p><p>&nbsp;</p><ul><li><a
href="http://www.syedtaha.com/salesforce-apex-triggers/trigger-to-create-task-when-opportunity-is-updated-salesforce-apex-triggers/958/" target="_blank" rel="noopener"><strong>Trigger to create a task when an Opportunity is updated</strong></a></li></ul><p
style="padding-left: 30px;"><em>When an Opportunity is updated, a new <strong>Task</strong> should be <strong>created</strong> and assigned to the <strong>Opportunity Owner</strong>. The status of the task should be &#8220;In Progress&#8221;</em></p><p>&nbsp;</p><ul><li><a
href="http://www.syedtaha.com/salesforce-apex-triggers/trigger-to-roll-up-summary-contacts-field-to-accounts/1016/" target="_blank" rel="noopener"><strong>Trigger to create a roll-up summary of Contact&#8217;s fields on Accounts</strong></a></li></ul><p
style="padding-left: 30px;"><em>On each Account, the Total Salary custom field should hold the sum of Salaries from its associated Contacts. The trigger should work whenever a Contact’s Salary is updated, New Contact is Created or when an existing Contact is deleted.</em></p><p>&nbsp;</p><ul><li><a
href="http://www.syedtaha.com/salesforce-apex-triggers/salesforce-apex-trigger-to-prevent-duplicate-contacts-by-email-or-phone-number/897/" target="_blank" rel="noopener"><strong>Trigger to Prevent Duplicate Contacts</strong></a></li></ul><p
style="text-align: left; padding-left: 30px;"><em>When a <strong>Contact</strong> is being <strong>created</strong> and if a record with the same <strong>Email Id or Phone number exists</strong>, the <strong>trigger</strong> should throw an <strong>error</strong> and the <strong>User</strong> should <strong>not</strong> be <strong>allowed</strong> to <strong>create</strong> the <strong>Duplicate Contact</strong></em></p><p>&nbsp;</p><ul><li><a
href="http://www.syedtaha.com/salesforce-apex-triggers/trigger-to-post-automated-random-chatter-comment/1099/" target="_blank" rel="noopener"><strong>Trigger to Post Automated Random Chatter Comment</strong></a></li></ul><p
style="padding-left: 30px;">When a user posts to chatter and if the user&#8217;s post contains the term &#8220;Success&#8221;, an automated comment should be posted. This comment should be randomly selected from a list of comments; And should be posted as a specific user.</p><p
style="padding-left: 30px;"><em><strong> </strong></em></p><p>&nbsp;</p><p>Please support this post by linking it from your website/blog<br
/>
<a
href="http://www.syedtaha.com/salesforce-apex-triggers/learn-salesforce-triggers-with-examples-and-scenarios/1072/">http://www.syedtaha.com/salesforce-apex-triggers/learn-salesforce-triggers-with-examples-and-scenarios/1072/</a></p>The post <a
href="https://www.syedtaha.com/salesforce-apex-triggers/learn-salesforce-triggers-with-examples-and-scenarios/1072/">Learn Salesforce Triggers with Examples and Scenarios</a> first appeared on <a
href="https://www.syedtaha.com">Taha Syed | Salesforce</a>.]]></content:encoded>
<wfw:commentRss>https://www.syedtaha.com/salesforce-apex-triggers/learn-salesforce-triggers-with-examples-and-scenarios/1072/feed/</wfw:commentRss>
<slash:comments>0</slash:comments>
</item>
<item><title>Manually Setup a Users Password in Salesforce</title><link>https://www.syedtaha.com/salesforce-admin-hacks/manually-setup-a-users-password-in-salesforce/1001/</link>
<comments>https://www.syedtaha.com/salesforce-admin-hacks/manually-setup-a-users-password-in-salesforce/1001/#comments</comments>
<dc:creator><![CDATA[Taha Syed]]></dc:creator>
<pubDate>Fri, 17 Aug 2018 17:14:07 +0000</pubDate>
<category><![CDATA[Salesforce Admin Hacks]]></category>
<category><![CDATA[admin hacks]]></category>
<category><![CDATA[developer console]]></category>
<category><![CDATA[password]]></category>
<category><![CDATA[salesforce]]></category>
<category><![CDATA[setup password manually]]></category>
<category><![CDATA[system.setpassword]]></category>
<category><![CDATA[user]]></category>
<category><![CDATA[users password]]></category>
<category><![CDATA[workbench]]></category>
<guid
isPermaLink="false">http://www.syedtaha.com/?p=1001</guid><description><![CDATA[<p>Manually Setup a Users Password in Salesforce using the Developer Console or the Workbench. Here's a step by step method to setup the users password manually. Pro tip includes creating a user interface to setup new passwords manually.</p>
The post <a
href="https://www.syedtaha.com/salesforce-admin-hacks/manually-setup-a-users-password-in-salesforce/1001/">Manually Setup a Users Password in Salesforce</a> first appeared on <a
href="https://www.syedtaha.com">Taha Syed | Salesforce</a>.]]></description>
<content:encoded><![CDATA[<h1>Manually Setup a User&#8217;s Password in Salesforce using Developer Console or the Workbench.</h1><p>There are times when an Administrator needs to <strong>manually setup a users password in Salesforce. </strong>Salesforce Administrator&#8217;s can <strong>reset</strong> a User&#8217;s password from the User record detail page but Salesforce user interface doesn&#8217;t allow an Administrator to setup a specific password. Here is an Awesome Admin Hack to achieved this using the Developer Console or the Workbench.</p><p>Let&#8217;s discuss each method step by step.</p><h2>Manually Setup a User&#8217;s Password in Salesforce Using the Developer Console.</h2><p>Step 1. Get the User&#8217;s Id from the URL bar on the User&#8217;s record detail page.</p><figure
id="attachment_1002" aria-describedby="caption-attachment-1002" style="width: 674px" class="wp-caption alignnone"><img
fetchpriority="high" decoding="async" class="size-full wp-image-1002" src="http://www.syedtaha.com/wp-content/uploads/2018/08/get-Salesforce-User-ID.png" alt="get Salesforce User ID" width="674" height="328" srcset="https://www.syedtaha.com/wp-content/uploads/2018/08/get-Salesforce-User-ID.png 674w, https://www.syedtaha.com/wp-content/uploads/2018/08/get-Salesforce-User-ID-300x146.png 300w" sizes="(max-width: 674px) 100vw, 674px" /><figcaption
id="caption-attachment-1002" class="wp-caption-text">get Salesforce User ID</figcaption></figure><p>Step 2. Open Developer Console</p><p>Step 3. Open the Execute Anonymous Window from Debug &gt;&gt; Open Execute Anonymous Window OR using the shortcut Ctrl + E</p><p>Step 4. Enter the following Apex code. Replace the UserId and Password with the actual values we need.</p><pre class="lang:default decode:true ">System.SetPassword('UserId','Password'); //Replace the UserId and Password</pre><p>Step 5. Click Execute</p><p>We successfully manually setup the User&#8217;s password using the developer console and an email with the new security token will is emailed to the User.</p><p>&nbsp;</p><h2>Manually Setup a User&#8217;s Password in Salesforce Using Workbench.</h2><ol><li>Visit <a
href="https://workbench.developerforce.com/login.php" target="_blank" rel="noopener">Workbench</a> (<a
href="https://workbench.developerforce.com/login.php" target="_blank" rel="noopener">https://workbench.developerforce.com/login.php</a>) and Login using your Salesforce credentials.</li><li>Navigate to Utilities &gt;&gt; <a
href="https://workbench.developerforce.com/pwdMgmt.php" target="_blank" rel="noopener">Password Management</a></li><li>Enter the User&#8217;s Id and the New Password</li><li>Click on Change Password</li></ol><p>We successfully manually setup the User&#8217;s password using Workbench and an email with the new security token will is emailed to the User.</p><p>&nbsp;</p><h2>Pro Tip: Creating a User Interface to manually setup a User&#8217;s password in Salesforce.</h2><p>Step 1. Create a New Text Field on the User Object and Name it Password__c</p><p>Step 2. Create the following trigger on the User object</p><pre class="lang:default decode:true ">trigger setPassword on User (before update) {
    for (User u:Trigger.New) {
        User oldUser = Trigger.OldMap.get(u.id);
        If ((u.Password__c != null) &amp;&amp; (oldUser.Password__c != u.Password__c)) {
            System.SetPassword(u.id,u.password__c);
            //Uncomment below line to clear password field
            //u.Password__c = null;
        }    
    }
}</pre><p>Note: Use validation rules on Password__c to only accept passwords that align with your organization&#8217;s password policies.</p><p>Here&#8217;s how the trigger looks in the developer console (image)</p><figure
id="attachment_1020" aria-describedby="caption-attachment-1020" style="width: 945px" class="wp-caption alignnone"><img
decoding="async" class="wp-image-1020 size-full" src="http://www.syedtaha.com/wp-content/uploads/2018/08/manually-setup-a-users-password-in-Salesforce.png" alt="manually setup a users password in Salesforce" width="945" height="449" srcset="https://www.syedtaha.com/wp-content/uploads/2018/08/manually-setup-a-users-password-in-Salesforce.png 945w, https://www.syedtaha.com/wp-content/uploads/2018/08/manually-setup-a-users-password-in-Salesforce-300x143.png 300w, https://www.syedtaha.com/wp-content/uploads/2018/08/manually-setup-a-users-password-in-Salesforce-768x365.png 768w" sizes="(max-width: 945px) 100vw, 945px" /><figcaption
id="caption-attachment-1020" class="wp-caption-text">Manually setup a users password in Salesforce</figcaption></figure><p>Step 3. Now visit the User&#8217;s record detail page and enter the new password in the <strong>Password</strong> field that we created and click Save.</p><p>The User&#8217;s password will be changed and an email with the new security token will be emailed to the User.</p><p>&nbsp;</p><p>Update: To send the new password to the user by email, the trigger will be:</p><pre class="lang:default decode:true ">trigger CPTsetPassword on User (before update) {
    List &lt;String&gt; toAddresses = New List &lt;String&gt;();
    for (User u:Trigger.New) {
        User oldUser = Trigger.OldMap.get(u.id);
        If ((u.Password__c != null) &amp;&amp; (oldUser.Password__c != u.Password__c)) {
            System.SetPassword(u.id,u.password__c);
            toAddresses.add(u.Email);
            //Uncomment below line to clear password field after reset
            //u.Password__c = null;   
            
            //Sending the users new password by email
            Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();
            mail.setToAddresses(toAddresses);
            mail.setSubject('Salesforce Password Reset');
            mail.setPlaintextBody('Your password was reset by the Administrator and the new Password is ' + u.Password__c);
            Messaging.sendEmail(new Messaging.SingleEmailMessage[] {mail});         
        }    
    } 
}</pre><p>&nbsp;</p>The post <a
href="https://www.syedtaha.com/salesforce-admin-hacks/manually-setup-a-users-password-in-salesforce/1001/">Manually Setup a Users Password in Salesforce</a> first appeared on <a
href="https://www.syedtaha.com">Taha Syed | Salesforce</a>.]]></content:encoded>
<wfw:commentRss>https://www.syedtaha.com/salesforce-admin-hacks/manually-setup-a-users-password-in-salesforce/1001/feed/</wfw:commentRss>
<slash:comments>2</slash:comments>
</item>
</channel>
</rss>