Hi,
Can you please provide a sample workflow to copy a file from one folder to another folder using alteryx (Kind of taking backup of files).
Regards,
Haya
Well I'm at a loss then. If you have the run command tool I don't know why Designer doesn't recognize the tools within the macro.
At any rate, if you go back up several posts, I have a screen shot of the inside of the macro, complete with comments next to the run command tool. That should get you right on your way.
Or you can use python with a function like this:
from ayx import Alteryx
import shutil
import os
import pandas as pd
def archiving(a):
source=a['filepath'].tolist()
destination=a['destination'].iloc[0]
destination=destination.replace('\\','/')
source=[shutil.copy(each,destination) for each in source]
dicty={"newfiles":[destination+os.path.basename(each) for each in source]}
output=pd.DataFrame.from_dict(dicty)
Alteryx.write(output,1)
df=Alteryx.read("#1")
archiving(df)