Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The Bill Coordinator E-mail Event can be triggered using Custom Logic. The following parameters are Required to execute the Event.

Code Block
languagephp
titleBill Coordinator E-mail
linenumberstrue
collapsetrue
{
	"billRecid":/**
* Event: Bill coordinator email
* Listener Class: Application_Model_Bill_Bill
* Listener Method: eventGenerateEmail
*/

PCR_Event::attachDb(
    "generate-email",
    ["Application_Model_Bill_Bill" => "eventGenerateEmail"]
);
PCR_Event::trigger(
    "generate-email", 
 	[
		"billRecid" => "443", 						//RecID of BIllBill E-mail is sent about
		"role": => "5", 								//RecID of Coordinator Role
		"subject": => "Billing Transactions for August 1, 2022 - August 31, 2022", //Subject of E-mail
		"emailBody":" => "Billing E-mail Test", 		//Body of E-mail
		"RECID": => "443",							//RecID of Bill E-mail is about
		"reportOptions":[ => 	[],
		"contact": => "216121", 						//RecID of Contact that initiated the E-mail process 

		"eventBroadcastBy": => "216121",
		"eventBroadcastTime": => "Sep 30, 2022, 10:31 am",
		"eventBroadcastDayofWeek": => "5",
		"eventBroadcastHourMin": => "1031",

	]
});