Hi everyone,
I would like to use the "write to record type" activity in a process model to be able to update the fields of a record.
I set up the process as follows with the following variables and settings for the write node, but it always gives me the same error (attached in the figure).
How to configure this node correctly?
Additional question: If you write to the record like this, do you also update the underlying data model table that the record is based on?
Thanks all in advance.
Discussion posts and replies are publicly visible
Hi Alberto. Could you verify if you pass record type in input tab as well.
Yes it's passed in input, still doesn't work
Hii albertob5031,could you verify the input you are passing in the process variable or in the write records smart service, its type should be the same as record type.
How did you configure the inputs?
If you are using the 'Write Record Smart Service' - a comprehensive documentation is here: https://docs.appian.com/suite/help/23.2/Write_Records_Smart_Service.html#create-a-new-record-using-an-expression
Also, the configuration happens in the 'Setup' tab. No need to deal with the Input/Output tab settings.Its only necessary to specify the variable which holds the records and the record type to which you would like to write. Very convenient. The Smart Service can write as much as 50,000 records at once.
Hi,
can you please cross verify weatherthe value being passed to the PV is a record or CDT . if the data what you are trying to write is CDT to the Process variable then convert it into record type and then try to write to record which will solve your issue.
Hi Alberto. I think the pv!processvar1 is having null value.
Hi Alberto,
Your English is very good.
I would like to suggest you approve Harshitha's answer as correct. You can see in the error message, that Appian does not recognize the input as a RecordType. Presumably then, you are actually passing in a CDT. This is consistent with the naming conventions of the variables shown.
RecordTypes generally are named with spaces, and CDTs generally use underscores (_).
Good Luck!