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 › Deleting record - Show error in Salesforce

    Tagged: Account Layout, Delete Record, Record Processing, Salesforce Customization, Salesforce Error Notification, Salesforce Records

    • Salesforce® Discussions

      Deleting record - Show error in Salesforce

      Posted by HARSHITA on June 6, 2017 at 1:14 PM

      Suppose there is 1 Account Layout and there is 1 delete button , I am deleting the record. During the daytime between 1-2 pm , I want to show the error that user is not able to access this record or delete this record. How it has to be done?

      S replied 9 years, 2 months ago 3 Members · 4 Replies
      • Account Layout
      • Delete Record
      • Record Processing
      • Salesforce Customization
      • Salesforce Error Notification
      • Salesforce Records
    • 4 Replies
    • S

      Member
      June 7, 2017 at 9:46 AM

      Can you please elaborate if there are people from multiple timezones in the Org ? Then 1-2 pm would be different for all.

      Secondly, you can write a trigger to manage this. That can be a before delete trigger. Let me know nay other help.

    • [adinserter block='9']
    • HARSHITA

      Member
      June 7, 2017 at 12:08 PM

      Hi S,

      This is for a particular user. Yes we can use a trigger. But which function i will use to extract a time interval from 9-6 pm. Could you please define the trigger which will be used.

    • Sudhir

      Member
      June 7, 2017 at 1:54 PM

      Make use of UserInfo and/or Timezone class.

      https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_methods_system_userinfo.htm

      and

      https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_methods_system_timezone.htm

    • S

      Member
      June 14, 2017 at 6:52 AM

      Rightly said, You can check the timezone of the particular user for whom you are checking and then whenever the action is happening you can compare the current time and the particular user's time and display/hide error messages.

    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

    How to Create Relationship between fields in Salesforce using Look up and Master Detail

    Blog in Salesforce customization

    In database we link one table with another table using join statements,Primary Key and Foreign Key so that we can access data of one table…

    Junction Object, Lookup, MasterDetail, Object Relationship, One to Many Relationship
    Suraj Mar 17, 2017
    19,792  Views

    Light For Nonprofits After Luminate | Salesforce Guide

    Blog in Salesforce, Salesforce Products

    Recently, Blackbaud revealed that Luminate CRM will be phased out on June 30, 2022. Blackbaud Luminate has a long successful past. This approach started as…

    Business, Cloud Computing, Cost-effective, CRM, CRM solution
    Apphienz May 24, 2021
    1,782  Views
    Salesforce Meetings

    All You Need to Know About Salesforce Meetings

    Blog in Salesforce

    Every organization has a Sales department that wishes to have separate functionalities for speedy interactions with potential customers. Instead of making plans for meetings for…

    Applications, Calendar Sync System, Clients, Communication, Content Material
    Anjali Jul 2, 2021
    6,591  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.