Modify in pre workflow

Hi,

When creating a booking, we sometimes create a new address from within the booking sheet. The Address sheet opens in a new window.

When saving the address, the system redirects back to the Booking sheet immediately — before the post-workflow has completed.

I would like to:

  1. Geocode the address via an external API.
  2. Store latitude/longitude on the address record.
  3. If the geocode confidence is low, allow the user to:
  • Review suggested results
  • Potentially adjust the coordinates manually

Nr 3 is an important step for making sure we are not getting faulty coordinates for our drivers

My understanding is that post-workflow runs after save and redirect, so it does not allow user interaction.

I therefore tried using pre-workflow, but it seems entry.setFieldValue() (or entry.set) does not work there.

Questions:

  • Is it possible to modify field values in pre-workflow before saving?
  • Is there a recommended pattern for validating via external API and populating suggestions before allowing save?
  • Would throwing an error when confidence is low be the only supported approach?

Ideally, I would like to:

  • Call the external API
  • Populate suggested coordinates
  • Let the user review them
  • Block save only if confidence is too low and no manual override is made

Any guidance on best practice would be appreciated.

Thanks.

1 Like