Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Check if DCR is "New" or "Edited" in Workflow
frogman
Hi,
I may be being really dumb but am still a novice so....
I'm writing a workflow for which I need to establish if a DCR is new or has been edited. Is there a CLT that will help me or do I have to manually loop through all generated content to find the PrimaryDCR EA for the DCR in question?
AAHGA.
Find more posts tagged with
Comments
Adam Stoller
You could do something like:
iwattrib vpath-to-file revisionnumber
If the value returned is '0' (zero) the file could be considered "new" - not yet submitted.
If the value returned is anything greater than 0 the file could be considered "edited"
If you use the command:
iwfilestate vpath-to-file
you can verify whether the file is modified or not.
Hope that helps
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com
frogman
Many thanks Ghoti, exactly what I was looking for. Perhaps I should think a liitle harder and I might come up with the solutions myself!