Skip to content

Add SideEffect for Action to update criticality on stock change #5

@sebastianesch

Description

@sebastianesch

Adding the SideEffect to the action submitOrder updates the criticality in the list report on action execution.

cat-service.cds:

entity Books as projection on codejam.Books actions {
            @Common.SideEffects: {TargetEntities: ['/CatalogService.Books/RootEntity']}
            action submitOrder(quantity : Integer) returns {
                stock : Integer
            };
        };

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions