Anaplan API to run a Python Script to Import File and Run a Process
Hoping someone can provide me an example of the Rest API code/syntax (for a Python script) needed to run a process which utilizes a file import to execute several action steps.
Have accomplished in Anaplan Connect via the below:
set Operation=-debug -service %ServiceUrl% -auth %AuthUrl% -workspace %WorkspaceId% -model %ModelId% -via https://location.com:80 -chunksize %Chunksize% -file %FileName% -put %FilePath% -process %Process% -execute -output %DumpName%
But am wondering how this can be accomplished using Anaplan's Rest APIs in Python?
Thank you for your help.
Answers
-
Hi,
Here is good example on how to run different REST API calls in Python
Note the article is done with API 1.4 which works with basic authentication but requires small changes if certificate based authentication is used.
0 -
pyrypeura, thank you for your response but unfortunately that does not answer my issue. The link you provided (that I am familiar with) only details how to run a process or upload a file, but I want to run a file as part of a process. Still looking for an answer, if anyone can assist.
0 -
Hi, These are two different thing and also same thing as Anaplan Connect does in the background. Even tough in Anaplan Connect has these in one command it first uploads the file/files and then starts the process. Same thing in python you would first upload files and then start the process that then uses the files uploaded.
0 -
Thank you for the assistance pyrypeura. I was able to discover the solution.
0