Hello,
I am using sugar cloud,
I want to get current user's all teams using query.
Those all teams comes under user's->access tab-> My Teams.
Please assist me for the same.
Best Regards
Shiv
Hello,
I am using sugar cloud,
I want to get current user's all teams using query.
Those all teams comes under user's->access tab-> My Teams.
Please assist me for the same.
Best Regards
Shiv
Hi Shivashankar,
You can load the user bean and get all the related teams of user. Refer this link for more information on how to fetch related records.
//Load the user bean //replace {id} with actual user id $userBean = BeanFactory::getBean('Users', {id}); //Load relationship of teams $userBean->load_relationship('teams'); //$relatedTeams conatins an array of beans of all the teams of the user $relatedTeams = $userBean->teams->getBeans();
Thank you,
Vamshi S
Bhea Technologies Pte Ltd
Thank you your reply Vamshi !
But my concern not resolved yet using above logic. I am able to get only admin's global team. Neither getting all teams nor for other user's any team.
Any other help with this regards will be appreciable.
I want to get all teams in below path
custom\clients\base\api\myappi.php
Thank you
Thank you your reply Vamshi !
But my concern not resolved yet using above logic. I am able to get only admin's global team. Neither getting all teams nor for other user's any team.
Any other help with this regards will be appreciable.
I want to get all teams in below path
custom\clients\base\api\myappi.php
Thank you
Hi Vamshi ,
Is there a way to get all teams of current user(logged-in user). How i can achieve this.
Thank You