Skip to content

Instantly share code, notes, and snippets.

@sukum
Forked from jmertic/gist:3684162
Created December 18, 2012 16:43
Show Gist options
  • Save sukum/4329572 to your computer and use it in GitHub Desktop.
Save sukum/4329572 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'])->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