Skip to main content
December 1, 2025
Question

how to get write records smart service for multiple records output in single variable ?

  • December 1, 2025
  • 2 replies
  • 0 views

Hi Team,

have case details and applicant details record and updating few details and storing via  write record smart service  for multiple record type in the process model but have to get output primary key of 2 records and how to fetch it?

thanks

    2 replies

    stefanhelzle0001
    December 1, 2025
    shubhama926776
    December 2, 2025

    Appian documented this here..

    https://docs.appian.com/suite/help/25.4/Write_Records_Smart_Service.html#store-updated-data-from-multiple-record-types-in-custom-variables

    If this does not work, 

    Create typed process variables - 
    pv!caseDetailsUpdated (Type: Case Details)
    pv!applicantDetailsUpdated (Type: Applicant Details)

    In Data -> Outputs tab, create 2 Custom Outputs:
    Expression: cast(recordType!CaseDetails, ac!RecordsUpdated)  ->  Target: pv!caseDetailsUpdated
    Expression: cast(recordType!ApplicantDetails, ac!RecordsUpdated)  -> Target: pv!applicantDetailsUpdated

    then access primary key for each record.