We have a working API that is getting all of the company call log data and inserting it into a databse. We have discovered some data is missing from the records and I have found the missing data within the legs of the call record.
I'm looking for a way to get my C# code to loop through the legs of a call record to find the first To Name.
I have set my view = "Detailed" and can Console.WriteLine(response.legs[0].to.name); but that only shows me the to name in the first leg, sometimes this can be null. I can figure out how to get my app to loop through the legs until if finds a value in to.name.
Any help is apprecaited.