Rename file from content of an xml

More
2 years 3 months ago #23801 by prashant

I have emailed you a working example.
 
attach it here too ! so we can learn too

Please Log in or Create an account to join the conversation.

More
2 years 3 months ago #23802 by admin
Please see attached

I have removed all customer related data 

File Attachment:

File Name: Case38.zip
File Size:2 KB

Mike
ETL Architect
The following user(s) said Thank You: prashant

Please Log in or Create an account to join the conversation.

More
2 years 3 months ago #23805 by downing
Hello Mike,

Runs great
Many thanks!

What would be your approach if several files (pdf and xml) are downloaded at the same time from an SFTP?

Greetings
Thomas

Please Log in or Create an account to join the conversation.

More
2 years 3 months ago #23806 by admin
Here is is basic loop example



Download all files into the source folder.
Use following script to calculate pdf file name

var FileName: String;
begin
 FileName := GetVariable('<xml-file>');
 FileName := ExtractFileName(FileName);
 FileName := ChangeFileExt(FileName,'.pdf');
 SetVariable('<pdf-file>',FileName);
 Result:=True;
end;

delete xml file or move it into a separate folder

Mike
ETL Architect

Please Log in or Create an account to join the conversation.

More
2 years 3 months ago #23807 by prashant
A loop without loop package !!!
So much to learn

Please Log in or Create an account to join the conversation.

More
2 years 2 months ago #23808 by downing
Runs like a charm

Thanks Mike
Into the weekend with a sense of success

:)

Please Log in or Create an account to join the conversation.

Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Read more
Marketing
Set of techniques which have for object the commercial strategy and in particular the market study.
Google
Accept
Decline
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Google Analytics
Accept
Decline
Functional
Tools used to give you more features when navigating on the website, this can include social sharing.
Advertisement
If you accept, the ads on the page will be adapted to your preferences.
Google Ad
Accept
Decline
Save