Create ADDDAYS, ADDWEEKDAY, ADDMONTHS, ADDYEARS expressions
- Topics:
- Custom Forms
CREATED FOR:
- Experienced
- Admin
- Leader
- User
In this video, you will learn:
- What the ADDDAYS/ADDWEEKDAY/ADDMONTHS/ADDYEAR expressions calculate
- How to create an ADDWEEKDAYS data expression in a calculated field
Transcript
In this video, you’ll learn what the ADDDAYS, ADDWEEKDAYS, ADDMONTHS, and ADDYEARS expressions calculate, and how to create an ADDWEEKDAYS data expression in a calculated field.
The ADDDAYS, ADDWEEKDAYS, ADDMONTHS, and ADDYEAR expressions allow you to add a certain number of calendar days, weekdays, months or years to an existing data field. For instance, requests submitted to the creative service team have a 14-day turnaround time. However, each request has an SLA attached, it needs to be reviewed within three days of the day the request was entered into Workfront. So to capture the SLA review due date, the ADDWEEKDAYS or ADDDAYS expression can be used within a calculated field.
These expressions typically include three things, the name of the expression, in this case ADDWEEKDAYS, and two data points, typically a start or completion date and the number of days, months, or years to add to that date. First, consider if you want the calendar dates, which would include weekends.
For this example, we’re going to use weekdays to focus on the working days specified by the default schedule created in Workfront. Once that’s decided, you can start building the expression.
We’re going to use the SLA review due date as an example.
So in the custom form select Calculated in the field options, fill in the label instructions if needed, and format fields. Note, because this field just focusing on what date the task will be due, which includes the review, the format should be a date.
Once you’re ready to start building your expression, start by searching for the expression in the expression search box.
When found, click it to add it to the calculation box. At this point, we need to put in our data points so the expression knows what information to use in order to calculate the due date. In this example, we’re going to start with the day the request was entered into Workfront also known as the entry date. Go to the field search box, and start typing the name of the field.
When it appears in the list, click on it to put it in the calculation box. You’ll notice the system automatically starts adding the necessary formatting to make the calculation work in Workfront. If this were the sole data point you needed for the expression, you’d save it and move forward.
However, there are other data points needed for this calculation.
In this example, we need to add the SLA review timeframe, three days to the predetermined 14-day turnaround time.
Since it’s simply a number, in this example, all we need to do is add a comma and the number three to our expression.
For more information on calculation structure, see the Learn the data expression structure tutorial.
Once done, save the field and the custom form.
At this point the calculated field can be used in different ways, like a view or a custom report to view or group the results. The ADDDAYS, ADDWEEKDAYS, ADDMONTHS, and ADDYEARS expressions not only allow you to create a more accurate timeframe for due dates, but grant your teams the ability to collaborate better and automate workflows within Workfront. -
Additional examples
Below are a few additional ADDDAYS/ADDWEEKDAY/ADDMONTHS/ADDYEAR expressions Adobe Workfront customers have created.
Should have been done by
The customer wanted to know when the task should have been completed based on the Actual Start Date and the Planned Duration. The Projected Completion Date won’t work in this case because it can move if the task is late, and the Planned Completion Date doesn’t help if there are delays in prior tasks.
The expression created was ADDDAYS({actualStartDate},{durationMinutes}/480)
Time in the Duration field is stored in minutes. So in this expression, the Duration field cannot stand alone if the time is to be reflected in days. For that to happen, the Duration has to be divided by 480 minutes (480 minutes = 8 hours = 1 Day)
This is why the second value slot contains (Duration/480).
Invoice completion date
This example includes not only uses the ADDDAYS expression but a custom field previsouly created and saved in the custom form.
The customer is capturing the date an invoice is submitted through a custom date field titled “Invoice Submission Date”.
Once submitted, the invoice must be completed and filed within 30 days. To automatically produce that completion and filing date, an ADDDAYS calculated field is used along with the “Invoice Submisison Date” custom field. The expression looks like this:
ADDDAYS({DE:Invoice Submission Date},30)
Workfront
- Workfront Tutorials
- Administration and Setup
- Organizational setup
- Manage deleted items
- Configure system defaults
- Layout templates
- What are layout templates?
- Find layout templates
- Customize terminology with layout templates
- Customize the Main Menu with layout templates
- Add and manage pins through a layout template
- Customize Home with layout templates
- Assign and manage access to layout templates
- Customize object areas with a layout template
- Customize project details with layout templates
- Customize project headers with layout templates
- Customize reporting lists with layout templates
- Email and In App Notifications
- Create and manage users
- Approval processes and milestone paths
- System performance and maintenance
- Project finances
- Custom Data
- Custom Forms
- Calculated expressions
- Get started with calculated fields and expressions
- Learn the data expression structure
- Understand Date & Time and Mathematical expressions
- Create ADDDAYS, ADDWEEKDAY, ADDMONTHS, ADDYEARS expressions
- Use the Calculation Editor
- Create DATEDIFF and WEEKDAYDIFF expressions
- Create a SUB, SUM, DIV, or PROD data expression
- Use the CONCAT expression in a calculated field
- Create LEFT/RIGHT expressions
- Use the ISBLANK and CONTAINS expressions
- Create an IF text expression
- Things to know about calculated field expressions
- Manage work
- Projects
- Understand basic project creation
- Navigate the project page
- Learn four ways to create a project
- Fill in the project details
- Get started planning a project
- Take a project live
- Get started managing a project
- Find projects
- Share a project
- Understand the project team
- Understand project communication
- View project information
- Track overall project progress
- Track work progress with project metrics
- Understand the Gantt view
- Understand the Board view
- Tasks
- Issues/requests
- Request queues
- Portfolios
- Approval processes and milestone paths
- Create and manage project templates
- Project timelines
- Close a project
- Project finances for users
- Intermediate projects
- Projects
- Reporting
- Basic reporting
- Understand reporting elements
- Understand reporting components
- Create a basic grouping
- Create a basic view
- Add basic conditional formatting to a view
- Create a basic filter
- Understand the new filter experience
- Create basic filter activities
- Create a simple report
- Create a task report
- Copy a report
- Create reports with charts
- Create a matrix report
- Create dashboards
- Send and share reports
- Understand report settings
- Intermediate reporting
- Create filters with user-based wildcards
- Create filters with date-based wildcards
- Create OR statements in filters
- Understand built-in project filters
- Understand built-in task filters
- Understand built-in issue filters
- Understand basic text mode for filters
- Understand basic text mode for views
- Understand basic text mode for groupings
- Create custom prompts
- Advanced reporting
- Calendar reports
- Basic reporting
- Manage resources
- Workfront Goals
- Workfront Planning
- Integrations
- Adobe Creative Cloud
- Adobe Experience Manager Assets Essentials
- G Suite
- Jira
- Microsoft Outlook
- Microsoft Teams
- Adobe Workfront for Microsoft Teams Overview
- Install Adobe Workfront for Microsoft Teams
- Access Adobe Workfront from Microsoft Teams
- Search for and share Adobe Workfront items in Microsoft Teams
- Create Adobe Workfront tasks from Microsoft Teams
- Submit Adobe Workfront requests from Microsoft Teams
- Manage Adobe Workfront notifications in Microsoft Teams
- Slack
- Fusion
- Welcome to Workfront Fusion
- Understand the basics
- Initial scenario design walkthrough
- Initial scenario design exercise
- Mapping panel and formula editor
- Mapping panel important notes
- Beyond basic mapping walkthrough
- Beyond basic mapping exercise
- Use filters
- Filters walkthrough
- Filters exercise
- Access previous versions walkthrough
- Access previous versions exercise
- Universal connectors and routing
- Universal connectors exercise overview
- Introduction to universal connectors walkthrough
- Introduction to universal connectors exercise
- Understand routers
- Routers walkthrough
- Routers exercise
- Common routing patterns
- Routing patterns walkthrough
- Routing patterns exercise
- Set-it and get-it
- Get/Set variables walkthrough
- Set/Get variables exercise
- Iteration and aggregation
- Execution history and scheduling
- Beyond basic modules
- Data structures and data stores
- Final functional bits and bobs
- Troubleshooting and error handling
- Workfront Fusion administration
- Design optimization and testing
- Workfront Proof
- Learn the benefits of proofing
- Understand the difference between a document and a proof
- Proofing viewers explained
- Administration and setup
- What is an automated workflow template
- Customize proof comment actions
- Customize proof decision options
- Understand email alerts and proof notifications
- Proof roles and email alerts
- Report on proofs
- Set default at risk proof settings
- Set up global proof settings
- Set default proof roles
- Set up proof account default settings
- Settings for proof users
- Upload proofs
- What is a proof version
- Who uploads the proof versions
- Convert a document to a proof
- View and compare proof versions
- Upload a proof version
- Manage proof versions
- Upload a proof of a video
- Upload a proof of a website
- Upload a proof with a basic workflow
- Upload a proof with an automated workflow
- Upload with a drag and drop
- Combine multiple files into a single proof
- Proof workflows
- Review and approve work
- Workfront DAM
- System setup
- Metadata and keywords
- Brand Connect customization
- Workfront DAM user: Contributor
- Understand Workfront DAM as a contributor
- Understand asset management as a contributor
- Understand finding assets as a contributor
- Understand lightboxes as a contributor
- Understand metadata and keyword best practices
- Work with assets as a contributor
- Send a file as a contributor
- Publish assets as a contributor
- Add a Workfront DAM link
- Brand Connect user
- Home
- Agile
- Best Practices
- Agile
- API Explorer
- Business case and portfolio optimizer
- Communication
- Custom forms
- Custom reports
- Dashboards
- Documents
- Filters, views, and groupings
- Job roles
- Layout templates
- Licenses and access levels
- Onboarding and adoption
- Organization units
- Portfolios and programs
- Preview sandbox
- Project, task, and issue preferences
- Project templates
- Proofing
- Request queue
- Resource Planner
- Resource pools
- Scenario Planner
- Schedules
- Statuses
- System performance and maintenance
- Text mode reporting
- Timeline planning and management
- Timesheets and logging time
- Utilization
- Workfront Goals
- Workload Balancer
- Workfront for executives