Hi,
I used the code i found on the forum for jobsubmit and updated the path for attachments and csv list.
But the job is not getting created.
Please find attached the code.
Can you tell me what is going wrong here?
1) You are passing a string to ReadandEncodeFile and it is expecting a file for the message body.
2) If the above worked you then add it to the JS_Documents as a HTML file, it is a text file. If you specify HTML the file has to be HTML.
Tom
I am passing the string for the path where the body is given.
// Setup Document 1 - Text File to be body message
);DocData.format = EasyLinkJobSub_ws.
.text;DocData.Value = File;
The status code comes out as 0
ok...so here is the summary
I dont get an exception now. Following are the changes I have made
1. I am passing the path of the text file to ReadandEncodeFile.
2. I changed the JS_Documents to "text", there is no "error in parsing exception".
But, the status code comes out as 0. No job is created.
I don't see any evidence on our test system of a job submission from your ID.
If you have the Result XML from your attempted API call, please locate and provide the value of the ProcessingID from that result. With that string, we can find and investigate what happened to your request.
I see the below in the result file:
<Status>
Your request specifies the destination list as a stored list on the system:
<Destinations>
This is weird because I do have the .csv file with that name in the same location.
I tried using Table type, but it does not have same methods as list.
Do you have any sample code using the Table type? Is there any other way to provide the Input List file?
Any updates?
See this sample for an example of how to use a CSV list in a job submit request. Although the sample is for fax, the addressing portion applies to your email job as well.
Thanks!!! I used the above example, but i got a new error:
2013 means just want it says - that there are no destinations in the input.
This is what your XML looks like:
I tried correcting all data, changed the names, changed format but it still doesn't work.
Attached is the code!!
Please advice...
You are close. The Docdata.format shoud be base64, which is commented out and replaced with text.. And the myFileName should be just "CSVList.csv". That is the name given on our side.
I still get the same error!! Error code 2013
i made some changes and now i get a new error:
<Error>
Please post your new code.
I could run the job.
Thanks a tonne for the help