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

    Salesforce ISV

    What Must ISVs Know Before Integrating With Salesforce?

    Blog in Salesforce integration

    A lot of enterprises depend on Salesforce for many of their business processes ranging from marketing automation to sales process management. They don’t’ all use…

    API Callouts, API Integrations, App Integration, Applications, Business Processes
    Algoworks May 18, 2020
    2,442  Views

    Boost productivity with the Salesforce Inspector Chrome Extension

    Blog in Others

    With digitization, the workload in every organization is growing exponentially, creating a lot of mundane, but essential tasks. These activities are time-consuming and not so…

    Chrome Extensions, External IDs, Salesforce Admin, Salesforce API, Salesforce Data
    LevelShift (formerly DemandBlue) Mar 11, 2020
    5,362  Views
    Salesforce Flows

    Salesforce Flows and Types of Flows

    Blog in Salesforce

    Salesforce Flow enables you to construct complex business arrangements utilizing clicks, not code. Flow Builder is the most integral asset that a Salesforce Admin has…

    Assignments, Auto, Auto Launched Flow, Auto-Layout, Business Arrangements
    kishan Feb 15, 2022
    9,336  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.