Skip to main content
Jo_2013
Known Participant
November 15, 2016
Answered

Import data object not working

  • November 15, 2016
  • 2 replies
  • 685 views

I need to import a csv file as an attachment from a file directory in a pdf document.

This is the file directory location:

C:\Temp\trm\output.csv

Here is the script:

this.importDataObject("Unknown","c/Temp/trm/output.csv");

When the script is run from the console, the console reports back as false.

I think the problem may be with defining the cName?

Any assistance most appreciated thank you.

This topic has been closed for replies.
Correct answer try67

Add a forward-slash at the start of your file-path.

2 replies

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
November 15, 2016

Add a forward-slash at the start of your file-path.

Jo_2013
Jo_2013Author
Known Participant
November 15, 2016

Thank you very much for your assistance. Working perfectly now, importing the csv file as an attachment to the pdf. this.importDataObject("output","/c/Temp/trm/output.csv");