You need to sign in to do that
Don't have an account?

how to subquery with this relationship External object (External Lookup Relationship)?
Hi all,
Currently i have two External object with relationship External Lookup Relationship with A__x is parent B__x is child. B have 5 records.
From A__x i want to query B__x just one query
Select id, name ,(Select id, name from B__r ) where id = '123456789'. But result of child is null?
Can you help me find to query child record success?
Currently i have two External object with relationship External Lookup Relationship with A__x is parent B__x is child. B have 5 records.
From A__x i want to query B__x just one query
Select id, name ,(Select id, name from B__r ) where id = '123456789'. But result of child is null?
Can you help me find to query child record success?
i have some class use data from exteral object for logic code. I saw that someone use mockrequest.
http://grahambarnard.com/development/2016/02/08/mocking-external-objects/
But i need to query records into my classes it's not working with the same solution. How to insert and use records external object in @testSetup
? Please help me about this case.
You Missed From A__x .
Use below Query instead of Select id, name ,(Select id, name from B__r ) where id = '123456789'.
SELECT Id, Name ,(SELECT Id, name FROM B__r ) FROM A__x WHERE Id = '123456789'.
And Id should be valid.
For Eg: SELECT Id,Name,(SELECT Id ,Name FROM Contacts) FROM Account WHERE Id = '0010o00002H9oVOAAZ'
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks,
Ajay Dubedi