Skip to Content
0
Aug 11, 2021 at 03:21 PM

Side effect on Fiori Elements Action

1174 Views

Hello Experts!

I'm facing an issue when annotating an action with Side Effects in my odata v4 service. In accordance with the documentation (under "Side effect after executing an action" for odata v4) I've annotated my action in the following way:

// schema
entity MyEntity {
    valueChangedByAction: String;
}

// service
service MyService {
    entity MyEntity as projection on db.MyEntity actions {
        action myAction returns MyEntity;
    };
}

// Annotation
annotate MyService.myAction with @(
    Common.SideEffects: {
        TargetProperties : [
            // Unsure what to put here, tried many variations
            // valueChangedByAction
            // MyEntity.valueChangedByAction
        ]
    }
);

Calling the action does not refresh the desired value. If someone could point out what I'm doing wrong it would be much appreciated!

Best regards,

Jibbril