Problem: I want to send a custom script with a document to DAS that will:
- refresh the document
- send the document to the REPOSITORY as opposed to a list of users
Using the following:
Application.ExchangeMode = RepositoryMode
Application.Interactive = False
doc.refresh
doc.Send(“SomeGroup”)
Application.Interactive = True
works only if I run the script as the user that owns the document.
When I run as a user, the script works fine. With “Interactive” set to False,
the document is automatically (or at least appears to be in my testing)
overwrittin in the repository in the “SomeGroup” group. With Interactive set
to True, then as a user I get the opportunity to specify “Replace” or “No”
when prompted to overwrite the document in the repository.
As DAS, running the custom script, the Interactive = False is required,
otherwise the dialog box goes unanswered and the script generates an error.
However, since the DAS user does not own the document in the SomeGroup
repository group, it will not send the document to that group. I am
guessing that if the document did not exist, then the operation would work.
However, there does not appear to be a mechanism in the scripting language to
delete a document from the repository.
I am guaranteed that the document I am trying to send will exist in the
repository, since the script for DAS starts out by retrieving the document
from the repository. Yet I cannot seem to replace the document with a
refreshed copy running through DAS.
Does anyone have any suggestions? Hints? Or is this something that can even
be done?
All help / comments cheerfully accepted…
Regards,
Dave Rathbun
Integra Solutions
www.islink.com
Listserv Archives (BOB member since 2002-06-25)