このコンテンツはお使いの言語では利用できません。

Vitextra Number Generator can automatically generate numbers or names in a SharePoint document library or list.

📝 Note
Number Generator supports specific column types such as ID and Lookup, as well as custom types.

Prerequisites

To set up and use formulas, make sure the Vitextra: Number Generator feature is activated on the site collection.

Go to Site Settings and click Site collection features:

Site settings

Site settings

Scroll down to the feature and click Activate if it isn't activated yet:

Number Generator site collection feature

Number Generator site collection feature

Numbering Schemes

Column value generation is managed by numbering schemes defined at the list or library level. Go to the settings of the list or library where you want to apply column auto-population, and select Number Generator under the General Settings heading:

SharePoint Library settings

SharePoint Library settings

Use this list to manage the numbering schemes for the list or library. Click the New Item button to create a new numbering scheme.

SharePoint Library settings

SharePoint Library settings

The numbering scheme form contains the following fields:

  • Name
  • Content Type
  • Field
  • Formula
  • Regenerate

Numbering scheme form

Numbering scheme form

📝 Note
The Content Type field is greyed out if content types are disabled for the list or document library.

Formula Format

The numbering formula supports three types of data:

  • Text
  • Column
  • Sequence

To reference a Column, wrap its display or internal name in square brackets:

[Column Name]

To reference a Sequence, wrap the sequence name in square brackets with a leading "!" symbol:

[!Sequence Name]

All other text in the formula appears as-is in the result.

Sample formula:

ID: [ID]. Created at [Created:MM/dd/yyyy]

Result of the formula above for an item created on 4/12/2020 with ID = 1:

ID: 1. Created at 04/12/2020

Samples

For this demo, we use a document library with the following custom fields:

  • Product. Single line of text
  • Status. Choice
  • Publish Date. Date and Time
  • Number. Single line of text

The sample formulas below populate the Number column in the document library.

Sample #1. Populate column with ID field

A numbering scheme formula that populates the column with the ID field:

[ID]

Result in the document library:

Sample #1. Result

Sample #1. Result

You can combine multiple fields to populate the column value:

[ID].[Status]

Sample #1. Result

Sample #1. Result

Sample #2. Format Numeric Field

Number Generator supports formatting. To define a field's format, specify it after a colon: [Field:Format]. Supported format specifiers:

Format SpecifierNameDescription
0Zero placeholderReplaces the zero with the corresponding digit if one is present; otherwise, zero appears in the result string.
#Digit placeholderReplaces the "#" symbol with the corresponding digit if one is present; otherwise, no digit appears in the result string.
.Decimal pointDetermines the location of the decimal separator in the result string.
,Group separatorInserts a localized group-separator character between each group.

💡 Tip
For more details about numeric formats, see the Custom numeric format strings article.

Format a column using the ID field repeated in different formats:

[ID:0000] - [ID:####] - [ID:##00]

Sample #2. Result

Sample #2. Result

Sample #3. Format Date Field

You can use the same approach to format a date column.

Format a date column (Publish Date) in different formats:

[Publish_x0020_Date:MM/dd/yyyy] - [Publish_x0020_Date:yy-MM-dd-HH-mm-ss]

Sample #3. Result

Sample #3. Result

💡 Tip
For more details about date formats, see the Custom date and time format strings article.

Sample #4. Reference Sequence

Number Generator supports cross-site sequences to generate unique numbers. To reference a sequence in a formula, use its name with a leading !:

[!ManualSequence]

Sample #4. Result

Sample #4. Result

Sample #5. Use System Fields

Number Generator lets you populate a column with system field values. Some of the system fields are listed in the table below:

FieldDescriptionExamples
File_x0020_TypeExtension of the filedocx, pdf
UniqueIdUnique identifier of the item95fed722-c225-4f02-8c8d-7b0515e0777f
FileSizeDisplaySize of the file616311
ContentVersionVersion of content of the file2
_UIVersionStringVersion of the item15.0
AuthorUser who created the itemJohn Harrison
EditorUser who last modified the itemHenry McDavid
[Author].[Created:yyyy] v.[_UIVersionString]

Sample #5. Result

Sample #5. Result

質問と回答

この記事について質問すると、サポートチームから公式回答を受け取れます。

まだ質問はありません。最初の質問を投稿しましょう。

注目の記事

QR コードのダウンロードとコピー: PNG、JPEG、SVG、WebP

Vitextra QR Code Generator Web パーツから QR コードを取り出す方法を説明します。PNG、JPEG、SVG、WebP 形式でのダウンロード、300 ~ 4000 ピクセルの画像サイズの設定、クリップボードへのコピー、印刷・ドキュメント・Web に適した形式の選び方を取り上げます。

100 1 分
List Filter Online でフィルターを保存し、フィルター済みビューのリンクを共有する

Vitextra List Filter Online Web パーツで、フィルター プリセットを保存・適用・削除する方法、フィルターを適用した状態でページを開くリンクをコピーする方法、「ユーザーの前回のフィルターを記憶する」オプションで次回の訪問時に前回のフィルターが復元される仕組みを説明します。プリセットの保存場所とブラウザー ストレージの制限についても解説します。

106 2 分
Questions and Answers での質問の作成、編集、公開

編集者が Vitextra Questions and Answers Web パーツでコンテンツを追加・管理する方法を説明します。SharePoint リストの列 (Question、Markdown 対応の Answer、Category、Link、Video URL、Contact、Order、Published)、下書きと公開のワークフロー、並べ替え、添付ファイル、一括編集を取り上げます。

5 2 分

共有