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, 5 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

    Sharing Rules in Salesforce

    The Definitive Guide for Sharing Rules in Salesforce

    Blog in Others, Salesforce

    One of Salesforce's key objectives is to integrate marketing, sales, commerce, service, and IT departments regardless of geographic location via its customer service component known…

    Commerce, Company's Personalized Expectations, CRM Platform, Customer 360, Customer Relationship Management
    Cymetrix Jul 20, 2021
    3,009  Views

    5 Questions to Help Decide If a Salesforce Certification Is for You

    Blog in Salesforce Certifications

    Salesforce is used in nearly every industry and countless companies today, and its reach continues to expand. Salesforce dominates because the Customer Relationship Management (CRM)…

    Online Salesforce Training, Salesforce Administrator, Salesforce App Builder, Salesforce Certification, Salesforce Community
    Simplilearn Apr 15, 2019
    4,296  Views

    Salesforce Agentforce for Nonprofits

    Blog in Salesforce Products

    Nonprofits are constantly faced with the challenge of meeting growing demands with limited resources and inefficient processes. When your constituents need help or information, you…

    Agentforce, Ai, AI Tool, Analyze, Automate
    DB Nov 11, 2025
    442  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.