Toggle Side Panel

  • Home
  • Articles
    • All Articles
    • Blogs
    • Videos
    • Infographics
  • 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
  • Marketplace
  • Advertise With Us
  • Contact Us
  • Discussions
More options
    Sign in Sign up
    • Home
    • Articles
      • All Articles
      • Blogs
      • Videos
      • Infographics
    • 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
    • Marketplace
    • Advertise With Us
    • 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 8 years, 7 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.

    • 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

    application solution

    Popular Salesforce Blogs

    Event in Salesforce

    Guide To Component Event And Application Event in Salesforce

    Blog in Salesforce

    Component Event Component event is fired by the when we instantiate the component. The component is fired from the child component and handled by the…

    Application Event, Application Occasions, Asynchronous Code, Child Component, Component Event
    Marziya Sep 3, 2020
    3,882  Views

    Understanding Decorators and Lifecycle Hooks in Lightning Web Components (LWC)

    Blog in Salesforce customization

    Lightning Web Components (LWC) have revolutionized the way we build user interfaces in Salesforce. They offer a powerful way to create interactive and responsive web…

    Child components, Cleanup Tasks, Component Communication, Component Lifecycle Management, Component Performance
    SF Oct 20, 2023
    2,127  Views
    Salesforce CPQ Implementation

    Stages of Salesforce CPQ Implementation

    Blog in Others, Salesforce Tools, Salesforce Tutorial

    Your organization needs to work smart to stay ahead of its competition, and one way to obtain this is with CPQ software. With Salesforce CPQ…

    Backhanded Inquiries, Client, Client Business, Configuration, CPQ Execution
    Shweta Feb 8, 2021
    4,201  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®.

    Try AuditMyCRM - It is a Salesforce CRM Audit tool which comprehensively scans your Salesforce org and gives you the list of errors or warnings you need to take care of.
    We use cookies to enhance your browsing experience. Please see our privacy policy if you'd like more information on our use of cookies.