saving multiple rows in database

Certified Associate Developer

I have a multiselect dropdown with names h1, h2 and there respective ids are 123,456. the interface is to update the codes in site.But when I am selecting both values from dropdown and adding the code, code is not getting added for both the values. It is only getting added for the first value(h1) which I selected initially in the dropdown(h1)

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Associate Developer
    in reply to Shubham Aware

    a!forEach(
    items: local!selectedInsuredId,
    expression: a!localVariables(

    local!idx: index(fv!item,
    wherecontains(fv!item, local!insuredParty[partyId]),

    null()
    ),

    recordType(
    appianId:
    index(local!insuredParty[id], local!idx, null()),
    validated: false,
    partyID: fv!item,
    recordType!createdon: now(),
    recordType!createdBy: loggedInUser(),

    )
    )
    )
    ),
    iterating in the same way but 2 rows are getting displayed when 2 names are selected

Children