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

    Einstein Bot

    Learn How to Set Up an Einstein Bot in Salesforce

    Blog in Others, Salesforce Einstein

    If you want to set up the Einstein bot, first you have to connect chat implementation or message channel. For chat implementation, you must check…

    Automated Invitations, Channel Implementation, Chat Agent Configurations, Chat Deployment, Chat Implementation
    Shweta Apr 14, 2021
    17,512  Views
    Salesforce Marketing Cloud

    Journey Builder: Salesforce Marketing Cloud

    Blog in Others

    Salesforce Journey Builder:- It is a tool that empowers marketers to design and automate campaigns that guide customers through their journey with a brand. Following…

    Cloud Computing, Customer Success, Email Services in Salesforce, Event, Inbound Emails
    Rajan Mar 15, 2018
    8,585  Views

    Move Towards A Subscription-Based Business Model | Salesforce Guide

    Blog in Salesforce

    Subscription-based business models have grown significantly over the past few years. In fact, Forbes states that eCommerce-based businesses used this model and doubled their growth…

    Business Capabilities, Business Model, Business Transformation, Business’s Reputation, Connect Customer Touchpoints
    Apphienz May 20, 2021
    3,607  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.