Suppose, I have page with ID 123 and this page has been referenced on more than one pages and if one of page conatins a complex field having these fields
But when i am using this line of code to find all reference of pages, I'm not getting this page with above complex field. Can anyone please help me on this
var oldPageIdReferenceList = _contentRepository.Service.GetReferencesToContent(oldIdReference, false);
If I understand you correctly you are trying to find the pages that a specific pages is used or referenced too?
If that is the case you can use the IContentModelUsage to retrieve the content usage and then you can find all the reference to that content also.
Check out the code in Nicola Ayan's CmsAudit, it should point you in the right direction.