I am trying to use a refreshVariable with refreshAfter: "RECORD_ACTION" in a Task From, but the variable does not get refreshed.
Is the use of refreshAfter: "RECORD_ACTION" only possible in a record form, or am I missing something.
I start my from with:
a!localVariables( local!contractVersion : a!refreshVariable( value: rule!TML_GetMostRecentContractVersion(ri!contract.id), refreshAfter: "RECORD_ACTION" ), ... )
And in the middle of the form there is a recordActionField:
a!recordActionField( actions: { a!recordActionItem( action: 'recordType!{eb81a0e8-fa2b-4197-960f-cb29539fee9a}Contract.actions.{f1c42920-fefd-4519-b8f7-7d3e8199868b}newContractVersion', identifier: ri!contract.id ) }, style: "TOOLBAR", display: "LABEL_AND_ICON", align: "END", openactionsin: "DIALOG" )
the record action is executing without a problem, but the refreshvarable is not working.
Discussion posts and replies are publicly visible
I believe you have to set your record action to open in a dialog. Per the documentation: Finally, you can configure a local variable to refresh after a record action, such as a related action or a record list action, configured within a record type object that completes from a dialog window within the Record Action Component.
Hi Peter,
Thanks for your quick reply.
The action was opening in a Dialog since this is the default behaviour.
I also tried explicitly setting the value openActionsIn: "DIALOG" to be sure, but this did not help.
In the mean while I also tried to add this behaviour to a Record Summary page, and this gives the same error, It is therefore not specifically related to task forms.