cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

API to dispatch private workspace based on an action

saikrishna7978
Super Contributor
Is there any api to dispatch private transaction in mega when an action is triggered , We tried mgRoot.CallFunction("~lcE6jbH9G5cK[PublishStayInSessionWizard Command Launcher]", "{""instruction"":""PUBLISHINSESSION""}")

Works only if workspace public it helps to save data, we are looking some thing similar which could be triggered to dispatch or launch dispatch meta wizard when an action is triggered like workflow when workspace is private.
1 Reply

oguimard
Retired

You have other option like :

 

InvokeOnRoot = mgobjRoot.CallFunction("~lcE6jbH9G5cK[PublishStayInSessionWizard Command Launcher]", "{""instruction"":""PUBLISHDIALOG""}")

 

mgobjRoot.CallFunction("~aUzc7pv1DvGR[PublishWizard Command Launcher]", "{""instruction"":""PUBLISH""}")

 

mgobjRoot.CallFunction("~aUzc7pv1DvGR[PublishWizard Command Launcher]", "{""instruction"":""SAVE""}")

 

mgobjRoot.CallFunction("~Ex4Gs44kIbaT[WorkSpace.Action.Abort.Implementation]","")
mgobjRoot.CallFunction("~Dw4GGo5kIDfT[WorkSpace.Action.Dispatch & Finish.Implementation]","")

 

InvokeOnRoot = "{""ResultState"":""SESSIONCLOSE_SAVE""}"
InvokeOnRoot = "{""ResultState"":""SESSIONCLOSE_SAVE""}"
InvokeOnRoot = "{""ResultState"":""SESSION_CANCEL""}"

 

 

Look at the macro with ID 56D55769509E7741