UploadDocument
SharePoint ライブラリにドキュメントをアップロードします。
Note: This procedure makes use of indexed parameters. These input parameters are denoted with a '#' character at the end of their names.
Indexed parameters facilitate providing multiple instances a single parameter as inputs for the procedure.
Suppose there is an input parameter named Param#. Input multiple instances of an indexed parameter like this:
EXEC ProcedureName Param#1 = "value1", Param#2 = "value2", Param#3 = "value3"
Input
| Name | Type | Accepts Input Streams | Description |
| File | String | False | 追加されるファイルのパス。 |
| FileContent | String | False | 追加されるファイルのBase64 エンコードされたコンテンツ。指定された場合は、「File」の入力値は無視されます。 |
| Library | String | False | The URL of the directory you would like to upload file(s) to, relative to the base Url supplied in the 本製品's connection properties. For example: Root directory: Shared Documents If you set the Url connection property to a site collection, the relative URL will correspond with a path on the base site. If the Url connection property points to a specific site, the relative URL will be relative to the site supplied in the Url. |
| Name | String | False | 新しいファイルに割り当てる名前。 If uploading to the root directory of the site, supply only the filename. If uploading to a folder nested at some level inside the root directory, prepend the full parent subdirectory. For example: Root Directory: filename.txt Sub-directory:MyFolder/filename.txt |
| Content | String | True | File が指定されていない場合にアップロードするInputStream としてのコンテンツ。 |
| ReturnID | String | False | 新しく作成されたレコードのID およびその他のメタデータフィールドを返すかどうかを示すBoolean 値。この値を取得するには、追加のAPI リクエストが必要です。
デフォルト値はfalseです。 |
| MetadataName# | String | False | ドキュメントに設定されるメタデータフィールドの名前。It must be the column name present in the table of library. |
| MetadataValue# | String | False | ドキュメントに設定されるメタデータフィールドの値。 |
Result Set Columns
| Name | Type | Description |
| Result | String | ストアドプロシージャが成功したかどうかを示すBoolean 値。 |
| ID | String | ドキュメントの内部ID。 |
| _dlc_DocId | String | ドキュメントID。 |
| _dlc_DocIdUrl | String | ドキュメントID のURL。 |
| Vti_author | String | ドキュメントの作成者。 |
| Vti_etag | String | ドキュメントのETag。 |
| FileRef | String | ドキュメントのファイル参照。 |