Les API sous la version /beta dans Microsoft Graph sont susceptibles d’être modifiées. L’utilisation de ces API dans des applications de production n’est pas prise en charge. Pour déterminer si une API est disponible dans v1.0, utilisez le sélecteur Version .
// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Beta.Models.IndustryData;
var requestBody = new OutboundProvisioningFlowSet
{
OdataType = "#microsoft.graph.industryData.outboundProvisioningFlowSet",
DisplayName = "Outbound Provisioning Flow Test",
Filter = new BasicFilter
{
OdataType = "#microsoft.graph.industryData.basicFilter",
Attribute = FilterOptions.OrgExternalId,
In = new List<string>
{
"Quarter",
"Demo",
},
},
};
// To initialize your graphClient, see https://video2.skills-academy.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.External.IndustryData.OutboundProvisioningFlowSets.PostAsync(requestBody);
// Code snippets are only available for the latest major version. Current major version is $v0.*
// Dependencies
import (
"context"
msgraphsdk "github.com/microsoftgraph/msgraph-beta-sdk-go"
graphmodelsindustrydata "github.com/microsoftgraph/msgraph-beta-sdk-go/models/industrydata"
//other-imports
)
requestBody := graphmodelsindustrydata.NewOutboundProvisioningFlowSet()
displayName := "Outbound Provisioning Flow Test"
requestBody.SetDisplayName(&displayName)
filter := graphmodelsindustrydata.NewBasicFilter()
attribute := graphmodels.ORGEXTERNALID_FILTEROPTIONS
filter.SetAttribute(&attribute)
in := []string {
"Quarter",
"Demo",
}
filter.SetIn(in)
requestBody.SetFilter(filter)
// To initialize your graphClient, see https://video2.skills-academy.com/en-us/graph/sdks/create-client?from=snippets&tabs=go
outboundProvisioningFlowSets, err := graphClient.External().IndustryData().OutboundProvisioningFlowSets().Post(context.Background(), requestBody, nil)
// 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.OutboundProvisioningFlowSet outboundProvisioningFlowSet = new com.microsoft.graph.beta.models.industrydata.OutboundProvisioningFlowSet();
outboundProvisioningFlowSet.setOdataType("#microsoft.graph.industryData.outboundProvisioningFlowSet");
outboundProvisioningFlowSet.setDisplayName("Outbound Provisioning Flow Test");
com.microsoft.graph.beta.models.industrydata.BasicFilter filter = new com.microsoft.graph.beta.models.industrydata.BasicFilter();
filter.setOdataType("#microsoft.graph.industryData.basicFilter");
filter.setAttribute(com.microsoft.graph.beta.models.industrydata.FilterOptions.OrgExternalId);
LinkedList<String> in = new LinkedList<String>();
in.add("Quarter");
in.add("Demo");
filter.setIn(in);
outboundProvisioningFlowSet.setFilter(filter);
com.microsoft.graph.models.industrydata.OutboundProvisioningFlowSet result = graphClient.external().industryData().outboundProvisioningFlowSets().post(outboundProvisioningFlowSet);
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph_beta import GraphServiceClient
from msgraph_beta.generated.models.industry_data.outbound_provisioning_flow_set import OutboundProvisioningFlowSet
from msgraph_beta.generated.models.industry_data.basic_filter import BasicFilter
from msgraph_beta.generated.models.filter_options import FilterOptions
# To initialize your graph_client, see https://video2.skills-academy.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = OutboundProvisioningFlowSet(
odata_type = "#microsoft.graph.industryData.outboundProvisioningFlowSet",
display_name = "Outbound Provisioning Flow Test",
filter = BasicFilter(
odata_type = "#microsoft.graph.industryData.basicFilter",
attribute = FilterOptions.OrgExternalId,
in = [
"Quarter",
"Demo",
],
),
)
result = await graph_client.external.industry_data.outbound_provisioning_flow_sets.post(request_body)