How to Create a new file in server directory

Hi,

I have a requirement to create a new file with .x12 extension whenever an activity is run.

Requirement

An Activity will have below three input parameters which will be coming from external source.

  1. Contents to be added into the new x12 file will be part of a Parameter page (Param.X12Content)

  2. Name of the file will be in a Parameter page (Param.FileName)

  3. Server path (Param.ServerName)

\XYZServer\SubFolder\EDI\NewFiles

Based of the above input parameters a new file has to be created every time when the utility is executed.

Thanks in Advance.

@santosh0115 Use pxCreateFile Activity and pass the parameter accordingly.

@Hitesh Jain Thanks for the suggestion. We have used Connect-File to achieve this functionality.