08-03-2015 09:10 AM
Hi,
Is it possible to create a new User Template like on Unity Connection GUI using CUPI, ie using the "based on template" field?
If yes, what is the REST request?
If no, what is the best way to do something equivalent in CUPI?
Thanks,
Fabien
Solved! Go to Solution.
08-06-2015 02:12 AM
I think you just stumbled upon a pretty serious limitation of the Cisco APIs (I can't say for sure it affects all.. but there's the same issue in AXL as you're probably aware) - creating a copy of something is a pretty important functionality. It's there in the GUI, so why not in the API? You sure got my vote for a feature extension.
Did you check if there's an SP in the database that performs the copy? I don't have CUDLI installed on this box, but if there's something that takes the same or similar parameters as the GUI, that could be a workaround (not very elegant I know).
Of course you can create templates manually, but in my experience from working with mailboxes, while you can change the majority of properties, you can't change/set them all.
08-06-2015 02:12 AM
I think you just stumbled upon a pretty serious limitation of the Cisco APIs (I can't say for sure it affects all.. but there's the same issue in AXL as you're probably aware) - creating a copy of something is a pretty important functionality. It's there in the GUI, so why not in the API? You sure got my vote for a feature extension.
Did you check if there's an SP in the database that performs the copy? I don't have CUDLI installed on this box, but if there's something that takes the same or similar parameters as the GUI, that could be a workaround (not very elegant I know).
Of course you can create templates manually, but in my experience from working with mailboxes, while you can change the majority of properties, you can't change/set them all.
08-06-2015 02:28 AM
Did you find a corresponding stored procedure?
08-06-2015 02:29 AM
Hi Stephan,
Thank you for the answer. You are right, using CUDLI, there is an SP to create a user template specifying an existing user template on which the creation shall be based (csp_usertemplatecreate - pTemplateObjectId).
Thanks,
Fabien
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide