RE: 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?

jeremy Rookie Asked on September 9, 2020 in SuiteScript.
Add Comment
3 Answers

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

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.