I would like to build a JupyterNotebook or py code, that allows me to publish/push a process from one TM1 instance to another. I am still new to tm1py so I looked at available code such as :
I tried the following but it does not seem to work. I get an syntax error: "SyntaxError: invalid syntax". Can you help me with the correct syntax or code
import TM1py
tm1_src = TM1py.TM1Service(
base_url= "URL/api/Instance_ID/v0/tm1/DEV/",
user= "apikey",
password= "actual apikey",
async_requests_mode= True,
ssl= True,
verify= True
)
tm1_tgt = TM1py.TM1Service(
base_url= "URL/api/Instance_ID /v0/tm1/PRE_PROD/",
user= "apikey",
password= "actual apikey",
async_requests_mode= True,
ssl= True,
verify= True
)
# Specify the process name
pName = "zzz_Test_TVA"
# get the process from both src
p = tm1_src.processes.get(pName)
# create process in tgt environment
tm1_tgt.processes.create(process:pName, p)
Hi,
I would like to build a JupyterNotebook or py code, that allows me to publish/push a process from one TM1 instance to another. I am still new to tm1py so I looked at available code such as :
I tried the following but it does not seem to work. I get an syntax error: "SyntaxError: invalid syntax". Can you help me with the correct syntax or code
Version
Thank you for your help. Andre