Tuesday, November 6, 2012

#206 Installing Oracle Enterprise Repository 11.1.1.6

For SOA governance -
be it governance with a large G or a small g,-

OER is the optimal solution.
Installation is quick and easy - see my MyInstallDoc

Software available Here

Friday, November 2, 2012

#205 Fusion CRM - Accessing child objects via Groovy

Thanks to my colleague MireilleD. for this.

Scenario: An Opportunity can have many contacts.




I need to pass on the email address of the primary contact to a 3rd party system. I have defined a link on the page with the following Groovy script to retrieve the email of the primary contact.

Here it is -

// get primary contact Email
def primaryEmail=""
def contacts=OpportunityContact
if (contacts != null){
contacts.reset()
while (contacts.hasNext()) {
  def curRecord = contacts.next()
   if (curRecord.PartyId == PrimaryContactPartyId){
     primaryEmail=curRecord.EmailAddress
   }
}