Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add info about spaces - triggers mdv2 #1613

Merged
merged 1 commit into from
Nov 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint] reported by reviewdog 🐶
MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]

This guide will teach you how to create and configure triggers in **Master Data v2** to automate actions after a document update.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint] reported by reviewdog 🐶
MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]

Each trigger is described as an item of the array `v-triggers` of a [JSON schema](https://developers.vtex.com/vtex-rest-api/docs/master-data-schema-lifecycle). If you want to create a trigger for a data entity with no associated schema, you may [create a new schema](https://developers.vtex.com/docs/api-reference/master-data-api-v2#put-/api/dataentities/-dataEntityName-/schemas/-schemaName-) with the trigger settings according to what is described below.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint] reported by reviewdog 🐶
MD010/no-hard-tabs Hard tabs [Column: 5]

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint] reported by reviewdog 🐶
MD010/no-hard-tabs Hard tabs [Column: 5]

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint] reported by reviewdog 🐶
MD010/no-hard-tabs Hard tabs [Column: 5]

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint] reported by reviewdog 🐶
MD010/no-hard-tabs Hard tabs [Column: 5]

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint] reported by reviewdog 🐶
MD010/no-hard-tabs Hard tabs [Column: 5]

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint] reported by reviewdog 🐶
MD010/no-hard-tabs Hard tabs [Column: 5]

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint] reported by reviewdog 🐶
MD010/no-hard-tabs Hard tabs [Column: 5]

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint] reported by reviewdog 🐶
MD010/no-hard-tabs Hard tabs [Column: 5]

Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ To create a new trigger in an existing schema, follow these steps:

| Property | Type | Description |
| - | - | - |
| `name` |`string`| A descriptive name for your trigger, limited to 100 characters. |
| `active` | `boolean`| Whether the trigger is enabled (`true`) or disabled (`false`). |
| `name` |`string`| Trigger name, limited to 100 characters. Don't use blank spaces; only underscores (`_`) or dashes (`-`) are allowed. |
| `active` | `boolean`| Defines whether the trigger is enabled (`true`) or disabled (`false`). |
| `condition` | `string` | A rule that validates the document before executing the trigger. See the [condition](#condition) section for more information. |
| `runAt` | `object` | The scheduled date to execute the action. See the [runAt](#runat) section for more information. |
| `weight` |`integer` | Percentage value used for A/B testing. See the [Setting up an A/B test with Master Data trigger](https://help.vtex.com/en/tutorial/setting-up-a-b-test--4xFzBMHYty6gmEosWGWMC0) article for more information. |
Expand Down