I have a document that has a multi-value date field.
I am trying to create an agent that will step through a view of these documents and create new documents, based on the multi-value field.
I other words, for each view entry, it will look at the multi-value date field and create a new document with a start date that matches each entry in the multi-value field.
Subject: Create New Docs based on values of Multi-Value Field
grab a collection of selected documents (or documents in a view or search formula if a scheduled agent.
Loop through date entries in a for/next loop and create your documents within the loop
Subject: RE: Create New Docs based on values of Multi-Value Field
How do I loop through the date entries? That is where I am having problems.
Subject: RE: Create New Docs based on values of Multi-Value Field
You will probably need to debug this…
dim item as notesitem
set item = doc.getfirstitem(“DateField”)
for i = 0 to ubound(item.values)
REM Create documents here referencing item.values(i)
next
Subject: RE: Create New Docs based on values of Multi-Value Field
Thanks! That Worked.