Hello, I have I problem with obtaining fullname of participients of appointment.
I have my own function to send request in C# which based on HttpClient()).
To take my activities list I send request like:
[organisation]/api/data/v9.0/activitypointers $filter=activitytypecode eq 'Appointment' or activitytypecode eq 'Task' .... (I'm taking info about Appointments, Tasks, Phone calls and Emails).
Next I want to take only participients of appointments. So in C# I'm using foreach loop on json response like:
foreach (var singleItem in jsonResponse)
{...}
and inside I'm checking activitytypecode like:
if(singleItem.SelectToken("activitytypecode").ToString() == "Appointment"){
DO SOMETHING
}
If IF function return true I'm sending activity id to /activityparties like:
[organisation]/api/data/v9.0/activityparties?$filter=_activityid_value eq MY_ACTIVITY_ID
in response, I receive a list of participients but only with ID's (and others info but no with fullname etc.)
I could send every participient ID's to /contacts but not every participients are contact, it can be for example lead. There are no info about type of participient (contact,lead) in participients list so I don't know where to send participeint ID's.
Is there any easier way to retrieve the FULLNAME (or name + secondname) of appointment participants with a specific appointment id ?