Skip to main content
Nintex Community Menu Bar

Need help updating xml fields

  • June 21, 2007
  • 3 replies
  • 19 views

Forum|alt.badge.img+9
  • Nintex Partner

Hello

I am new to k2 and i have a schema wich contains mutiple nodes and fields.

i am creating a plan page and i need to update an xml field of the schema process.

my code as follows:

  Dim conk2 As New K2ROM.Connection
        Dim strCon As String
        strCon = "[;];Authentication=Windows;Domain=;User=administrator;Password=password"      

        conk2.Open("ntxgdsbiztalk", strCon)


        Dim callisp As K2ROM.ProcessInstance
        callisp = conk2.CreateProcessInstance("DSLWorkflowsProcess DSL OrderEscalationsEscalations_CallISP")
callisp.XmlFields(           

conk2.StartProcessInstance(callisp)

         

 In the callisp.XmlFields it is asking for the index as integer

How can i update an xml field in a given schema


Thanks a lot 

3 replies

Forum|alt.badge.img+13
  • Rookie
  • June 22, 2007

callisp.ProcessInstance.XmlFields("FormData").Value = gsFormData

"FormData" is your XML field name.


Forum|alt.badge.img+7
  • June 25, 2007

I'm facing the same problem with xml fields.

I think that XML schema is not established by the time I start a process instance within a plan page.

So the callisp.ProcessInstance.XmlFields("FormData").Value = gsFormData don't work and it gives me an error

saying that this field doesn't exist.

How can we solve this problem ?

Thanks in advanced. 


Forum|alt.badge.img
  • Nintex Partner
  • March 22, 2019
Hi,
Even am facing same issue below is the my code
pi.XmlFields["Level1Approvers"].Value = GetXmlFieldDataUsers(level1Approvers);
pi.Update();

for me above line not throwing any exception but its not updating value to K2 workflow processInstance. Can anyone help how to resolve this?