• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Edit
Show / Hide Table of Contents

Sentry

Some tooltip text!
• 1 minute to read
 • 1 minute to read

Sentry is automatically applied to rows as well as entities.

  • Attempting to modify a read-only object will throw an exception.
  • Attempting to read a hidden property will return a blank value - reading will not throw exceptions.
  using SuperOffice;
  using SuperOffice.CRM.Rows;
  string lastname = "Hansen";
  PersonRows persons = PersonRows.GetFromIdxLastname(lastname);

// modifications will fail. Anon user will not be allowed
  foreach(PersonRow person in persons)
  {
    person.DayOfBirth = 0; // throws exception!
    person.MonthOfBirth = 0;
    person.YearOfBirth = 0;
    person.Save();
  }

See Also: PersonRow SuperOffice.Exceptions.SoSentryException

In This Article
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top