How can I add fields such as Date,Number of Pages into the Fax Cover Sheet using FaxCoversheetOptionType?
The Date and Number of Pages is put on the cover sheet automatically. If you want anything else you will have to have your own cover sheet created and use a CSV for the inserts for the submit.
Thank you for the reply.
Can you please tell me or give a sample code on how to create coversheet and use a CSV for the inserts for the submit?
I have seen a sample(sample is attached) but I'm not understanding where is the mapping from csv file happenning? Should we add a csv file to the project?
In your sample you the ATTN is going to get "i3" put into it. That is what every recipient will see. If you are sending to multiple recipients and want to personalize each one you would use a CSV file with INS_1 - INS_999 which would be specified on your cover sheet. Customer Care can assist with creating a cover sheet or you can use one of our standard ones. You should talk to you Sales Person or PreSales Engineer about this.
I have attached a sample CSV file.
The JobSubmit Fax sample shows how to add the CSV file.
Thank u.
This is the code for my coversheet
FaxCoversheetOptionType coversheet = new FaxCoversheetOptionType();
coversheet.UseCoversheet = YesNo.yes;
EncodableStringType endoString = new EncodableStringType();
coversheet.CoversheetName = "webex";
coversheet.CoversheetFrom = new EncodableStringType();
coversheet.CoversheetFrom.Value ="ABC";
coversheet.CoversheetTo = new EncodableStringType();
coversheet.CoversheetTo.Value = faxObjList.FirstOrDefault().UserEmailAddress;
coversheet.CoversheetAttn = new EncodableStringType();
coversheet.CoversheetAttn.Value ="XYZ";
jsRequest.Message[0].JobOptions.FaxOptions.FaxCoversheet = coversheet;
The to,from and Attn is working fine.
I want to add fields like Date, Number of pages,Comments,Fax number,Phone number on the coverpage. How can I add these?
Date and Number of Pages is done automatically by our system if it is on the cover sheet. Comments would be the Body document.
To do additional you would have to have a cover sheet that has those fields set up and use a CSV file. You would specify all in the CSV file and remove the ATTN, To, etc. from your code.
I have attached my coversheet template. How can I fill all these fields?
In the coversheet options we have only these fields
private YesNo useCoversheetField;
private string coversheetNameField;
private EncodableStringType coversheetToField;
private EncodableStringType coversheetFromField;
private EncodableStringType coversheetAttnField;
Only these fields can be assigned during runtime. How will assign the other fields even if I have the csv file having all the data? Can you please send me a sample code for this?
You would remove the above code from yoour app. The column names in the CSV would match the field names in the cover sheet. Our system tthen matches them up for each recipient.