// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Beta.Models.IndustryData;
var requestBody = new InboundFlow
{
OdataType = "#microsoft.graph.industryData.inboundFlow",
DisplayName = "My Inbound Flow",
EffectiveDateTime = DateTimeOffset.Parse("2022-03-12T16:40:46.924769+05:30"),
ExpirationDateTime = DateTimeOffset.Parse("2023-03-12T16:40:46.924769+05:30"),
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.External.IndustryData.InboundFlows["{inboundFlow-id}"].PatchAsync(requestBody);
// THE CLI IS IN PREVIEW. NON-PRODUCTION USE ONLY
mgc-beta external industry-data inbound-flows patch --inbound-flow-id {inboundFlow-id} --body '{\
"@odata.type": "#microsoft.graph.industryData.inboundFlow",\
"displayName": "My Inbound Flow",\
"effectiveDateTime": "2022-03-12T16:40:46.924769+05:30",\
"expirationDateTime": "2023-03-12T16:40:46.924769+05:30"\
}\
'
// Code snippets are only available for the latest version. Current version is 6.x
GraphServiceClient graphClient = new GraphServiceClient(requestAdapter);
com.microsoft.graph.beta.models.industrydata.InboundFlow inboundFlow = new com.microsoft.graph.beta.models.industrydata.InboundFlow();
inboundFlow.setOdataType("#microsoft.graph.industryData.inboundFlow");
inboundFlow.setDisplayName("My Inbound Flow");
OffsetDateTime effectiveDateTime = OffsetDateTime.parse("2022-03-12T16:40:46.924769+05:30");
inboundFlow.setEffectiveDateTime(effectiveDateTime);
OffsetDateTime expirationDateTime = OffsetDateTime.parse("2023-03-12T16:40:46.924769+05:30");
inboundFlow.setExpirationDateTime(expirationDateTime);
com.microsoft.graph.models.industrydata.InboundFlow result = graphClient.external().industryData().inboundFlows().byInboundFlowId("{inboundFlow-id}").patch(inboundFlow);