Skip to main content
December 23, 2022
Question

Error using Write to Records smart service on Interface

  • December 23, 2022
  • 5 replies
  • 0 views

Hi Everyone

We're trying to write multiple records using write to record smart service on interface. But we're receiving below error --

The input "Records" must only include records from a single record type.

can anyone please let me know what is wrong with the below code?

a!writeRecords(
records: { ri!taskDetails, ri!caseDetails },
onSuccess: a!save(ri!teadOnly, false()),
onError: a!save(local!error, fv!error)
)

5 replies

mikes0011
Brainy
December 23, 2022

What types are ri!taskDetails and ri!caseDetails then?

The Expression Guru
December 23, 2022

These two are record type rule inputs.

prafuls972
December 23, 2022

These two are different records? If yes you cannot perform the operation.