findOrCreateLabel( )


開発者プレビュー

このAPIは変更される可能性があります。プレビュー期間中、開発者からのフィードバックに基づいてバグ修正や新機能がリリースされる予定です。

Retrieves a label with a given name, or creates one if it doesn't exist.

について findOrCreateLabel() function returns a Promise that resolves when the specified label is found or created.

Successful calls to findOrCreateLabel() always returns a label, which can be passed to subsequent function calls.

To find an existing label without potentially creating a new one, use getLabel() または queryLabels().

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Manage Members and Contacts - all permissions
Manage Contact Labels
Learn more about app permissions.
メソッド宣言
コピー
メソッド・パラメータ
displayNamestringRequired

Display name to retrieve or create.

If an existing label is an exact match for the specified display name, the existing label is returned. If not, a new label is created and returned.


optionsFindOrCreateLabelOptions

Language options.

リターン
Return Type:Promise<FindOrCreateLabelResponse>
役に立ちましたか?
はい
いいえ