Skip to main content
Inspiring
Dec 1, 2025 3:30 PM UTC
Question

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

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
    Brainy
    Dec 1, 2025 4:00 PM UTC
    shubhama926776
    Brainy
    Dec 2, 2025 7:59 AM UTC

    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.

    शुभम्