IP Library Granted Patent US 9,977,814
Granted Patent B2
US 9,977,814 · App. 14/722,825 · Granted May 22, 2018

Custom metadata in loosely coupled triggers

Inventor: Avrom Irwin Roy-Faderman (Sunnyvale, CA)
Assignee: salesforce.com, inc.
G06F17/30371G06F17/3051G06F17/30289G06F17/30342G06F17/30595G06F17/30876G06F17/30067
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 9,977,814
App. No.
14/722,825
Granted
May 22, 2018
Kind
B2
Abstract

A database system that supports associating a custom metadata type with loosely coupled triggers may be implemented to include instructions to receive a definition of a custom metadata type, the definition comprising at least one relationship field associated with a triggerable database object. The database system may also include instructions to associate the definition of the custom metadata type with a loosely-coupled trigger, and to cause the loosely-coupled trigger to execute based on generating a custom metadata record of the custom metadata type. The custom metadata record including a triggerable database object value for the relationship field.

Claims (35)

1. A method for using a custom metadata type with loosely coupled triggers, the method

comprising:

receiving, by a database system, a definition of custom metadata type, the definition comprising at least one relationship field associated with a triggerable database object;

associating, by the database system, the definition of the custom metadata type with a loosely-coupled trigger; and

causing, by the database system, the loosely-coupled trigger to execute based on generating a custom metadata record of the custom metadata type, the custom metadata record being generated after the loosely-coupled trigger is compiled and including a triggerable database object value for the relationship field.

2. The method of claim 1 , wherein said associating the definition of the custom metadata type with a loosely-coupled trigger occurs before the loosely coupled trigger is compiled.

3. The method of claim 2 , wherein the custom metadata record is generated after the loosely coupled trigger has been compiled.

4. The method of claim 3 , wherein the generation of the custom metadata record causes the loosely coupled trigger to associate with the triggerable database object indicated by the triggerable database object value of the relationship field.

5. The method of claim 4 , wherein the loosely coupled trigger is caused to execute based on an update to the triggerable database object identified in the triggerable database object value.

6. The method of claim 5 , further comprising:

determining, by the database system, whether the triggerable database object is associated with the custom metadata record, and if so, identifying the loosely coupled trigger associated with the custom metadata record.

7. The method of claim 6 , wherein the update to the triggerable database object comprises one of creating a record, modifying a record, and deleting a record.

8. The method of claim 1 , wherein the definition of the custom metadata type is provided by a developer, and wherein the custom metadata record is stored by the database system.

9. An apparatus for custom metadata with loosely coupled triggers, the apparatus comprising:

one or more processors; and

a non-transitory computer readable medium storing a plurality of instructions, which when executed, cause the one or more processors to:

receive, by a database system, a definition of custom metadata type, the definition comprising at least one relationship field associated with a triggerable database object;

associate, by the database system, the definition of the custom metadata type with a loosely-coupled trigger; and

cause, by the database system, the loosely-coupled trigger to execute based on generating a custom metadata record of the custom metadata type, the custom metadata record being generated after the loosely-coupled trigger is compiled and including a triggerable database object value for the relationship field.

10. The apparatus of claim 9 , wherein the definition of the custom metadata type is associated with a loosely-coupled trigger before the loosely coupled trigger is compiled.

11. The apparatus of claim 10 , wherein the custom metadata record is generated after the loosely coupled trigger has been compiled.

12. The apparatus of claim 11 , wherein the generation of the custom metadata record causes the loosely coupled trigger to associate with the triggerable database object indicated by the triggerable database object value of the relationship field.

13. The apparatus of claim 12 , wherein the loosely coupled trigger is caused to execute based on an update to the triggerable database object identified in the triggerable database object value.

14. The apparatus of claim 13 , further comprising:

determine, by the database system, whether the triggerable database object is associated with the custom metadata record, and if so, identify the loosely coupled trigger associated with the custom metadata record.

15. A computer program product comprising computer-readable program code to be executed by one or more processors when retrieved from a non-transitory computer-readable medium, the program code including instructions to:

receive, by a database system, a definition of custom metadata type, the definition comprising at least one relationship field associated with a triggerable database object;

associate, by the database system, the definition of the custom metadata type with a loosely-coupled; and

cause, by the database system, the loosely-coupled trigger to execute based on generating a custom metadata record of the custom metadata type, the custom metadata record being generated after the loosely-coupled trigger is compiled and including a triggerable database object value for the relationship field.

16. The computer program product of claim 15 , wherein the definition of the custom metadata type is associated with a loosely-coupled trigger before the loosely coupled trigger is compiled.

17. The computer program product of claim 16 , wherein the custom metadata record is generated after the loosely coupled trigger has been compiled.

18. The computer program product of claim 17 , wherein the generation of the custom metadata record causes the loosely coupled trigger to associate with the triggerable database object indicated by the triggerable database object value of the relationship field.

19. The computer program product of claim 18 , wherein the loosely coupled trigger is caused to execute based on an update to the triggerable database object identified in the triggerable database object value.

20. The computer program product of claim 19 , wherein the program code includes further instructions to:

determine, by the database system, whether the triggerable database object is associated with the custom metadata record, and if so, identify the loosely coupled trigger associated with the custom metadata record.

Assignments (2)
CHANGE OF NAME Recorded Sep 20, 2023
From: SALESFORCE.COM, INC.
To: SALESFORCE, INC.
Reel/Frame 064975/0892 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded May 27, 2015
From: ROY-FADERMAN, AVROM IRWIN
To: SALESFORCE.COM, INC.
Reel/Frame 035723/0298 →
Continuity (3)
Continuation In Part 13289116 · Nov 4, 2011
Provisional Application 62060673 · Oct 7, 2014
Related Publication 20150317350A1 · Nov 5, 2015