Unable to use custom coversheet

Hi,

I am trying to use a custom covertsheet for the sample fax which I am trying to send. I have prepared the word document by modifying an existing cover sheet which I have downloaded from https://test2.fax2mail.easylink.com/. Below is the code which I am using:

    #region Setup Covert page details
            JobSubmit.FaxCoversheetOptionType CoverSheet = new JobSubmit.FaxCoversheetOptionType();
            CoverSheet.UseCoversheet = JobSubmit.YesNo.yes;
            if(JobSubmit.YesNo.yes == CoverSheet.UseCoversheet)
            {
                //use the details in here
                CoverSheet.CoversheetName = "cs_temp_02";
            }
            #endregion
    #region Setup the inserts to the coverpage
            JobSubmit.InsertListTypeInsert[] inserts = null;
            if (JobSubmit.YesNo.yes == CoverSheet.UseCoversheet)
            {
                inserts = new JobSubmit.InsertListTypeInsert[9];
                inserts[0] = new JobSubmit.InsertListTypeInsert();
                inserts[0].number = "1";
                inserts[0].Value = "To Santa";
                inserts[1] = new JobSubmit.InsertListTypeInsert();
                inserts[1].number = "2";
                inserts[1].Value = "North Pole Toy Factory";
                inserts[2] = new JobSubmit.InsertListTypeInsert();
                inserts[2].number = "3";
                inserts[2].Value = "18568809090";
                inserts[3] = new JobSubmit.InsertListTypeInsert();
                inserts[3].number = "4";
                inserts[3].Value = "1-800-SANTA";
                inserts[4] = new JobSubmit.InsertListTypeInsert();
                inserts[4].number = "5";
                inserts[4].Value = "Children Foundation";
                inserts[5] = new JobSubmit.InsertListTypeInsert();
                inserts[5].number = "6";
                inserts[5].Value = "18568809091";
                inserts[6] = new JobSubmit.InsertListTypeInsert();
                inserts[6].number = "7";
                inserts[6].Value = "1-800-ANGELS";
                inserts[7] = new JobSubmit.InsertListTypeInsert();
                inserts[7].number = "8";
                inserts[7].Value = "child@angels.com";
                inserts[8] = new JobSubmit.InsertListTypeInsert();
                inserts[8].number = "9";
                inserts[8].Value = "Give me lots of presents this christmas.";
            }
            #endregion
            #region Setup the destination details
            JobSubmit.FaxType[] delivery = new JobSubmit.FaxType[1];
            delivery[0] = new JobSubmit.FaxType();
            delivery[0].Phone = ToFaxNumNode.InnerText;
            JS_Message[0].Destinations = delivery;
            if (null != inserts)
            {
                delivery[0].InsertList = inserts;
            }
            #endregion


The issue is that, I am receiving the fax which the attachment document, but there is no coversheet. The coversheet name is within 15 characters and has been uploaded in 
https://test2.fax2mail.easylink.com/. I can see it in Send Preferences. The word document used for sample is also attached.

