Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
NSC | Set Field Value if a Date Field is set to today's date
Create a Workflow that will set a default value (message) on a field if the preferred date field is set to today's date. The message must show on real-time update and on Edit mode of the record.
1. Navigate to Customization > Workflow > Workflows
2. Preferred Custom Workflow: Click Edit
3. Click State 1
4. Bottom right corner: Click New Action
5. Click Set Field Value
6. Basic Information:
○ Trigger On: Select After Field Edit
○ Triggering Client Fields: Select Name of Date Field
Example: Date
7. Condition:
○ Use: Select Custom Formula
○ Formula: Enter nlapiStringToDate(nlapiGetFieldValue('custbody171')).valueOf()==nlapiStringToDate(nlapiDateToString(new Date())).valueOf()
Note: Change the custbody171 to the internal id of the field you prefer to get the value of the date
