Back to forum list… Back to How Do I?...

File Path Creation Question (2 replies)

Arline Welty
4 years ago
Arline Welty 4 years ago

Hi there,

I got a customer request to change the file path of where we're printing some Order Confirmations. I can't seem to get IMAN to create the sub-folder for %YEAR even though it's working fine in the old way. What am I missing here?

Map Transform that works when creating a file path with the %YEAR variable:

Dim Dir

Dir = "\\NETWORK_File_Share\GroupDocs\Sales\" & %CUSTOMER & "\" & %YEAR

CreateFolder(Dir)

 

Map Transform that does not create a file path including the %YEAR variable:

Dim Dir

Dir = "\\NETWORK_File_Share\GroupDocs\Sage2019\Customers\" & %CUSTOMER & "\Order Confirmations\" & %YEAR

CreateFolder(Dir)

 

 

Can you help? I'm not sure why the %YEAR is being ignored in the second attempt. 

Link to image of my map transform: https://www.dropbox.com/s/wtsfeatfudtqgb7/Year.png?dl=0

https://www.realisable.co.uk/wp-content/uploads/2020/04/Year.png
Support
4 years ago
Support 4 years ago

It may be because the YEAR field is after the field containing the expression for generating the folder.

In the map transform, move the YEAR to appear before the field using the up/down arrow below the grid.

https://www.realisable.co.uk/support/Documentation/iman-user-guide/Transforms/Map.htm

Arline Welty
4 years ago
Arline Welty 4 years ago

That was it! Thank you!

Contact

Realisable Software Ltd provides code-free, cost-effective applications integration solutions for SMEs. Our core IMan product is designed to integrate almost any application with a number of Sage solutions and online payment processors.

Looking to purchase IMan, please see our resellers here.

Realisable Software
Ph: +44 (0) 208 123 1017

Copyright © Realisable. All rights reserved.
Realisable is a registered trademark

Close

Request Demo

Realisable Software Ltd provides code-free, cost-effective applications integration solutions for SMEs. Our core IMan product is designed to integrate almost any application with a number of Sage solutions and online payment processors.

Looking to purchase IMan, please see our resellers here.

Realisable Software
Ph: +44 (0) 208 123 1017

Copyright © Realisable. All rights reserved.
Realisable is a registered trademark

Close

Access Downloads

Realisable Software Ltd provides code-free, cost-effective applications integration solutions for SMEs. Our core IMan product is designed to integrate almost any application with a number of Sage solutions and online payment processors.

Looking to purchase IMan, please see our resellers here.

Realisable Software
Ph: +44 (0) 208 123 1017

Copyright © Realisable. All rights reserved.
Realisable is a registered trademark

Close