Skip to content

Commit 328c142

Browse files
committed
Updated Batch Update sample based on latest with the API.
1 parent 0aee8f0 commit 328c142

File tree

4 files changed

+8
-12
lines changed

4 files changed

+8
-12
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -179,3 +179,5 @@ FakesAssemblies/
179179
# Prevent the checkin of publishing settings as they typically contain environment
180180
# specific information which should not be in the repo
181181
*.pubxml
182+
/Solutions/BusinessApps.HelpDesk/BusinessApps.HelpDesk
183+
/Samples/Provisioning.Cloud.Async.WebJob

Samples/UserProfile.BatchUpdate.API/CreateImportJob.ps1

-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ $userLookupKey="PrincipalName"
5757
# Create property mapping between on-premises name and O365 property name
5858
# Notice that we have here 2 custom properties in UPA called 'City' and 'OfficeCode'
5959
$propertyMap = New-Object -type 'System.Collections.Generic.Dictionary[String,String]'
60-
$propertyMap.Add("Title", "Title")
6160
$propertyMap.Add("City", "City")
6261
$propertyMap.Add("Office", "OfficeCode")
6362

Samples/UserProfile.BatchUpdate.API/UserProfile.BatchUpdate.API/Program.cs

+2-3
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,9 @@ static void Main(string[] args)
5151

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

5958
// Returns a GUID, which can be used to see the status of the execution and end results
6059
var workItemId = tenant.QueueImportProfileProperties(

Samples/UserProfile.BatchUpdate.API/sample.txt

+4-8
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,22 @@
11
{
22
"value": [
33
{
4-
"IdName": "[email protected]",
5-
"Title": "Manager",
4+
"IdName": "[email protected]",
65
"City": "Helsinki",
76
"Office": "Viper"
87
},
98
{
10-
"IdName": "[email protected]",
11-
"Title": "Consultant",
9+
"IdName": "[email protected]",
1210
"City": "Amsterdam",
1311
"Office": "Beetle"
1412
},
1513
{
16-
"IdName": "[email protected]",
17-
"Title": "Tester",
14+
"IdName": "[email protected]",
1815
"City": "None",
1916
"Office": ""
2017
},
2118
{
22-
"IdName": "[email protected]",
23-
"Title": "Developer",
19+
"IdName": "[email protected]",
2420
"City": "Stockholm",
2521
"Office": "Elite"
2622
}

0 commit comments

Comments
 (0)