Skip to main content
New Participant
Dec 23, 2022 5:50 AM UTC
Question

Error using Write to Records smart service on Interface

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
Dec 23, 2022 3:00 PM UTC

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

The Expression Guru
New Participant
Dec 23, 2022 6:52 PM UTC

These two are record type rule inputs.

prafuls972
Participating Frequently
Dec 23, 2022 8:26 PM UTC

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