function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

retrive standard user object value in custom object query OR 2 action method in single repeat


I need to get several fields from user created custom  object , from that example

getting values using


select id, name, createdbyid from project_task__c 


From this i need to get 


select smalllphotourl from user where id=:createdbyid 


these results  needs to be placed with in a repeat .


how can i process?


i tried both query within one quuery but unable to get standard object value in custom object query...


 and i am unable to get two action methods with in a single repeat .. how to process . 

Prafull G.Prafull G.
Seems replication of your other query. Please read the message

Hope it make sense.




Query on two obejcts together in single query depends on relationship between both. here you dont mention relation ship between User object and Project Task object so here I am giving an example


if  X and Y two objects are there 

Y is parent of X then


[Select id ,( Select id from X__r ) from Y ] is possible 


here we can fetch some other field along with id


Please share relation ship so I can help more

Please give me KUDOS if this sugegstion meet your query. and mark this answer as solution to make it available for other user for close enough query.