Skip to content
This repository has been archived by the owner on Aug 24, 2021. It is now read-only.

Commit

Permalink
Updated Batch Update sample based on latest with the API.
Browse files Browse the repository at this point in the history
  • Loading branch information
VesaJuvonen committed Apr 7, 2016
1 parent 0aee8f0 commit 328c142
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 12 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -179,3 +179,5 @@ FakesAssemblies/
# Prevent the checkin of publishing settings as they typically contain environment
# specific information which should not be in the repo
*.pubxml
/Solutions/BusinessApps.HelpDesk/BusinessApps.HelpDesk
/Samples/Provisioning.Cloud.Async.WebJob
1 change: 0 additions & 1 deletion Samples/UserProfile.BatchUpdate.API/CreateImportJob.ps1
Expand Up @@ -57,7 +57,6 @@ $userLookupKey="PrincipalName"
# Create property mapping between on-premises name and O365 property name
# Notice that we have here 2 custom properties in UPA called 'City' and 'OfficeCode'
$propertyMap = New-Object -type 'System.Collections.Generic.Dictionary[String,String]'
$propertyMap.Add("Title", "Title")
$propertyMap.Add("City", "City")
$propertyMap.Add("Office", "OfficeCode")

Expand Down
Expand Up @@ -51,10 +51,9 @@ static void Main(string[] args)

var propertyMap = new System.Collections.Generic.Dictionary<string, string>();
// First one is the file, second is the target at User Profile Service
// Notice that we have here 2 custom properties in UPA called 'City' and 'OfficeCode'
propertyMap.Add("Title", "Title");
// Notice that we have here 2 custom properties in UPA called 'City' and 'Office'
propertyMap.Add("City", "City");
propertyMap.Add("Office", "OfficeCode");
propertyMap.Add("Office", "Office");

// Returns a GUID, which can be used to see the status of the execution and end results
var workItemId = tenant.QueueImportProfileProperties(
Expand Down
12 changes: 4 additions & 8 deletions Samples/UserProfile.BatchUpdate.API/sample.txt
@@ -1,26 +1,22 @@
{
"value": [
{
"IdName": "vesaj@techedairlift01.ccsctp.net",
"Title": "Manager",
"IdName": "VesaJ@veskuonline.com",
"City": "Helsinki",
"Office": "Viper"
},
{
"IdName": "bjansen@techedairlift01.ccsctp.net",
"Title": "Consultant",
"IdName": "annaw@vesaj.onmicrosoft.com",
"City": "Amsterdam",
"Office": "Beetle"
},
{
"IdName": "unknowperson@techedairlift01.ccsctp.net",
"Title": "Tester",
"IdName": "BelindaN@vesaj.onmicrosoft.com",
"City": "None",
"Office": ""
},
{
"IdName": "erwin@techedairlift01.ccsctp.net",
"Title": "Developer",
"IdName": "DenisD@vesaj.onmicrosoft.com",
"City": "Stockholm",
"Office": "Elite"
}
Expand Down

0 comments on commit 328c142

Please sign in to comment.