Skip to content

Commit d41318a

Browse files
authored
Merge pull request #1 from SharePoint/master
merging changers
2 parents 5e1f49c + 01e45c8 commit d41318a

File tree

5 files changed

+62
-4
lines changed

5 files changed

+62
-4
lines changed

docs/apis/export-amr-api.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ During incremental migration, instead of query everything again, by populating S
120120

121121
Below is a sample of how the *startChangeToken* might work. This example uses the optional feature setting for initial call and the parameter setting for incremental passes.
122122

123-
![AMR flow](media/async-read-api-flow.png)
123+
![Export API process](../images/async-read-api-flow.png)
124124

125125
#### Invalid Value
126126

@@ -153,8 +153,12 @@ This function returns the changeToken associates with this query. By specifying
153153

154154
#### Manifest Output
155155

156-
After the asyncMigrationRead function finishes execution, the final manifest will be placed in the container specified, with naming convention of “<jobid>/<filename>”. Manifest export package structure will be like the *createMigration* Import Package structure. The general output structure is summarized in table below.
156+
After the asyncMigrationRead function finishes execution, the final manifest will be placed in the container specified, under a folder named **JobId**. Manifest export package structure will be like the *createMigration* Import Package structure. The general output structure is summarized in table below.
157157

158+
Below is an example on how to query the folder:
159+
160+
CloudBlobDirectory folder = blobContainerObj.GetDirectoryReference(jobid);
161+
CloudBlockBlob blob = folder.GetBlockBlobReference(manifestFileName);
158162

159163
|**XML file**|**Schema File**|**Description**|
160164
|:-----|:-----|:-----|
@@ -188,7 +192,7 @@ It returns the AES256CBC encryption key used to decrypt the message in azureMani
188192
## Set up Guidelines
189193
The following provides high level guidelines for implementing the asynchronous metadata migration function. This documentation does not go into details on how to interact with SharePoint RESTful service. It is assumed that the ISV has prior knowledge and will be able to access the target website with proper permission. </br>,</br>For more information on how to access the Sharepoint website, refer to [Get to Know the SharePoint Rest Service](https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/get-to-know-the-sharepoint-rest-service).
190194

191-
1. Install and update the latest Microsoft.SharePointOnline.CSOM version. The minimum version requirement is V16.1.8600 or later.
195+
1. Install and update the latest Microsoft.SharePointOnline.CSOM version. The minimum version requirement is V16.1.9119.1200 or later.
192196
2. ISVs figure out the folder, document library or files of interested to be query and issued with CreateSPAsyncReadJob function.
193197
3. Once successfully created, query the job status using the *jobQueueUri*. It provides the job process status and any error logging. After job completion, parse the Manifest to retrieve the metadata.
194198

