on 2022 May 04 9:52 PM
I am looking to use the documented functionality for overriding actions in a javascript rule, in this case for a CreateEntity call. (I have it working fine for a DeleteEntity).
My question is: Can I only override the properties, or can I also override other sections of a CreateEntity action like Headers or CreateLinks ?
Thanks
Request clarification before answering.
You can override everything if needed. The contents of the action file would be in the Properties block of the override. If you were also overriding properties those would be in a Properties block within the override properties block.
return context.executeAction({
"Name": "/MDKDevApp/Actions/OData/UpdateServiceViaRule.action",
"Properties": {
"Target": {
"ReadLink": readLink
},
"Properties": {
"OrderDescription": description
},
}
});
This is an update override but it shows how if you are overriding properties in you need the second property block,
Overrides should also support nested overrides but I wouldn't necessarily say it is easy to follow.
return context.executeAction({
"Name": "/MDKDevApp/Actions/Messages/Message.action",
"Properties": {
"Message": "Message 1",
"Title": "Title 1",
"OnSuccess": {
"Name": "/MDKDevApp/Actions/Messages/Message.action",
"Properties": {
"Message": "Message 2",
"OnSuccess": {
"Name": "/MDKDevApp/Actions/Messages/Message.action",
"Properties": {
"Message": "Message 3",
"Title": "Title 3"
}
}
}
}
}
})
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
64 | |
8 | |
7 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.