Comments

  • The doc you attached is the cover sheet. Your request does not specify a cover sheet name, so the default that is in your Profile will be used. Your DocData is not all there.

    What did you get back in the Response?

  • Yes, the document I attached in the forum is the covert sheet, just to confirm that it contains the 9 merge fields. In the profile too I have set the coversheet document to be used is cs_temp_02.

    I have truncated the docdata as the base64 string is very big. So to make it readable in the forum, I truncated it. The actual base64 data is being sent in DocData node.

    <?xml version="1.0"?>
    <JobSubmitRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <SubmitId xmlns="http://ws.easylink.com/JobSubmit/2011/01">FAX1001</SubmitId>
    <DocumentSet xmlns="http://ws.easylink.com/JobSubmit/2011/01">
    <Document ref="testDoc">
    <DocType>PDF</DocType>
    <Filename>C:\Users\lab\Desktop\test.pdf</Filename>
    <DocData format="base64">Actual Base64 string is being sent.</DocData>
    </Document>
    </DocumentSet>
    <Message xmlns="http://ws.easylink.com/JobSubmit/2011/01">
    <MessageId>LABMACID/9/2016 12:17:01 PM</MessageId>
    <JobOptions>
    <FaxOptions>
    <FaxCoversheet>
    <UseCoversheet>yes</UseCoversheet>
    <CoversheetName>cs_temp_02</CoversheetName>
    <CoversheetTo>Development Team</CoversheetTo>
    <CoversheetFrom>We ar trying to use OpenText for Fax testing.</CoversheetFrom>
    <CoversheetAttn>Architect</CoversheetAttn>
    </FaxCoversheet>
    <FaxMode>fine</FaxMode>
    <DeliveryRetryPattern>11</DeliveryRetryPattern>
    </FaxOptions>
    </JobOptions>
    <Destinations>
    <Fax>
    <InsertList>
    <Insert number="1">To Santa</Insert>
    <Insert number="2">North Pole Toy Factory</Insert>
    <Insert number="3">18568809090</Insert>
    <Insert number="4">1-800-SANTA</Insert>
    <Insert number="5">Children Foundation</Insert>
    <Insert number="6">18568809091</Insert>
    <Insert number="7">1-800-ANGELS</Insert>
    <Insert number="8">child@angels.com</Insert>
    <Insert number="9">Give me lots of presents this christmas.</Insert>
    </InsertList>
    <Phone>12484627862</Phone>
    </Fax>
    </Destinations>
    <Contents>
    <Part>
    <DocRef>testDoc</DocRef>
    <Treatment>body</Treatment>
    </Part>
    </Contents>
    </Message>
    </JobSubmitRequest>

    Currently I am unable to send any fax as it is giving an error that it is unable to send due to service congestion.

     

  • What is the exact error message you are getting?

    What URL are you submitting to?

  • I am submitting it to the URL:
    https://test2messaging.easylink.com/soap/sync

    In the response I am getting the following error message:
    XOA-2010 [faxREACH: coversheet not found] : : customer no: 592444: cover type: old stylecs_temp_02not found

    I have uploaded it in the https://test2.fax2mail.easylink.com portal and I have specified that in Send Preferences -> Cover Page. Do I need to click on the "Use Cover Page" option? 

  • Telling it to use coversheet in the API will make it use it. there may be issues with your Profile not being set for the right kind of coversheet. You need to work with Customer Care or your PreSales Engineer for that.

  • We had synced up with our PreSales engineer and have been able to resolve the issue. No change was required from our end.

  • Document attached.

    There was some issue in the code for which the hasCoversheet was set incorrectly, but now the XDN and MRN for the jonId are null which means that the job is not getting sent. Any inputs on this.

    <?xml version="1.0"?>
      <SubmitId xmlns="http://ws.easylink.com/JobSubmit/2011/01">FAX1001</SubmitId>
        <Document ref="testDoc">
          <DocType>PDF</DocType>
          <Filename>C:\Users\lab\Desktop\test.pdf</Filename>
          <DocData format="base64">JCg==</DocData>
        </Document>
      </DocumentSet>
        <MessageId>LABMAC/8/2016 4:22:38 PM</MessageId>
        <JobOptions>
          <FaxOptions>
            <FaxCoversheet>
              <UseCoversheet>yes</UseCoversheet>
              <CoversheetTo>Development Team</CoversheetTo>
              <CoversheetFrom>We ar trying to use OpenText for Fax testing.</CoversheetFrom>
              <CoversheetAttn>Architect</CoversheetAttn>
            </FaxCoversheet>
            <FaxMode>fine</FaxMode>
            <DeliveryRetryPattern>11</DeliveryRetryPattern>
          </FaxOptions>
        </JobOptions>
        <Destinations>
          <Fax>
            <InsertList>
              <Insert number="1">To Santa</Insert>
              <Insert number="2">North Pole Toy Factory</Insert>
              <Insert number="3">18568809090</Insert>
              <Insert number="4">1-800-SANTA</Insert>
              <Insert number="5">Children Foundation</Insert>
              <Insert number="6">18568809091</Insert>
              <Insert number="7">1-800-ANGELS</Insert>
              <Insert number="8">child@angels.com</Insert>
              <Insert number="9">Give me lots of presents this christmas.</Insert>
            </InsertList>
            <Phone>1234567890</Phone>
          </Fax>
        </Destinations>
        <Contents>
          <Part>
            <DocRef>testDoc</DocRef>
            <Treatment>body</Treatment>
          </Part>
        </Contents>
      </Message>
    </JobSubmitRequest>
  • Evanjalin
    edited September 11, 2020 #9
    We are facing issue in sending fax with custom Cover Sheet.
    we have created the cover sheet in https://test2.myportal.opentext.com/XddsPortal  and able to fetch using MMCoverSheetRetrieve API.
    MMCoverSheetRetrieve Request: 
     <MMCoverSheetRetrieveRequest xmlns="http://ws.easylink.com/MMCoverSheetRetrieve/2011/01">
                                                <SubmitId>CSG6116112HEAL</SubmitId>
                                                <ObjectStore>XDDS</ObjectStore>
                                                <MMCoverSheetId ownership="user" objKind="mmcover">COVERSHEETG6116112HEAL</MMCoverSheetId>
                                        </MMCoverSheetRetrieveRequest>



     but while sending Fax, we are getting Error.
    Fax Request:
    <JobSubmitRequest xmlns="http://ws.easylink.com/JobSubmit/2011/01"> 
    <Message> 
    <JobOptions>
    <FaxOptions>
    <FaxCoversheet>
    <UseCoversheet>yes</UseCoversheet>
     <CoversheetName>CSG6116112HEAL</CoversheetName>
     <CoversheetTo></CoversheetTo>
      <CoversheetFrom>(573) 751-2737</CoversheetFrom>
      <CoversheetAttn>Subject: tetstt 
     Comments : tetsyxys</CoversheetAttn>
    </FaxCoversheet>  
    <FaxMode>standard</FaxMode>
    <Subject>tetstt</Subject> 
      <Pilotline>
        <PilotlineStyle>type1</PilotlineStyle>
          <PilotlineText></PilotlineText>
           </Pilotline>    
    </FaxOptions> 
    </JobOptions> 
    <Destinations><Fax><Phone>(444) 564-5645</Phone><From>(573) 751-2737</From><To>Phys, Ip</To></Fax></Destinations> 
    <Reports> 
    <DeliveryReport> 
    <DeliveryReportType>detail</DeliveryReportType> 
    </DeliveryReport> 
    </Reports> 
    <Contents><Part>
    <Document>
    <DocType>text</DocType>
    <DocData format="base64">dGV0c3l4eXM=</DocData>
    </Document>
    <Treatment>body</Treatment>
    </Part><Part><Document><DocType>PDF</DocType><Filename>Study Order Entry-Test, Flex 06-01-1978 ASV 06-17-2020 06.40.39 am.pdf</Filename><DocData format="base64">'just deleted the base64 formated file'</DocData></Document><Treatment>attachment</Treatment></Part></Contents> 
    </Message> 
    </JobSubmitRequest> 

    Response:
     we are getting this Error message: ERROR 
        [0] => XOA-2010 [faxREACH: coversheet not found] : : customer no: 592200: cover type: old styleCSG6116112HEALnot found.

    please guide us if we are missing something.
  • Evanjalin said:
    We are facing issue in sending fax with custom Cover Sheet.
    we have created the cover sheet in https://test2.myportal.opentext.com/XddsPortal  and able to fetch using MMCoverSheetRetrieve API.
    MMCoverSheetRetrieve Request: 
     <MMCoverSheetRetrieveRequest xmlns="http://ws.easylink.com/MMCoverSheetRetrieve/2011/01">
                                                <SubmitId>CSG6116112HEAL</SubmitId>
                                                <ObjectStore>XDDS</ObjectStore>
                                                <MMCoverSheetId ownership="user" objKind="mmcover">COVERSHEETG6116112HEAL</MMCoverSheetId>
                                        </MMCoverSheetRetrieveRequest>



     but while sending Fax, we are getting Error.
    Fax Request:
    <JobSubmitRequest xmlns="http://ws.easylink.com/JobSubmit/2011/01"> 
    <Message> 
    <JobOptions>
    <FaxOptions>
    <FaxCoversheet>
    <UseCoversheet>yes</UseCoversheet>
     <CoversheetName>COVERSHEETG6116112HEAL</CoversheetName>
     <CoversheetTo></CoversheetTo>
      <CoversheetFrom>(573) 751-2737</CoversheetFrom>
      <CoversheetAttn>Subject: tetstt 
     Comments : tetsyxys</CoversheetAttn>
    </FaxCoversheet>  
    <FaxMode>standard</FaxMode>
    <Subject>tetstt</Subject> 
      <Pilotline>
        <PilotlineStyle>type1</PilotlineStyle>
          <PilotlineText></PilotlineText>
           </Pilotline>    
    </FaxOptions> 
    </JobOptions> 
    <Destinations><Fax><Phone>(444) 564-5645</Phone><From>(573) 751-2737</From><To>Phys, Ip</To></Fax></Destinations> 
    <Reports> 
    <DeliveryReport> 
    <DeliveryReportType>detail</DeliveryReportType> 
    </DeliveryReport> 
    </Reports> 
    <Contents><Part>
    <Document>
    <DocType>text</DocType>
    <DocData format="base64">dGV0c3l4eXM=</DocData>
    </Document>
    <Treatment>body</Treatment>
    </Part><Part><Document><DocType>PDF</DocType><Filename>Study Order Entry-Test, Flex 06-01-1978 ASV 06-17-2020 06.40.39 am.pdf</Filename><DocData format="base64">'just deleted the base64 formated file'</DocData></Document><Treatment>attachment</Treatment></Part></Contents> 
    </Message> 
    </JobSubmitRequest> 

    Response:
     we are getting this Error message: ERROR 
        [0] => XOA-2010 [faxREACH: coversheet not found] : : customer no: 592200: cover type: old styleCSG6116112HEALnot found.

    please guide us if we are missing something.
    Job request: 
    <JobSubmitRequest xmlns="http://ws.easylink.com/JobSubmit/2011/01"> 
    <Message> 
    <JobOptions>
    <FaxOptions>
    <FaxCoversheet>
    <UseCoversheet>yes</UseCoversheet>
                                                                                            <CoversheetName>CSG6116112HEAL</CoversheetName>
                                                                                            <CoversheetTo></CoversheetTo>
                                                                                            <CoversheetFrom>(573) 751-2737</CoversheetFrom>
                                                                                            <CoversheetAttn>Subject: tetstt 
     Comments : tetsyxys</CoversheetAttn>
    </FaxCoversheet>  
    <FaxMode>standard</FaxMode>
    <Subject>tetstt</Subject> 
                                                                                    <Pilotline>
                                                                                        <PilotlineStyle>type1</PilotlineStyle>
                                                                                        <PilotlineText></PilotlineText>
                                                                                    </Pilotline>    
    </FaxOptions> 
    </JobOptions> 
    <Destinations><Fax><Phone>(444) 564-5645</Phone><From>(573) 751-2737</From><To>Phys, Ip</To></Fax></Destinations> 
    <Reports> 
    <DeliveryReport> 
    <DeliveryReportType>detail</DeliveryReportType> 
    </DeliveryReport> 
    </Reports> 
    <Contents><Part>
    <Document>
    <DocType>text</DocType>
    <DocData format="base64">dGV0c3l4eXM=</DocData>
    </Document>
    <Treatment>body</Treatment>
    </Part><Part><Document><DocType>PDF</DocType><Filename>Study Order Entry-Test, Flex 06-01-1978 ASV 06-17-2020 06.40.39 am.pdf</Filename><DocData format="base64">'just deleted the base64 formated file'</DocData></Document><Treatment>attachment</Treatment></Part></Contents> 
    </Message> 
    </JobSubmitRequest> 
  • Please configure your profile  for cover_type to mm in webadmin. Since cover_type is not configured in webadmin for your profile it is going and looking for old style coversheet and it is throwing the above error

    Prabhakaran R
    OpenText