In a custom logic hook, how do I access the current users team_id and id?
Thanks
In a custom logic hook, how do I access the current users team_id and id?
Thanks
Hi Edan
Can you clarify?
Which fields do you want to access? From which module?
Regards
André Lopes
DevToolKit / Project of the Month - June 2009
Lampada Global Services- Open Source Solutions
Avenida Ipiranga, 318
Bloco B - CJ 1602
São Paulo, SP 01046-010
Brazil
Office: +55 11 3237-3110
Mobile: +55 11 7636-5859
e-mail: andre@lampadaglobal.com
Lampada Global delivers offshore software development and support services to customers around the world.
Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.
I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.
Hi,
According to me you have to use $bean->[variable name] for access in logic hook
Best regards,
SARFARAZ AHMED KHAN
Karachi, Pakistan
skype: genius_crystal
genius_crystal@hotmail.com
92-314-2595624
Very simple!
PHP Code:global $current_user;
$id = $current_user->id;
$team_id = $current_user->default_team;
--
Marnus van Niekerk
There are only 10 types of people in the world
those who can read binary and those who don't
Modules:
CE Teams - Upgrade safe teams module for Community Edition
FieldACL - Field Level Access Control for Community Edition
EditLogicHooks - Create and edit Logic Hooks from the Admin GUI
FlexibleChartDashlet - Display any data in a Dashlet Chart
DocumentThumbnails - Thumbnails for Documents module
Many questions can be answered by reading the Developers Manual
Thanks, perfect.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks