You need to sign in to do that
Don't have an account?
rajubalaji
get apex code for list of user for task assignment
Hi Team,
This Is Balaji .I am new to apex development.I Have one scneario here
I am trying to get list of user for task assignment by datewise.Please find the below code for reference.
public class allUser{
Public Static List<String> GetUserListForTaskAssignmentNew(List<String> allUser){
List<String> UserId = new List<String>();
List<User> assignUserList=new List<User>();
String User = null;
List<User> = [SELECT ownerId, count(Type) from Task where createdDate<=Today group By ownerID];
{
if(allUser.size() > 0)
}
}
}
While writing in query i am getting only who has done task but i need how has done task aswell not done task.
these are the error i am getting:
Unexpected token 'List'.
Missing return statement required return type: List<String>
thank you inadvance.please help me
This Is Balaji .I am new to apex development.I Have one scneario here
I am trying to get list of user for task assignment by datewise.Please find the below code for reference.
public class allUser{
Public Static List<String> GetUserListForTaskAssignmentNew(List<String> allUser){
List<String> UserId = new List<String>();
List<User> assignUserList=new List<User>();
String User = null;
List<User> = [SELECT ownerId, count(Type) from Task where createdDate<=Today group By ownerID];
{
if(allUser.size() > 0)
}
}
}
While writing in query i am getting only who has done task but i need how has done task aswell not done task.
these are the error i am getting:
Unexpected token 'List'.
Missing return statement required return type: List<String>
thank you inadvance.please help me
The Map: "userTasksCount" will return the Users Id's with their total assigned tasks.
All Answers
Also, correct you SOQL according to your requirement.
The Map: "userTasksCount" will return the Users Id's with their total assigned tasks.