Toggle Side Panel

  • Blogs
  • Consultants
    • Salesforce Product Expertise
      • Top Salesforce ConsultantsTop Salesforce Consultants
      • Marketing Cloud ConsultantsMarketing Cloud Consultants
      • Service Cloud ConsultantsService Cloud Consultants
      • Experience Cloud ConsultantsExperience Cloud Consultants
      • Analytics Cloud ConsultantsAnalytics Cloud Consultants
    • Salesforce Industry Expertise
      • Non-Profit Cloud ConsultantsNon-Profit Cloud Consultants
      • Financial Service Cloud ConsultantsFinancial Service Cloud Consultants
      • Health Cloud ConsultantsHealth Cloud Consultants
      • Commerce Cloud ConsultantsCommerce Cloud Consultants
      • Manufacturing Cloud ConsultantsManufacturing Cloud Consultants
    • Salesforce Experts by Location
      • USATop Salesforce Consultants in USA
      • IndiaTop Salesforce Consultants in India
      • AustraliaTop Salesforce Consultants in Australia
      • United KingdomTop Salesforce Consultants in UK
      • CanadaTop Salesforce Consultants in Canada
  • Webinars
  • Contact Us
  • Discussions
More options
    Sign in Sign up
    • Blogs
    • Consultants
      • Salesforce Product Expertise
        • Top Salesforce ConsultantsTop Salesforce Consultants
        • Marketing Cloud ConsultantsMarketing Cloud Consultants
        • Service Cloud ConsultantsService Cloud Consultants
        • Experience Cloud ConsultantsExperience Cloud Consultants
        • Analytics Cloud ConsultantsAnalytics Cloud Consultants
      • Salesforce Industry Expertise
        • Non-Profit Cloud ConsultantsNon-Profit Cloud Consultants
        • Financial Service Cloud ConsultantsFinancial Service Cloud Consultants
        • Health Cloud ConsultantsHealth Cloud Consultants
        • Commerce Cloud ConsultantsCommerce Cloud Consultants
        • Manufacturing Cloud ConsultantsManufacturing Cloud Consultants
      • Salesforce Experts by Location
        • USATop Salesforce Consultants in USA
        • IndiaTop Salesforce Consultants in India
        • AustraliaTop Salesforce Consultants in Australia
        • United KingdomTop Salesforce Consultants in UK
        • CanadaTop Salesforce Consultants in Canada
    • Webinars
    • Contact Us
    • Discussions
    Close search

    Activity › Forums › Salesforce® Discussions › A string ‘updated’ is added to all users in Account object via batch apex, now how to remove 'updated' in Salesforce Apex?

    Tagged: Account Object, Developer Console, Salesforce Apex Code, Salesforce Batch Apex, Salesforce Visualforce Page, String

    • Salesforce® Discussions

      A string ‘updated’ is added to all users in Account object via batch apex, now how to remove 'updated' in Salesforce Apex?

      Posted by Aman on September 22, 2018 at 11:27 AM

      A string ‘updated’ is added to all users in Account object via batch apex, now how to remove 'updated' in Salesforce Apex?

      Parul replied 7 years, 10 months ago 3 Members · 0 Replies
      • Account Object
      • Developer Console
      • Salesforce Apex Code
      • Salesforce Batch Apex
      • Salesforce Visualforce Page
      • String
    • 0 Replies
    • shariq

      Member
      September 22, 2018 at 11:28 AM

      Run the below code in developer console

      List acc =[SELECT Id, Name FROM Account];

      for(Account a : acc)

      {

      a.Name = a.Name.removeEnd(‘Updated’);

      update a;

      }
      (Top 30 Salesforce Apex Interview Questions and Answers Pdf)
      16. How do you pass the parameters from on apex class to another to another ?
      Answer: You can simply pass the parameters through the URL.

      say you are redirecting from one VF page to another

      string value = ‘your param value’;

      string url;

      url = ‘/apex/VF_Page_Name?param1=’ + value;

      PageReference pageRef = new PageReference(url);

      pageRef.setRedirect(true);

      return pageRef;

      Then in the controller of the VF page, you just can get the param like this

      String param_value = system.CurrentPageReference.GetParameters().get(‘param1’);

    • Parul

      Member
      September 22, 2018 at 12:30 PM

      hi

      As far i understand your problem you can try to Run the below code in developer console

      List<Account> acc =[SELECT Id, Name FROM Account];
      for(Account a : acc)
      {
      a.Name = a.Name.removeEnd(‘Updated’);
      update a;
      }

      Hoping it will help you:

       

      Thanks

    Log In to reply.

    • Public
    • All Members
    • My Connections
    • Only Me
    • Public
    • All Members
    • My Connections
    • Only Me
    • Public
    • All Members
    • My Connections
    • Only Me

    Popular Salesforce Blogs

    Guided Selling in Salesforce for Sales Reps in 2024

    Blog in Salesforce Cloud Platform

    Guided selling is a game-changing approach that streamlines the sales process by swiftly identifying customer needs and aligning them with company objectives. Data backs the…

    Automated Quotes, Business Processes, Buying Experience, Configure Price Quote, CPQ
    Sculptor CPQ May 2, 2024
    883  Views
    norcal dreamin

    NorCal Dreamin’ 2019: Salesforce Community Conference by the Salesforce Community

    Blog in Others

    The Salesforce Community is back with another amazing event, NorCal Dreamin’ on June 27-28, 2019 in Sacramento, CA. It will be a Salesforce conference organized…

    Automation, Blackthorn, Career Development, CPQ, Developer Sessions
    Algoworks Jun 20, 2019
    4,401  Views

    Salesforce for Manufacturing to Optimize Productivity

    Blog in Salesforce

    The manufacturing sector has witnessed a complete, factory-wide digital makeover. The industries have leveraged technologies like artificial intelligence (AI), robotics, and blockchain. Salesforce for manufacturing…

    Artificial Intelligence, Blockchain, Closing Deals, Contact Information, Creating Quotes
    360 Degree Jul 13, 2021
    2,149  Views

    Popular Salesforce Videos

    Salesforce Development Master Training | Salesforce Development Course

    Salesforce Development Master Training | Salesforce Development Course

    Video in Salesforce Training, Salesforce Development

    Shrey Finally launched the most awaited Salesforce Development Master Training. Features of the course are: Learn Salesforce Development from Scratch with more than 100 on-demand…

    Salesforce Training, Salesforce Tutorial, Salesforce Development, Salesforce Certification, salesforce
    S2 Feb 8, 2022
    2,969  Views
    Salesforce Data Archive along with Files

    Salesforce Data Archive along with Files

    Video in Data

    This video tries to explain the way true archive of records as well as the files in Salesforce. Archive files along with the DataArchiva, We…

    Salesforce Tutorial for Beginners, Salesforce Data Management, Best Salesforce Tutorials, Salesforce Tutorials, Free Salesforce Tutorials
    Abhay May 24, 2018
    4,139  Views
    How to Start Your Career in Salesforce?

    How to Start Your Career in Salesforce?

    Video in Salesforce Stories, Salesforce Training

    Are you still confused about "How to start your career in Salesforce?" Get your answer now! We hope you enjoy the video and it helps…

    Salesforce Training, Salesforce Tutorial, Salesforce Development, Salesforce Certification, Salesforce Developer
    Jogender Feb 8, 2021
    1,713  Views

    Popular Salesforce Infographics

    Pardot January 2020 Release [Infographic]

    Infographic in Pardot

    HML Personalisation on Landing Pages and Forms What: HML is the new way to add personalization to Pardot marketing assets, replacing variable tags – you…

    Salesforce Infographics, Pardot, Salesforce Videos, Einestein Behaviour Scores, HML Personalisation
    lavish Feb 4, 2020
    2,906  Views
    community cloud

    How Can Your Company Benefit from Salesforce Community Cloud

    Infographic in Salesforce Cloud Platform

    Salesforce Community Cloud is an online platform where companies can connect customers, partners, and employees with each other and the data or records they need…

    Salesforce Infographic, Salesforce Community Cloud, salesforce consulting company, Customers, Employees
    nakul singh Jul 5, 2021
    2,146  Views
    salesforce for business

    5 Advantages of Using Salesforce for Your Business

    Infographic in Salesforce Org.

    Salesforce is a customer relationship management (CRM) platform that offers a wide range of features and benefits for businesses of all sizes. Here are five…

    Sales, Marketing, Salesforce, CRM, Customer Relationship Management
    AwsQuality Apr 27, 2023
    1,835  Views
    Footer Forcetalks logo

    support@forcetalks.com

    • twitterx

    Quick Links

    Advertise with Us

    Salesforce® Articles

    Dreamforce 2023

    Top Salesforce® Bloggers 2023

    Top Salesforce Consultants

    Get Listed

    Company

    Contact Us

    About Us

    Privacy Policy

    Terms & Conditions

    InsightHub

    Salesforce Blogs

    Salesforce Videos

    Salesforce Groups

    Salesforce Jobs

    © 2026 - Forcetalks ● All Rights Reserved

    Salesforce® is a trademark of Salesforce® Inc. No claim is made to the exclusive right to use “Salesforce”. Any services offered within the Forcetalks website/app are not sponsored or endorsed by Salesforce®.

    We use cookies to enhance your browsing experience. Please see our privacy policy if you'd like more information on our use of cookies.