Shopware icon

Shopware

Shopware

Actions778

Custom Field Set Relation → Create Custom Field Set Relation

AI-generated

Overview

This node operation creates a new Custom Field Set Relation in the Shopware system. It is useful for users who want to programmatically add relations between custom field sets and entities within Shopware, enabling customization and extension of data models. For example, a user can create a relation linking a custom field set to a specific entity like a product or customer, facilitating tailored data management.

Use Case Examples

  1. Create a custom field set relation linking a custom field set to a product entity with specific IDs and optional timestamps.
  2. Use the node to add detailed custom field set relations with nested custom fields and product configurations.

Properties

Name Meaning
Response Specifies the data format for the response, either basic or detailed.
Id The unique identifier for the custom field set relation to be created.
Custom Field Set Id The identifier of the custom field set to relate.
Entity Name The name of the entity to which the custom field set is related.
Created At Optional timestamp indicating when the relation was created.
Updated At Optional timestamp indicating when the relation was last updated.
Custom Field Set A JSON object representing the custom field set details, including nested custom fields, relations, and product configurations.
Request Options Settings for request behavior such as batching, SSL certificate validation, proxy usage, and timeout duration.

Output

JSON

  • id - The unique identifier of the created custom field set relation.
  • customFieldSetId - The ID of the related custom field set.
  • entityName - The name of the entity related to the custom field set.
  • createdAt - Timestamp when the relation was created.
  • updatedAt - Timestamp when the relation was last updated.
  • customFieldSet - Detailed JSON object of the custom field set including nested fields and relations.

Dependencies

  • Requires Shopware API credentials for authentication.

Troubleshooting

  • Ensure all required fields (Id, Custom Field Set Id, Entity Name) are provided to avoid validation errors.
  • Check API credentials and base URL configuration if authentication fails.
  • If SSL issues occur, consider enabling the 'Ignore SSL Issues' option in request settings.
  • Timeout errors can be mitigated by increasing the timeout setting in request options.

Discussion