Skip to content

Instantly share code, notes, and snippets.

@jmertic
Created September 9, 2012 12:57
Show Gist options
  • Save jmertic/3684162 to your computer and use it in GitHub Desktop.
Save jmertic/3684162 to your computer and use it in GitHub Desktop.
<?php
class CustomAccountsController extends SugarController
{
public function action_displaypassedids() {
if ( !empty($_REQUEST['uid']) ) {
$recordIds = explode(',',$_REQUEST['uid']);
foreach ( $recordIds as $recordId ) {
$bean = SugarModule::get($_REQUEST['module'])-&gt;loadBean();
$bean->retrieve($recordId);
echo "Sent Record ID {$bean->id}, name ".$bean->get_summary_text()."";
}
}
sugar_die('');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment