I would appreciate some assistance with a vbscript problem that I am having
performing an upload to SPS. I have a basic VBscript that allows me to save
documents to the SPS portal. I can include meta-data for 'Title', 'Author',
'Description' but 'Keywords' is giving me a problem. I am using the
BaseDocuments Profile.
MsgBox("Adding meta-data to document")
oDocument.Title = strTitle
oDocument.Author = strAuthor
oDocument.Keywords = strKeywords
I know that the Author and Title variables are working because I verified their
values with a message box and in SPS. If I literally declare a string value in
quotes for strKeywords then it works but not if I use a variable. What am I
missing?
For example, if I type the following code, oDocument.Keywords =
Array("variable1", "variable2") it will include the string in quotes and save
them to SPS. But I want to use variables to make the script dynamic. How do I
get it to include the value of the variables?