Skip to content

IdentitySet.cs does not contain a Phone property #3004

@rslavey

Description

@rslavey

Describe the bug

When I call the /v1.0/communications/callRecords/{id}, the participants object can contain a "user" or a "phone". However, the SDK does not recognize this.

"participants": [
{
"spoolApplicationInstance": null,
"applicationInstance": null,
"acsApplicationInstance": null,
"application": null,
"phone": null,
"acsUser": null,
"spoolUser": null,
"user": {
"displayName": "xxx",
"tenantId": "xxx",
"id": "xxx"
},
"device": null,
"encrypted": null,
"guest": null,
"onPremises": null
},
{
"spoolApplicationInstance": null,
"acsApplicationInstance": null,
"applicationInstance": null,
"user": null,
"application": null,
"phone": {
"displayName": null,
"tenantId": null,
"id": "xxx"
},
"acsUser": null,
"spoolUser": null,
"device": null,
"encrypted": null,
"guest": null,
"onPremises": null
}
]

Error in Visual Studio: 'IdentitySet' does not contain a definition for 'Phone' and no accessible extension method 'Phone' accepting a first argument of type 'IdentitySet' could be found (are you missing a using directive or an assembly reference?)

This exists in the Identity property of ParticipantsV2 and OrganizerV2, but these are not returned by the call to CallRecords today.

Expected behavior

A call record should return a CallRecord object with a valid Participant phone, e.g.,

var id= record.Participants?.Select(x => x.User ?? x.Phone)

How to reproduce

Make Graph API call to CallRecord:

    _graphClient
    .Communications
    .CallRecords[id]
    .GetAsync();```

Attempt to return participant phone property:

`var id= record.Participants?.Select(x => x.User ?? x.Phone)`

### SDK Version

5.93.0

### Latest version known to work for scenario above?

_No response_

### Known Workarounds

None. 

### Debug output

<details><summary>Click to expand log</summary>

1>xxx\capture-teams-calls.cs(56,168,56,173): error CS1061: 'IdentitySet' does not contain a definition for 'Phone' and no accessible extension method 'Phone' accepting a first argument of type 'IdentitySet' could be found (are you missing a using directive or an assembly reference?)

</details>


### Configuration

- OS: Windows 11
- architecture: x64

### Other information

The Microsoft.Graph.Models.IdentitySet class should contain a Phone property that mimics the User property.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status:waiting-for-triageAn issue that is yet to be reviewed or assignedtype:bugA broken experience

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions