Skip to content

How do I retrieve Location forwarding responses from Graph SDK calls? #3172

Description

@catmanjan

For example, according to this link:

https://learn.microsoft.com/en-us/graph/api/externalconnectors-externalconnection-patch-schema?view=graph-rest-1.0&tabs=http#response

I should receive a response like:

HTTP/1.1 202 Accepted
Location: https://graph.microsoft.com/v1.0/external/connections/contosohr/operations/616bfeed-666f-4ce0-8cd9-058939010bfc

But the SDK code is like this:

Microsoft.Graph.Models.ExternalConnectors.Schema response = await graph.Schema.PatchAsync(request);

Is there some way to get the Location header from the object?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions