Imagine this scenario: You have a brand new Anaplan ecosystem as part of your organization. When you come in the morning to log into your Anaplan App or Model, you are met with a loading screen. This loading screen often takes 10 minutes plus.
Solution: Create a wake up script! With the power of Anaplan Connect, you can automate your model to “wake up” before you arrive to login for the day. This can save you time every morning you spend waiting for your large model to open.
Here's how: Creating a wake up script is a simple process!
- In your Anaplan model, create a process under the Actions menu
- Rename the process to “Wake Up Model”
- Do not add any actions to the process- this will be a blank “dummy” process
It should look something like this:
Your Anaplan model is now ready to leverage Anaplan Connect!
Next you should:
- Download Anaplan Connect onto your local machine or server environment
- Create your Wake Up Model script
- Save your script in your Anaplan Connect folder
Example Script:
----------------------
set AnaplanUser= your@emailaddress.com:yourAnaplanpassword
set WorkspaceId="YourWorkspaceID"
set ModelId="YourModelID"
set ServiceUrl="https://api.anaplan.com"
set AuthUrl="https://auth.anaplan.com"
set ProcessName="Wake Up Model"
set Chunksize=1
set Operation= -debug -service %ServiceUrl% -auth %AuthUrl% -process %ProcessName% -execute
set Credentials= -User %AnaplanUser%
rem *** End of settings - Do not edit below this line ***
setlocal enableextensions enabledelayedexpansion || exit /b 1
cd %~dp0
set Command=.\AnaplanClient.bat %Credentials% -workspace %WorkspaceId% -model %ModelId% %Operation%
@echo %Command%
cmd /c %Command%
pause
----------------------
Your end result should look something like this when you run the script:
Use Cases:
-Any large Anaplan model that takes long to open or load the first time during the day
-Help your data integrations load faster by opening the model and getting it ready to receive data
Things to consider:
-If your model is taking a long time due to performance or long nested formulas/calculations, consider addressing those first
-Think of it like starting your car in the cold, it usually is a good idea to warm up your car before you go out and drive it
-If your car takes too long to warm up, there may be another underlying issue that needs to be looked at by a mechanic