Nintex Connect

The Official Community Site for Nintex Software Products, including Nintex Workflow 2007, 2010 and 2013; Nintex Workflow for Project Server 2010; Nintex Reporting 2008 and Nintex Analytics 2010; Nintex Forms 2010; Nintex Live and Nintex SmartLibrary.
Welcome to Nintex Connect Sign in | Join | Help
in Search

How to create a simple text file?

Last post 05-09-2013, 11:18 AM by Murphybp2. 8 replies.
Sort Posts: Previous Next
  •  06-07-2010, 10:32 PM 10898

    How to create a simple text file?

    Hi,

    is it possible to create a simple text file using Nintex Workflow? I need to create a separate text file with some logging information about the decision users made during the workflow.

    Any ideas are greatly appreciated!

    --
      Ingo

  •  06-07-2010, 11:31 PM 10902 in reply to 10898

    Re: How to create a simple text file?

    Hi schoenfeld_i,

    what you can do, is create a text variable.  Throughout your workflow, append information to it, using the Build Dynamic String action.

    Then, you can use a Send Notification action to send yourself an email.  You can configure this action to add an attachment.  Here you specify a new file, give it a name, and for the body of the file, you click on the Insert Reference button and insert your variable.

    This should send you an email with a text file attachment.

    If you want to create a file in a different location, like a shared path or document library, there are no out of the box actions to do it.  You could create a custom action to do something like this.

  •  06-08-2010, 7:58 PM 10925 in reply to 10902

    Re: How to create a simple text file?

    Hi Vadim,

    thanks for your quick reply, it works fine. I was desperately looking for a way to create a text file, but overlooked the attachment capabilities. Using this way it might be possible to send the mail to another document library with enabled incoming mail and save the attachment there. It's the only way I see to place text files generated by NW actions into SharePoint, isn't it?

    --
      Ingo

  •  06-08-2010, 11:51 PM 10929 in reply to 10925

    Re: How to create a simple text file?

    Hi schoenfeld_i,

    I haven't actually tried to email with an attachment to a document library like that, but I don't see why it wouldn't work.

    Let me know how it goes.

  •  06-10-2010, 8:58 PM 10974 in reply to 10929

    Re: How to create a simple text file?

    Hi Vadim,

    it works right the way we need it. Thanks for your support!

    --
      Ingo

  •  08-07-2012, 2:36 AM 24384 in reply to 10974

    Re: How to create a simple text file?

    There is a very simple way of doing this by using HTTP-PUT:
    - Add a Nintex workflow action "Web Request" (section: Integration)
    - Enter the following parameters for the workflow action:
    -- URL: The complete URL under which the file should be stored, e.g. "myserver/mysite/mylibrary/sometextfile.txt"
     -- Select radio button "Other", in the field below enter "PUT"
     -- Select "Text" and enter the text in the big textbox below. This text may be composed of workflow variables as well.

  •  08-07-2012, 9:20 AM 24390 in reply to 24384

    Re: How to create a simple text file?

    Hi Dierk,

    That is an awesome solution.  Thanks for sharing that.

  •  08-26-2012, 10:47 AM 24711 in reply to 24390

    Re: How to create a simple text file?

    Based on Dierks idea, I made a blog post.  Hope it helps others:

    Creating a Simple Text File in a SharePoint Document Library

  •  05-09-2013, 11:18 AM 29707 in reply to 24711

    Re: How to create a simple text file?

    Is there a way to not only specify the name of the file, but also the Title?  I'd like to give my file a title different from the Name, but not sure if it can be done as part of the Web Request.
View as RSS news feed in XML
Powered by Community Server, by Telligent Systems