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
2 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 5 days ago.
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