Discussions

Check out Oracle NetSuite upcoming events and conferences here
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Update your Profile with your Support type to get your Support Type badge.
Don't miss out on our Weekly Quiz! You only have until May 30, 2PM EST to comment your answers and earn rewards! Click here for more details.
Expand your NetSuite knowledge by joining our Ask A Guru Live sessions. RSVP on this event now.
Community Poll: What sort of content would you like to see more of?

Community Care and Share: Prevent an email from a purchase order

edited Jul 6, 2023 2:10PM in SuiteCloud / Customization


Email messages in NetSuite are linked to records and transactions. This connection allows NetSuite users to implement different kinds of customization around email messages. For example, let’s say that you want to prevent your users from sending an email from a purchase order if its status is still Pending Approval. The solution is to deploy a user event script with beforeLoad function on the message record and its logic should be like this:

  1. Check if the message record is related to a transaction.
  2. Check if the transaction is a purchase order.
  3. Check if the status of the purchase order is in Pending Approval status.
Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!

Leaderboard

Community Whiz

Quarter 2 ((Apr-Jun 2024) )

This Week's Leaders

This Month's Leaders

All Time Leaders