generate document - selected items + additional data
Dear all,
I found this article which helps me a lot, as there is no "print selected item" addin available. So I select some items, generate a document with the info of these selected items and now I can print them nicely like I layouted the template. That is all great. The issue I am facing rigth now is, the selected entries shall get the Projectnumber where the user wants to use the selected items for. These projects are not within the sharepoint but the Infos have to be entered by the user.
What I do:
- open a prompt and write the return value into a variable
As I haven't found a solution of passing this variable to the "generate document", I loop over the selected items and write this number with "update item" into each selected item.
Now the loop works well but if I want to write the projectnumber above the loop, I want to access a single item out of the list of Items.
But this Auftragsnummer: [[@SelectedItems.0]].[[Auftragsnummer]] doesn't work.
Does anyone has an idea how to solve this issue? Either accessing a specific element from my selected items or to pass a separate value to the document? Or even a completely different approach to solve this :)
Many thanks in advance
Please sign in to leave a comment.
Comments
0 comments