Posted: 24 Mar 2021 18:00 EDT Last activity: 6 Apr 2021 15:48 EDT
Issue with Savable Data Page: Data save options When rule - unexpected behavior
please find a summary of my issue here and screenshots of all relevant rules, tracer and clipboard pages further below.
In which context is the when rule of a data save option evaluated?
I am experiencing unexpected behavior with savable datapages that have multiple save options. I am aware that each save option's when rule is evaluated and when true then the save option is performed (thus allowing us to perform multiple save options in a single datapage-save operation).
The primary question is: in which context is the when rule of a data save option evaluated?
If the answer to that is not the data page itself, then my follow up question would be how to write a when rules that evaluates a datapage save option based on the data on the datapage at the point in time when the datapage-save operation is called?
Here is what I am experiencing in this scenario (screenshots further below).
There's an OOTB flow calling datapage-save for the D_Contact_Details datapage.
We have specialized this data page to have multiple Data save options, which trigger based on when rules named UpdateExternalContactSOR and WriteToPegaContactSOR.
In Tracer we see these rules executed in the context of a page named =unnamed=.
The first data save option, which uses the UpdateExternalContactSOR When rule evaluates to false in tracer. That is because it checks certain fields to have certain values but the =unnamed= page is completely empty.
If that When rule would have been executed in the context of the datapage itself, it would have evaluated to true and executed the save option.
I am looking for a way to execute that save option, but only if certain fields on the datapage have certain values and have a when rule for that. Is there a way to achieve this and is it expected that data save option when rules are evaluated in an empty =unnamed= page context?
Thank you for your support!
***Edited by Moderator Marissa to update Support Case Details***