Copying and saving 'thing before change'

Hey,

I have created an app that provides version control for a Product thing within it.

I have a DB Trigger which copies ‘Product before change’ and saves it as a prior version of ‘Product Now’. Product has a lot of fields, so I use the ‘Copy a list of Things’ action, and use :converted to list to save manually mapping every field.

Problem is, the Product before change isn’t being saved, Product now is. Even though I have explicitly copied the Product before change:

Example: Fields ‘Version’ and ‘Yield’ were changed, but the Product before Change I save in the workflow above has the Product now values! :

My only option is to manually map every field from Product before change, which is not efficient and not scalable as I add/remove fields.

Does anyone know why this is happening?

Regards,
Ben
AppyKiwi

Assuming you’re not overwriting the result of step 1 in subsequent steps… I’m curious if you did a small “Create Thing” test and copy in just a few fields from “Product before change” to confirm the “before” values are actually accessible or some other bug is happening with the copy action in the DB trigger event.

They should save because I’ve built out change logs before that capture the before fields. I haven’t done anything like this recently so not sure if there’s something special going on with that Copy action.

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.