How to create Import/Export/Action or Process using Command Line/Shell Script in Anaplan

nehanayal
Occasional Contributor

How to create Import/Export/Action or Process using Command Line/Shell Script in Anaplan

Iam running the below Command:

 

java -classpath "E:/Neha_Nayal/Anaplan/anaplan-connect-1.4.3-jar-with-dependencies.jar" com.anaplan.client.Program -k E:/Neha_Nayal/Anaplan/keystore.jks -ka keystore -kp keystore_password -workspace workspace_id -model model_id -service service_url -auth auth_url -file "Anaplan_Connect_Detail.txt" -put "E:/Neha_Nayal/Anaplan/Anaplan_Connect_Detail.txt" -import "Import from Anaplan_Connect_Detail.txt" -execute

 

My o/p comes like:

 

nehanayal_0-1628598550116.png

How can I specify  the action in the command itself.

Is it possible to create import, export action using command line itself?

An import, export, action or process must be specified before -execute

5 REPLIES 5
KirillKuznetsov
Certified Master Anaplanner

Re: How to create Import/Export/Action or Process using Command Line/Shell Script in Anaplan

Any Action has to be created in Anaplan model prior to any connector setup: https://help.anaplan.com/69250a43-3266-4c04-bda9-bfb50ece9623
KirillKuznetsov
Certified Master Anaplanner

Re: How to create Import/Export/Action or Process using Command Line/Shell Script in Anaplan

-import "Import from Anaplan_Connect_Detail.txt" means the name of your action in the model. So this action has to exist in the model
nehanayal
Occasional Contributor

Re: How to create Import/Export/Action or Process using Command Line/Shell Script in Anaplan

Hi @KirillKuznetsov 

 

Actually I wanted to know if its possible to create an action using command line/shell script

Instead of creating an action in anaplan.

KirillKuznetsov
Certified Master Anaplanner

Re: How to create Import/Export/Action or Process using Command Line/Shell Script in Anaplan

To my knowledge, this feature is not yet to be included in the Anaplan Connect. You can raise this idea on Idea Exchange portal: https://community.anaplan.com/t5/forums/postpage/board-id/AnaplanIdeas/search-before-post-mode/true

edgargomez
Group Leader - Employee

Re: How to create Import/Export/Action or Process using Command Line/Shell Script in Anaplan

Anaplan Connect and Anaplan API relies on the actions created on Anaplan model to execute the import and export.
However Anaplan Transactional API does not rely or depend on and actions being created in Anaplan Model