Question
2
Replies
45
Views
Posted: 4 weeks ago
Last activity: 2 weeks 5 days ago
Solved
How to attach a excel file present in the service export directory to a work object?
How to attach an excel file present in the service export directory to a work object?
As you mentioned that the excel is present in service export directory, means you can read it. Read the excel file from the export directory.
1.Create an activity. In the activity, do the following.
2.Create a page of Data-WorkAttach-File class context.
3.Then encode the excel data stream into Base64.
4.copy the encoded value to pyAttachStream property under page step created in step 2
5. save the changes to WO.