AnsweredAssumed Answered

UC4 Java API - Add PromptSet to an Object

Question asked by SamahSohrab607228 on Jan 13, 2015
Latest reply on Apr 19, 2018 by Michael_Lowry
Hi,

I'm trying to write a java api to modify a lot of jobs and add a PromptSet to these jobs. In the ObjectValues of a Job Object there is the function
addPromptSet(PromptSetDefinition def)
Adds a new PromptSet to this object.

When I look at the constructor for this object it requires an XML Doc
public PromptSetDefinition(org.w3c.dom.Element doc)
Internal use
Parameters:
doc - XML document

What is this XML Document?
How do I get this XML Document?
Do I just export the PrompSet as an XML file?
Is there a way to add a PromptSet for which I know the Object Name of the PrompSet?
I don't want to change any of the default values of the Prompts within the promptset.

Thanks

Outcomes