Shopware icon

Shopware

Shopware

Actions778

App Script Condition → Create App Script Condition

AI-generated

Overview

This node operation creates an App Script Condition in the Shopware system. It is useful for automating the creation of script-based conditions that can be used within Shopware apps to define custom logic or rules. For example, a user can create a condition that activates certain app features based on specific criteria defined in the script.

Use Case Examples

  1. Creating a new App Script Condition with a unique identifier, name, and active status.
  2. Defining complex rule conditions and configuration JSON to customize the behavior of the app script condition.

Properties

Name Meaning
Response Data format for the response, either basic or detailed.
Id Unique identifier for the App Script Condition.
Identifier Identifier string for the App Script Condition.
Name Name of the App Script Condition.
Active Boolean flag indicating if the App Script Condition is active.
Group Group to which the App Script Condition belongs.
Script Script content defining the logic of the App Script Condition.
Config JSON configuration for the App Script Condition.
App Id Identifier of the app to which this condition belongs.
Created At Timestamp of when the App Script Condition was created.
Updated At Timestamp of the last update to the App Script Condition.
Translated JSON object containing translated versions of the condition.
App JSON object representing the app details associated with the condition.
Rule Conditions JSON array defining the rule conditions associated with the App Script Condition.

Output

JSON

  • id - Unique identifier of the created App Script Condition.
  • identifier - Identifier string of the created App Script Condition.
  • name - Name of the created App Script Condition.
  • active - Active status of the created App Script Condition.
  • group - Group of the created App Script Condition.
  • script - Script content of the created App Script Condition.
  • config - Configuration JSON of the created App Script Condition.
  • appId - App identifier associated with the created condition.
  • createdAt - Creation timestamp of the created App Script Condition.
  • updatedAt - Last update timestamp of the created App Script Condition.
  • translated - Translated JSON object of the created App Script Condition.
  • app - App details JSON object associated with the created App Script Condition.
  • ruleConditions - Rule conditions JSON array associated with the created App Script Condition.

Dependencies

  • An API key credential for Shopware Admin API

Troubleshooting

  • Ensure all required fields (Id, Identifier, Name, Active, App Id) are provided to avoid validation errors.
  • If the API returns authentication errors, verify the API key credential and base URL configuration.
  • Malformed JSON in Config, Translated, App, or Rule Conditions fields can cause request failures; ensure valid JSON format.

Discussion