Can you please advise how a project with an attachment published from Easy Morph Desktop to the Easy Morph Server would send the attachment using the e-mail tool if the file path is on the local machine where Easy Morph Desktop is installed? Can you explain the solution please.
EasyMorph operates with files (e.g. sends attachments) located on the same machine where the workflow is executed. If you publish a project from Desktop to Server, there are two ways how you can specify file paths that donât require changing after publishing from Desktop to Server:
Use relative paths. Every file path field in EasyMorph allows using a relative path. Of course, you need to make sure that the necessary files exist on Server in the folders specified by the relative paths.
Use calculated paths. The project can have a parameter named, for instance, âBase pathâ. Give it a value actual for your Desktop, e.g. C:\files or some other location where the files are stored. Then a file path can be calculated using a calculated parameter with an expression, for instance:
{Base path} & '\data\input.csv'
When you publish the project to Server, create the âBase pathâ parameter in the Server task and bind it to the âBase pathâ parameter in the project (see tab âParametersâ in Server task settings). In the task parameter, you can specify the base path that points to the folder with files on the Server, e.g. C:\EasyMorph\Data. When the task is executed on Server, it will assign the âBase pathâ parameter of the project with the âBase pathâ parameter of the Server task and execute the project. Therefore the project will use the base path from Server, not from Desktop.
I have tried what you stated above by publishing my workflow to the server with the folder paths pointing to the server. However when trying to execute it says that there is no data to import, even though I can see the excel file inside the EM server folders. Is there something I am missing or something else that needs to be configured?
path to the project: C:\Public Folders\Default\Project Name
path to the file: C:\Public Folders\Default\Project Name
File Path Settings Action is a calculated column: C:\Public Folders\Default&[FileName]
The file was downloaded from Sharepoint to the EM Sever and I can see it next to the project on the server interface.
Why do you need to calculate Path if the result is the same as column âFile name with full pathâ?
Itâs actually very simple. Nothing else should be configured. You calculate the file path and use it in an import action. Thatâs it. No magic switches, buttons, or options.
Can you also post a screenshot of the âImport from Excelâ action and a screenshot of the error?