Developer forum

Forum » Integration » Rename file from ICC download

Rename file from ICC download

Mads Knudsen
Reply

Hi,

We are running DW 9.12.2 with customer center integration to BC. Is it possible to rename the file requested from BC in regrads to OpenOrder and Invoices? 

 

Br, 

Mads


Replies

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi MAds,

I had a similar request in the past and I could not find a way to do it from the settings.

And we ended up with an IIS rewrite rule:

<rewrite>
      <outboundRules>
          <rule name="ContentDisposition Rewrite Rule - Documents" preCondition="ExcelFiles">
              <match serverVariable="RESPONSE_Content_Disposition" pattern="(.*)filename=(.*)IntegrationCustomerCenterItem(.*)$" />
              <action type="Rewrite" value="attachment; filename=&quot;Decocenter_{R:3}&quot;" />
          </rule>
          <preConditions>
              <preCondition name="ExcelFiles" logicalGrouping="MatchAny">
                  <add input="{RESPONSE_CONTENT_TYPE}" pattern="^application/pdf" />
              </preCondition>
          </preConditions>
      </outboundRules>
  </rewrite>

I hope it helps.
Adrian

 

 
Mads Knudsen
Reply

Hi, 

Thanks for the reply. 

Could it be something Dynamicweb looked into? I think a lot of webshop clients would like the ability to rename the file in a more customer oriented manner. 

Br, Mads

 
Nicolai Pedersen
Reply

Yeah, I created #5884, that allows you to use &filename=invoice-2345.pdf as a parameter to control the filename.

It is sent for code review and QA and will be part of next Liveintegration.dll release.

BR Nicolai

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Awesome!

Adrian

 
Kristian Kirkholt Dynamicweb Employee
Kristian Kirkholt
Reply

Hi Adrian

Feature #5884 regarding filename of integrated customer center downloads

Has been implemented in Dynamicweb version 9.12.5 
You can get this from the download section https://doc.dynamicweb.com/downloads/releases

Please contact support@dynamicweb.dk if there are any questions regarding the upgrade

Kind Regards
Dynamicweb Support
Kristian Kirkholt

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Kristian,

Thank you very much.


Adrian

 

You must be logged in to post in the forum