@echo off set AnaplanUser="email@example.com" set WorkspaceId="8a1234567897c12b014bf01234567890" set ModelId="CB0A5A4D5C5943B5837FF42C5FAA95E1" set Operation= -file "file1.txt" -put"C:\Files\ImportModule.csv" -file "file2.txt" -put "C:\Files\example.csv" -process "myprocess" -execute -output "C:\MyDirectoryForImportDumpFiles" rem *** End of settings -Do not edit below this line *** setlocal enableextensions enabledelayedexpansion || exit /b 1 cd %~dp0 if not %AnaplanUser% == "" set Credentials=-user %AnaplanUser% set Command=.\AnaplanClient.bat %Credentials% -workspace %WorkspaceId% -model %ModelId% %Operation% @echo %Command% cmd /c %Command% pause
1. Please double-check your credentials, Workspace and Model Ids or check if the model is the live state (Not in the archived mode).
2. If the actions are using the same import file then there is no need for writing the script 2 times. Once the file hits the Anaplan, the data will be stored in 'Import Data Source' and no need to do the same activity again (-file "" -put"")
Re: Sample batch file for process in Anaplan Connect
Dear Team ,
I have a Requirement like i am using Anaplan Connect on Windows server where I need to Write Import Script for dataload from Windows server to Anaplan system .
Suppose i have 1 Folder named (Import Files) in Windows server where my ETL Team will place file . Once I will run the Import Script to read file from Import File folder , that files should get appended with Time Stamp when that get loaded in Anaplan and move this file into Folder 2. Archive Folder.
So can you please help me with the Script Command where i can pass the logic to move loaded file from the Import Folder to Archive folder by adding timestamp to the loaded file.
Kindly do help me with the sample script for same in Anaplan Connect it would be great support!