Set the Array data in Rule Input after button click.

Hi,

I have One Array in local variable. 

like 

data=[type:Opportunity,Name:Dickenson Mobile Generators,Account:[type:Account,Name:Dickenson plc],Amount:15000.0];
         [type:Opportunity,Name:United Oil Office Portable Generators,Account:[type:Account,Name:United Oil & Gas Corp.],Amount:125000.0];
         [type:Opportunity,Name:Express Logistics Standby Generator,Account:[type:Account,Name:Express Logistics and Transport],Amount:220000.0];
         [type:Opportunity,Name:GenePoint Standby Generator,Account:[type:Account,Name:GenePoint],Amount:85000.0];
         [type:Opportunity,Name:Grand Hotels Kitchen Generator,Account:[type:Account,Name:Grand Hotels & Resorts Ltd],Amount:15000.0], identifiers=1; 2; 3; 4; 5]

and want to store this five opportunity data in rule input to insert into the Appian Cloud Database separately(Five row in appian Cloud Database) after clicking on submit button or on load of form.

to implement this i created one rule input like:

  

but after clicking on submit button i get the all data in rule input five time with merge data . like

and i need this data in rules input in five time with different values like 

code on submit button:

so how i can do this.

 

 

 

  Discussion posts and replies are publicly visible

Parents Reply Children
  • My XSD File 

    xsd:schema xmlns:xsd="www.w3.org/.../XMLSchema" xmlns:tns="urn:com:appian:types" targetNamespace="urn:com:appian:types">

    <xsd:complexType name="SID_oppCDT">
    <xsd:annotation>
    <xsd:documentation><![CDATA[Opp cdt]]></xsd:documentation>
    </xsd:annotation>
    <xsd:sequence>
    <xsd:element name="id" nillable="true" type="xsd:int">
    <xsd:annotation>
    <xsd:appinfo source="appian.jpa">@Id @GeneratedValue</xsd:appinfo>
    </xsd:annotation>
    </xsd:element>
    <xsd:element name="name" nillable="true" type="xsd:string">
    <xsd:annotation>
    <xsd:appinfo source="appian.jpa">@Column(length=255)</xsd:appinfo>
    </xsd:annotation>
    </xsd:element>
    <xsd:element name="accountName" nillable="true" type="xsd:string">
    <xsd:annotation>
    <xsd:appinfo source="appian.jpa">@Column(length=255)</xsd:appinfo>
    </xsd:annotation>
    </xsd:element>
    <xsd:element name="amount" nillable="true" type="xsd:string">
    <xsd:annotation>
    <xsd:appinfo source="appian.jpa">@Column(length=255)</xsd:appinfo>
    </xsd:annotation>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:schema>

  • After seeing your XSD file, the data structure you have in the local variable doesn't match with this XSD.

    Please try to save your local variable to the appropriate CDT type.