Error using Write to Records smart service on Interface

Certified Lead Developer

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)
)

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data