I was trying to …
- I use one form with Staging entity to update Target entity using action button Transfer
- Workflow is modelled in very simple way - I transform the Staging entity into Target entity using just data inside Staging entity because it has reference lookup to target entity.
- To save values, I use Data Structure with
UPSERT
option enabled on entity. - On the target entity, there is Workflow OnRecordCreated
- I edit staging entity and press button transfer
I was expecting …
- Updating values inside Target entity.
- I expect state workflowOnRecordCreated wouldn’t be executed. There is serial number generation and my Target entity record is getting renumbered
Instead I’ve got …
Updating values inside Target entity.
I expect state workflowOnRecordCreated wouldn’t be executed.
Workaround
Generate new serial number only if the field is not filled.
Notes
I have a workaround inside my solution, so it is not an urgent issue, but I believe UPSERT when doing update should not call OnRecordCreated state workflow.
I can model it into model-tests but into which package it should go? Into automated tests?