While designing a workflow we have a use case in which we want to search for a document using barcode in the repository and update the metadata value of the document.
We are using workflow SDK Script to achieve this. We have found a method that searches the documents but doesn't seem to work.
protected override void Execute()
{
using (Search search = new Search(session)){
search.Command = "";
search.Run();
//Get Search Results here
}}
from where i will get the session object in Execute method?