I'm currently exploring all the possible ways to insert record in a record type (for e.g. StudentDetails is my Record Type) but I have String fields as process variables.
one way I know is (i) Gave Input Variable of StudentDetails type and in Script task Output mapped the values from process variables and used write records.
Discussion posts and replies are publicly visible
You can also just construct the record inside the write records node like this:
'recordType!AAD Attendee'( 'recordType!AAD Attendee.fields.title': pv!stringTitle, . . . )