Skip to main content
September 14, 2022
Question

How to Configure Write to Multiple Datastore Entity

  • September 14, 2022
  • 4 replies
  • 0 views

Hi All,

I want to use multiple data store entity node in my process model.

I am passing the input as below in the inputs tab of the node,

{
a!entityData(entity: cons!DSE1,
data: {pv!data1}),
a!entityData(entity:cons!DSE2,
data:{pv!data2})
}

But I need the outputs since I am passing that into sub process but I don't know how to save the outputs in pv!data1 & pv!data2 in outputs tab of the node.

could you please help me on this.

Thanks in Advance.

    4 replies

    Participating Frequently
    September 14, 2022

    Hello. Have you taken a look at our documentation supporting this smart service? I believe it explains and shows an example of how to format an expression to capture your data using the indices of the entityData array: https://docs.appian.com/suite/help/22.3/Write_to_Multiple_Data_Store_Entities_Smart_Service.html

    September 14, 2022

    Thanks for your response. Yes I have seen that previously, but I not getting where to insert the below code in outputs tab,

    StoredValues[1].data → pv!StoredOpportunities
    StoredValues[2].data → pv!AcmeAccount
    StoredValues[3].data → pv!NewNotes
    September 14, 2022

    Hi, You can create custom output and use ac!StoredValues[1].data and select the target and add another custom output for the second one and so on.