Question: When using the "InvokeWorkflow" activity, the import is not reflected in the namespace (called external library) properly. How can this be resolved?
Answer:
When using the "InvokeWorkflowFile" activity and encountering issues with namespace imports, you can do one of the following to avoid errors:
- Use Full Namespace for Each Variable:
- Example:vb
Copy code
Dim workbook as NPOI.SS.UserModel.IWorkbook = NPOI.SS.UserModel.WorkbookFactory.Create(filePath)
- This approach is recommended if your code within the activity consists of only a few lines.
- Example:
- Add Necessary Imports to the Main Workflow File:
- Type the necessary namespace and select it from the dropdown list.
- If the imports do not appear in the list, follow these steps:
- Click Import Arguments on the Invoke Workflow File Designer.
- Retry adding the necessary imports.
- By using one of these methods, you can ensure that the namespace imports are correctly reflected and avoid related errors.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article