docs/apis/migration-api-overview.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1438,6 +1438,23 @@ There is no change from current published full 2013 [full 2013 package schema](h
14381438

14391439
There is no change from current published [full 2013 package schema](https://docs.microsoft.com/en-us/sharepoint/dev/schema/content-migration-schemas).
14401440

1441+
## Sample: Using REST to call the API
1442+
1443+
1444+
https://<spam><spam>yourtenanthere.sharepoint.com/sites/importSite/_api/site/CreateMigrationJobEncrypted<spam><spam>
1445+
1446+
{
1447+
"options": {
1448+
"AES256CBCKey": "000000000000000000000000000000000000000000000000000000="
1449+
},
1450+
"gWebId": "00000000-0000-0000-0000-000000000000",
1451+
"azureContainerSourceUri": "https://<spam><spam>tenant.blob.core.windows.net:443/00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000<spam><spam>=rw",
1452+
"azureContainerManifestUri": "https://<spam><spam>tenant.blob.core.windows.net:443/00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000<spam><spam>=rw"
1453+
}
1454+
1455+
For the container
1456+
https://<spam><spam>yourtenanthere.sharepoint.com/sites/importSite/_api/site/ProvisionMigrationContainers<spam><spam>
1457+
14411458

14421459
>[!NOTE]
14431460
>The **Migration API** is not available for users of Office 365 operated by 21Vianet in China. It is also not available for users of Office 365 with the German cloud using the data trustee, *German Telekom*. However, it is supported for users in Germany whose data ___location is not in the German data center.

docs/apis/migration-isv-guidance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ A new migration API, Asynchronous Metadata Read API (Export API) is currently be
7878

7979
- [Asynchronous Metadata Read (Export API)](https://docs.microsoft.com/en-us/sharepoint/dev/apis/export-amr-api)
8080

81-
The *AsynchronousMetadataRead* helps the ISVs export content from SharePoint and OneDrive. Once the new API becomes available, we recommend that you transition to the new API to avoid throttling.
81+
The *AsynchronousMetadataRead* helps the ISVs export content from SharePoint and OneDrive.
8282

8383
## Switch to the Microsoft Graph API
8484
If a feature is not supported by the migration API, we recommend that you use the Graph API. If the Graph API does not support the needed migration feature, then use CSOM. However, using CSOM increases the likelihood of being throttled.

docs/declarative-customization/column-formatting.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1171,6 +1171,13 @@ Operators specify the type of operation to perform. The following operators are
11711171
- length
11721172
- abs
11731173
- loopIndex
1174+
- floor
1175+
- ceiling
1176+
- pow
1177+
- substring
1178+
- getDate
1179+
- getMonth
1180+
- getYear
11741181

11751182
**Binary arthmetic operators** - The following are the standard arithmetic binary operators that expect two operands:
11761183

@@ -1224,6 +1231,21 @@ Operators specify the type of operation to perform. The following operators are
12241231
- `"txtContent":"=length(45)"` results in _1_
12251232
- `"txtContent":"=length(0)"` results in _0_
12261233

1234+
- **floor**: returns the largest integer les than or equal to a given number. - _Only available in SharePoint Online_
1235+
- `"txtContent":"=floor(45.5)"` results in _45_
1236+
1237+
- **ceiling**: rounds the given number up to the next largest whole number or integer. - _Only available in SharePoint Online_
1238+
- `"txtContent":"=ceiling(45.5)"` results in _46_
1239+
1240+
- **getDate**: returns the day of the month of the given date. - _Only available in SharePoint Online_
1241+
- `"txtContent":"=getDate(Date('12/26/1981'))"` results in _26_
1242+
1243+
- **getMonth**: returns the month in the specified date according to local time, as a zero-based value (where zero indicates the first month of the year). - _Only available in SharePoint Online_
1244+
- `"txtContent":"=getMonth(Date('12/26/1981'))"` results in _11_
1245+
1246+
- **getYear**: returns the year of the given date. - _Only available in SharePoint Online_
1247+
- `"txtContent":"=getYear(Date('12/26/1981'))"` results in _1981_
1248+
12271249
**Binary operators** - The following are operators that expect two operands:
12281250

12291251
- **indexOf**: takes 2 operands. The first is the text you would like to search within, the second is the text you would like to search for. Returns the index value of the first occurence of the search term within the string. Indexes start at 0. If the search term is not found within the text, -1 is returned. This operator is case-sensitive. - _Only available in SharePoint Online_
@@ -1235,7 +1257,22 @@ Operators specify the type of operation to perform. The following operators are
12351257
- **join**: takes 2 operands. The first is an array (multi-select person or choice field) and the second is the separating string. Returns a string concatenation of the array values separated by the separating string. - _Only available in SharePoint Online_
12361258
- `"txtContent": "=join(@currentField, ', ')"` might result in _"Apple, Orange, Cherry"_ (depending on the selected values)
12371259
- `"txtContent": "=join(@currentField.title, '|')"` might result in _"Chris Kent|Vesa Juvonen|Jeff Teper"_ (depending on the selected persons)
1260+
1261+
- **pow**: returns the base to the exponent power. - _Only available in SharePoint Online_
1262+
- `"txtContent":"=pow(2,3)"` results in _8_
12381263

1264+
**Ternary operators** - The following are operators that expect three operands:
1265+
1266+
- **subString**: returns the part of the string between the start and end indicies. - _Only available in SharePoint Online_
1267+
- `"txtContent":"=subString('DogFood', 3, 4)"` results in _Fo_
1268+
- `"txtContent":"=subString('DogFood', 4, 3)"` results in _Fo_
1269+
- `"txtContent":"=subString('DogFood', 3, 6)"` results in _Food_
1270+
- `"txtContent":"=subString('DogFood', 6, 3)"` results in _Food_
1271+
1272+
The substring() method returns the part of the string between the start and end indexes, or to the end of the string.
1273+
1274+
1275+
12391276
**Conditional operator** - The conditional operator is:
12401277

12411278
- **?**: Conditional operations written in Abstract Tree Syntax use `?` as the operator. This is to achieve an expression equivalent to a ? b : c, where if the expression a evaluates to true, then the result is b, else the result is c. For Excel style expressions you write these with an `if` statement. Regardless, there are 3 operands. The first is the condition to evaluate. The second is the result when the condition is true. The third is the result when the condition is false.

docs/images/async-read-api-flow.png

50.9 KB
Loading

0 commit comments

Comments
 (0)