How to pass record type in process model parameter

Hi,

I am trying to call a smart service where parameter type is a CDT object, although I have create a process variable of that CDT type I am still getting cast exception.

Smart Service

a!startProcess(
                                processModel: cons!Notes,
                                processParameters: {
                                  RWM_Notes: 'type!{urn:com:appian:types:ABC}Notes'(
                                    date:now(),
                                    createdBy: loggedInUser(),
                                    notesMessageBody: local!notesContent
                                  )
                                },
                                onSuccess: a!save(local!tempStatus,"Notes Added Successfully!"),
                                onError: a!save(local!tempStatus,"Something is wrong!")
                                
                              )

Error

Error Evaluating UI Expression

Expression evaluation error [evaluation ID = 5P1YOOU9] in rule 'summary' at function a!startProcess [line 380]: Could not cast from RecordType to Process Model. Details: CastInvalid

  Discussion posts and replies are publicly visible

Parents Reply Children