Hi rebecar369 -
I see what you're trying to do, but I'm not sure that behavior is supported by the product.
Check the docs:
https://docs.appian.com/suite/help/19.2/Write_to_Data_Store_Entity_Smart_Service.html#inputs
onSuccess behavior is documented…