Thank you for you response. Followed the below and created WORKORDER.DUPLICATE script, however, the script is not setting the workorder number as expected. I added a set DESCRIPTION to test if it would set it and that worked. Unfortunately it is not seeting wonum. Here's the script:
WoNum = mbo.getString("WONUM")
# Check the app:
if app == 'TTWOTRACK':
# Get the Mbo value so that a manual autokey generation can be triggered
wonumValue = dupmbo.getMboValue("WONUM")
# Trigger an autokey
wonumValue.autoKey()
# Set autokey value for WONUM"
dupmbo.setValue("WONUM","TT" +WoNum)
# Set DESCRIPTION attribute
dupmbo.setValue("DESCRIPTION", "TESTDUPWO")