Skip to main content

Hello

We want to upload files through API  with file encoded in Base64.

When we sent cfg extension

 <name>test_file_2</name>
 <extension>cfg</extension>

the file is not uploaded into alliance with an error : “Attachment: .cfg has been ignored as unsupported type.”

 

in the global.xml the .cfg extension has been added to the  allowed file Type, is there an other file to setup this extension for api / webservice usage ?

Thanks

Rgds

Christophe

Hi Christophe,

 

Can you add .cfg attachment from Employee Portal after added it as allowed type?

If you can, please send the API so I can test.


Yes i can add it trhough the employee portal

you can try with this API

<root xmlns:dt="urn:schemas-microsoft-com:datatypes">
  <session email="" alias="">
    <state bc_name="Service_Order">
      <action name="declare">
        <attribute dtype="string" in_var="" out_var="" name="new_service_order_id" value="" />
      </action>
      <action name="CalculateFormula">
        <attribute in_var="" out_var="new_service_order_id" formula_name="service_order_id" />
      </action>
      <action name="data" bo_name="main">
        <main>
          <row>
            <request_id in_var="new_service_order_id" dtype="string">in_var</request_id>
            <cust_company_id>BAB-1</cust_company_id>
           
            <problem_desc>The device is not installed properly</problem_desc>
          </row>
          <attachments>
            <attachment>
              <name>test_file</name>
              <extension>txt</extension>
              <description>Attachment via API example 1</description>
              <data><!rCDATAnQXN0ZWEgZXhhbXBsZXMNClRoaXMgZmlsZSBpcyBwYXJ0IG9mIDxpbnN0YWxsX3BhdGg+XEJpblxFeHRlcm5hbFxJbnRlZ3JhdGlvbiBDZW50ZXJcQXBpXFhtbFxkYXRhIC0gbmV3X1NPX3dpdGhfYXR0YWNobWVudC54bWwNCg0KTk9URTogVGhlIGJpbmFyeSBmaWxlIGRhdGEgc2hvdWxkIGJlIHBhc3NlZCB0byBBUEkgYXMgYmFzZTY0U3RyaW5nIGZvcm1hdA0KVGhlIEMjIGNvZGUgZXhhbXBsZQ0KDQpieXRlW10gZmlsZURhdGEgPSBGaWxlLlJlYWRBbGxCeXRlcyhAIkM6XHRlbXBcc29tZV9maWxlLmRvYyIpOw0Kc3RyaW5nIHN0ckRhdGEgPSBTeXN0ZW0uQ29udmVydC5Ub0Jhc2U2NFN0cmluZyhmaWxlRGF0YSk7DQoNCg==]]></data>
            </attachment>
            <attachment>
              <name>test_file_2</name>
              <extension>cfg</extension>
              <description>Attachment via API example 2</description>
              <data><!nCDATAbUEsDBBQABgAIAAAAIQDd/JU3ZgEAACAFAAATAAgCW0NvbnRlbnRfVHlwZXNdLnhtbCCiBAIooAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC0VMtuwjAQvFfqP0S+Vomhh6qqCBz6OLZIpR9g7A1Y9Uv28vr7bgJEVQtBKuUSKVnvzOzsxIPR2ppsCTFp70rWL3osAye90m5Wso/JS37PsoTCKWG8g5JtILHR8PpqMNkESBl1u1SyOWJ44DzJOViRCh/AUaXy0Qqk1zjjQchPMQN+2+vdcek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AAAAAAAAAAAABbQ29udGVudF9UeXBlc10ueG1sUEsBAi0AFAAGAAgAAAAhAB6RGrfzAAAATgIAAAsAAAAAAAAAAAAAAAAAnwMAAF9yZWxzLy5yZWxzUEsBAi0AFAAGAAgAAAAhANZks1H6AAAAMQMAABwAAAAAAAAAAAAAAAAAwwYAAHdvcmQvX3JlbHMvZG9jdW1lbnQueG1sLnJlbHNQSwECLQAUAAYACAAAACEAYW158OwCAAA/CAAAEQAAAAAAAAAAAAAAAAD/CAAAd29yZC9kb2N1bWVudC54bWxQSwECLQAUAAYACAAAACEAlrWt4pYGAABQGwAAFQAAAAAAAAAAAAAAAAAaDAAAd29yZC90aGVtZS90aGVtZTEueG1sUEsBAi0AFAAGAAgAAAAhADyX/HIgCQAAHyUAABEAAAAAAAAAAAAAAAAA4xIAAHdvcmQvc2V0dGluZ3MueG1sUEsBAi0AFAAGAAgAAAAhABWAg9OhAQAADwUAABIAAAAAAAAAAAAAAAAAMhwAAHdvcmQvZm9udFRhYmxlLnhtbFBLAQItABQABgAIAAAAIQBK2IqSuwAAAAQBAAAUAAAAAAAAAAAAAAAAAAMeAAB3b3JkL3dlYlNldHRpbmdzLnhtbFBLAQItABQABgAIAAAAIQBhxpt8dwEAAMoCAAAQAAAAAAAAAAAAAAAAAPAeAABkb2NQcm9wcy9hcHAueG1sUEsBAi0AFAAGAAgAAAAhAEFhD257AQAA8QIAABEAAAAAAAAAAAAAAAAAnSEAAGRvY1Byb3BzL2NvcmUueG1sUEsBAi0AFAAGAAgAAAAhAMRBkYMUBwAA+DkAAA8AAAAAAAAAAAAAAAAATyQAAHdvcmQvc3R5bGVzLnhtbFBLBQYAAAAACwALAMECAACQKwAAAAA=]]></data>
            </attachment>
          </attachments>
        </main>
      </action>
    </state>
  </session>
</root>


Hi Christophe,

When you added the type to the global.xml, you did it in the correct profile and also used the correct separator which is a semi-colon and used periods?

 

Only reason I asked is I have made that mistake once or twice so just a sanity check that you put ;.cfg in the correct profile at the end of the string.

There is no other location to define these but it is done on the profile level.


hi Phil , yes it is ok. I remember from on old release that for the webservice / API  for attachment  something was hardcoded . i will log a ticket if necessary

thanks for your feedback


Hi Christophe,

 

I think you need to create a ticket for this issue. It is controlled by the Framework.


Hi Christophe,

I also dug through old mails and saw this was an issue for a customer where the following two files needed to be adapted (v12) so perhaps same with your situation.  Joshua is correct.

/Bin/Framework/Astea.AO.Common.dll and

/Bin/Framework/Astea.AO.Interfaces.Common.dll


Hello Christophe,

Actually it’s a little bit more than that. Those DLLs below need to be modified.

It will be available in 15.3 HF7. And I just tested your API and it works fine in modified 15.3 HF5. Is it what you expect?

This file is part of <install_path>\Bin\External\Integration Center\Api\Xml\data - new_SO_with_attachment.xml

NOTE: The binary file data should be passed to API as base64String format
The C# code example

bytey] fileData = File.ReadAllBytes(@"C:\temp\some_file.doc");
string strData = System.Convert.ToBase64String(fileData);

 

 


Sorry, forgot to add .cfg.

 


Hi Mark yes thanks. Could you tell me if this will be also included in V15.4SU4 ? and if this only for .cfg file or other extention which could be added in the global.xml ?

Christophe


Hello Christophe,

From what I could see in the code the change is in SU4 and we suppose to get SU4 in a few days. This change is not for any specific file extension but the fix for the issue when new extensions added to Global.xml and they are not recognized.


Reply