You need to sign in to do that
Don't have an account?
KhaledZero
Query SQL to SOQL
Hi,
I want write my query whith SOQL:
Selecte User.Username, CollaborationGroup.Name, CollaborationGroup.LastModifiedDate From User, CollaborationGroup Where User.Id = CollaborationGroup.OwnerID AND CollaborationGroup.LastModifiedDate < 2013-04-20T14:00:00.000Z
thx.
solution:
All Answers
Check this
Select u.name, cg.Name, cg.LastModifiedDate
From CollaborationGroup cg, User u
Where u.Id = cg.OwnerID AND cg.LastModifiedDate < 2013-04-20T14:00:00.000Z
If this post is helpful please throw Kudos.If this post solves your problem kindly mark it as solution.
Thanks
thx @souvik9086,
I tested this query whith Force.com Explorer but it don't work
ERROR:
MALFORMED_QUERY:
Where u.Id = cg.OwnerID AND cg.LastModifiedDate
ERROR at Row 3:Colum:13
unewpected token: 'cg.OwnerID'
Hi, What is the relation between this two objects?
If user is the parent then it needs to work.
Select u.name, cg.Name, cg.LastModifiedDate
From CollaborationGroup cg, cg.User u
Where u.Id = cg.OwnerID AND cg.LastModifiedDate < 2013-04-20T14:00:00.000Z
If this post is helpful please throw Kudos.If this post solves your problem kindly mark it as solution.
Thanks
hi,
there is an error whit this query :
when i treied to run it in Force.com Explorer
you can see the image of my error it in this link: click here
Thx
solution: