Skip to content
This repository was archived by the owner on Jun 16, 2024. It is now read-only.
This repository was archived by the owner on Jun 16, 2024. It is now read-only.

CloseIncidentRequest throwing error #516

Open
@richardhardinguk

Description

@richardhardinguk

Running code containing CloseIncidentRequest throws the following error:

FakeXrmEasy.PullRequestException: 'Exception: The organization request type 'Microsoft.Crm.Sdk.Messages.CloseIncidentRequest' is not yet supported... but we DO love pull requests so please feel free to submit one! :). This functionality is not available yet.

However, as per link https://github.com/jordimontana82/fake-xrm-easy/blob/5531248d7e9dc2a112b17735e0bf5939e974d342/FakeXrmEasy.Tests.Shared/FakeContextTests/CloseIncidentRequestTests/CloseIncidentRequestTests.cs , it looks as though this is included and supposed to be supported?

Code being run is:
`
// Close the case
var incidentResolution = new IncidentResolution
{
Subject = "Cyclical Schedule Completed",
};
incidentResolution.IncidentId = insp.ebecs_incidentid;

            CloseIncidentRequest closeRequest = new CloseIncidentRequest
            {
                IncidentResolution = incidentResolution,
                Status = new OptionSetValue((int)Incident_StatusCode.PracticallyComplete),
            };
            service.Execute(closeRequest);`

Assemblies have been updated today to 1.57.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions