New to Appian, Writing to a recordtype
I’m trying to write to a recordtype in Appian but I keep getting this error and I have no clue why.
“Could not display interface. Please check definition and inputs. Interface Definition: Expression evaluation error [evaluation ID = 88f9f:179c1] : An error occurred while executing a save: Expression evaluation error at function a!writeRecords [line 124]: Record Type constructor must use keywords”
…
a!buttonWidget(
label: "Submit Request",
disabled: not(local!bookingResult.isValid),
saveInto: {
a!writeRecords(
records:
'recordType!{UUID}CRBTN_Booking'(
'recordType!{UUID}CRBTN_Booking'.fields.roomName: local!roomName,
'recordType!{UUIDCRBTN_Booking'.fields.roomCapacity: local!roomCapacity,
'recordType!{UUID}CRBTN_Booking'.fields.attendeeCount: local!attendeeCount,
'recordType!{UUID}CRBTN_Booking'.fields.requestedBy: loggedInUser(),
'recordType!{UUID}CRBTN_Booking'.fields.status: "Pending"
)
,
onSuccess: {
a!save(local!roomName, null),
a!save(local!roomCapacity, null),
a!save(local!attendeeCount, null),
a!save(local!confirmationMessage, "Your booking request was submitted.")
},onError: {
a!save(local!confirmationMessage, "Something went wrong: " & fv!error)
}
)
},
submit: true,
….
