• Phuc Huynh 1
  • NEWBIE
  • 0 Points
  • Member since 2019
  • Salesforce Developer
  • Capgemini

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 2
    Replies
Hi All,
Can you help me how to  write Test Class for External object Data?
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.
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?
 
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?