This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Example: getting actual property from Part Goal relationship | |
| System.Diagnostics.Debugger.Launch(); | |
| Innovator inn = this.getInnovator(); | |
| string actVal = ""; | |
| //loop through returned collection from search | |
| int counter = this.getItemCount(); | |
| for(int i = 0; i < counter; i++){ | |
| Item cItm = this.getItemByIndex(i); | |
| cItm.fetchRelationships("Part Goal"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Get existing email message in Innovator | |
| //An email Item contains a Name for the stored item, a Subject, a From User/Identity, and the Body of the email | |
| Item email_msg = this.newItem("EMail Message", "get"); | |
| email_msg.setProperty("name", "Open Items Need Attention!"); //this email name is an example and does not exist OOTB | |
| email_msg = email_msg.apply(); | |
| //Get admin Identity | |
| Item iden = this.newItem("Identity", "get"); | |
| iden.setProperty("name", "Innovator Admin"); | |
| iden = iden.apply(); | |
| //Send email TO above Identity |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <innovators> | |
| <innovator> | |
| <server>http://localhost/Innovator11</server> | |
| <database>InnovatorServer</database> | |
| <username>admin</username> | |
| <password>innovator</password> | |
| <http_timeout_seconds>600</http_timeout_seconds> | |
| <job> | |
| <method>Midnight Batch Run</method> | |
| <months>*</months> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8" ?> | |
| <innovators> | |
| <innovator> | |
| <server>SERVER</server> | |
| <database>DATABASE</database> | |
| <username>USERNAME</username> | |
| <password>PASSWORD</password> | |
| <http_timeout_seconds>600</http_timeout_seconds> | |
| <job> | |
| <method>METHOD-NAME</method> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Get email message | |
| Item email_msg = this.newItem("EMail Message", "get"); | |
| email_msg.setProperty("name", "Service Reminder"); | |
| email_msg = email_msg.apply(); | |
| //Get admin Identity | |
| Item iden = this.newItem("Identity", "get"); | |
| iden.setProperty("name", "Innovator Admin"); | |
| iden = iden.apply(); | |
| bool result = this.email(email_msg, iden); | |
| if (!result) { return this.getInnovator().newError("Mail not sent"); } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <innovators> | |
| <innovator> | |
| <server>http://localhost/Innovator11</server> | |
| <database>InnovatorSolutions</database> | |
| <username>admin</username> | |
| <password>innovator</password> | |
| <http_timeout_seconds>600</http_timeout_seconds> | |
| <job> | |
| <method>Scheduled Email Delivery</method> | |
| <months>*</months> |