How can I capture the value of a field that will be deleted in a bundle update?

A custom record change occurred in a source account bundle that will delete a field in downstream bundles when they’re updated. I expected to be able to capture the value of this field using the “beforeUpdate” hook in the bundle install script, but by the time that hook is executed, the object transitions have already occurred and the field is gone. It is like “beforeUpdate” really means “midUpdate”, because objects have already been updated. System notes are turned off for the affected record type, so I cannot use those to capture old values either. Bundle anchoring is not an option. Anyone have other ideas?

Rookie Asked on September 9, 2020 in SuiteScript.
Add Comment
3 Answer(s)

The safest thing to capture the value of the field before the bundle update occurred is to create as script that will capture the values and manually execute this before running the said bundle process.

Rookie Answered on September 10, 2020.
Add Comment

If field is being removed with bundle, it is not possible to get it back. This is a reason while removing bundle we need to backup all fields’ values.

Beginner Answered on September 14, 2020.
Add Comment

The way I look at it is you have two options.  You can create another new field on the item record and copy the value over into the new field (that won’t be deleted).  Or you can run a saved search for all of the items along with that value and export it to excel.  Then once the update is done, create a new field and upload the info.  I recon technically both options involve a new field it is just whether you want to put the data back in before or after the update.

Intermediate Answered on September 22, 2020.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.
  • This site made possible by our sponsors:   Tipalti   Celigo   Limebox   Become a Sponsor   Become a Sponsor