The last time the apps from the Microsoft Store for Business were synced successfully for the account.
isEnabledForMicrosoftStoreForBusiness
Boolean
Whether the account is enabled for syncing applications from the Microsoft Store for Business.
microsoftStoreForBusinessLanguage
String
The locale information used to sync applications from the Microsoft Store for Business. Cultures that are specific to a country/region. The names of these cultures follow RFC 4646 (Windows Vista and later). The format is -<country/regioncode2>, where is a lowercase two-letter code derived from ISO 639-1 and <country/regioncode2> is an uppercase two-letter code derived from ISO 3166. For example, en-US for English (United States) is a specific culture.
PATCH https://graph.microsoft.com/v1.0/deviceAppManagement
Content-type: application/json
Content-length: 394
{
"@odata.type": "#microsoft.graph.deviceAppManagement",
"microsoftStoreForBusinessLastSuccessfulSyncDateTime": "2016-12-31T23:57:45.2453148-08:00",
"isEnabledForMicrosoftStoreForBusiness": true,
"microsoftStoreForBusinessLanguage": "Microsoft Store For Business Language value",
"microsoftStoreForBusinessLastCompletedApplicationSyncTime": "2017-01-01T00:02:00.0421137-08:00"
}
// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Models;
var requestBody = new DeviceAppManagement
{
OdataType = "#microsoft.graph.deviceAppManagement",
MicrosoftStoreForBusinessLastSuccessfulSyncDateTime = DateTimeOffset.Parse("2016-12-31T23:57:45.2453148-08:00"),
IsEnabledForMicrosoftStoreForBusiness = true,
MicrosoftStoreForBusinessLanguage = "Microsoft Store For Business Language value",
MicrosoftStoreForBusinessLastCompletedApplicationSyncTime = DateTimeOffset.Parse("2017-01-01T00:02:00.0421137-08:00"),
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.DeviceAppManagement.PatchAsync(requestBody);
// THE CLI IS IN PREVIEW. NON-PRODUCTION USE ONLY
mgc device-app-management patch --body '{\
"@odata.type": "#microsoft.graph.deviceAppManagement",\
"microsoftStoreForBusinessLastSuccessfulSyncDateTime": "2016-12-31T23:57:45.2453148-08:00",\
"isEnabledForMicrosoftStoreForBusiness": true,\
"microsoftStoreForBusinessLanguage": "Microsoft Store For Business Language value",\
"microsoftStoreForBusinessLastCompletedApplicationSyncTime": "2017-01-01T00:02:00.0421137-08:00"\
}\
'
// Code snippets are only available for the latest version. Current version is 6.x
GraphServiceClient graphClient = new GraphServiceClient(requestAdapter);
DeviceAppManagement deviceAppManagement = new DeviceAppManagement();
deviceAppManagement.setOdataType("#microsoft.graph.deviceAppManagement");
OffsetDateTime microsoftStoreForBusinessLastSuccessfulSyncDateTime = OffsetDateTime.parse("2016-12-31T23:57:45.2453148-08:00");
deviceAppManagement.setMicrosoftStoreForBusinessLastSuccessfulSyncDateTime(microsoftStoreForBusinessLastSuccessfulSyncDateTime);
deviceAppManagement.setIsEnabledForMicrosoftStoreForBusiness(true);
deviceAppManagement.setMicrosoftStoreForBusinessLanguage("Microsoft Store For Business Language value");
OffsetDateTime microsoftStoreForBusinessLastCompletedApplicationSyncTime = OffsetDateTime.parse("2017-01-01T00:02:00.0421137-08:00");
deviceAppManagement.setMicrosoftStoreForBusinessLastCompletedApplicationSyncTime(microsoftStoreForBusinessLastCompletedApplicationSyncTime);
DeviceAppManagement result = graphClient.deviceAppManagement().patch(deviceAppManagement);
<?php
use Microsoft\Graph\GraphServiceClient;
use Microsoft\Graph\Generated\Models\DeviceAppManagement;
$graphServiceClient = new GraphServiceClient($tokenRequestContext, $scopes);
$requestBody = new DeviceAppManagement();
$requestBody->setOdataType('#microsoft.graph.deviceAppManagement');
$requestBody->setMicrosoftStoreForBusinessLastSuccessfulSyncDateTime(new \DateTime('2016-12-31T23:57:45.2453148-08:00'));
$requestBody->setIsEnabledForMicrosoftStoreForBusiness(true);
$requestBody->setMicrosoftStoreForBusinessLanguage('Microsoft Store For Business Language value');
$requestBody->setMicrosoftStoreForBusinessLastCompletedApplicationSyncTime(new \DateTime('2017-01-01T00:02:00.0421137-08:00'));
$result = $graphServiceClient->deviceAppManagement()->patch($requestBody)->wait();
Here is an example of the response. Note: The response object shown here may be truncated for brevity. All of the properties will be returned from an actual call.
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 443
{
"@odata.type": "#microsoft.graph.deviceAppManagement",
"id": "bbb801a3-01a3-bbb8-a301-b8bba301b8bb",
"microsoftStoreForBusinessLastSuccessfulSyncDateTime": "2016-12-31T23:57:45.2453148-08:00",
"isEnabledForMicrosoftStoreForBusiness": true,
"microsoftStoreForBusinessLanguage": "Microsoft Store For Business Language value",
"microsoftStoreForBusinessLastCompletedApplicationSyncTime": "2017-01-01T00:02:00.0421137-08:00"
}
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see: https://aka.ms/ContentUserFeedback.