Reply To: Create New Document in directly in Library instead of just upload existing

Forums vLooup for SharePoint Create New Document in directly in Library instead of just upload existing Reply To: Create New Document in directly in Library instead of just upload existing

#33693
Brian Oster
Participant

So very close. I have it creating documents from my Templates Doc Lib and inserting into the target Doc Lib but I can’t

a) get it to link to the parent
b) set additional properties

Here is the relevant section of js:

` if (res.count > 0)
{
var item = res.items[0];
var uRes = spjs.utility.updateItem(
{
“listName”: targetLibGUID,
“id”: item.ID,
“data”:
{
“Project_x0020_ID”: getFieldValue(“ID”),
“Category”: “Special Instructions”
}
});

See attachment for vLookup Query Definition. I even tried hard coding the Project ID value just to see if it would work and it still would not set that property.

  • This reply was modified 2 years, 10 months ago by Brian Oster.