Hi I have writeToMultipleDataStoreEntities in my interface, I wanted to retrieve only the primary key values when insert happen.
onSuccess:a!save(local!emplEntity,fv!storedValues)
Discussion posts and replies are publicly visible
It should not be an issue if primary key names are same for all the entities. a!writeToMultipleDataStoreEntities() returns list of entityData type, so you can index or property the keys like you do with any dictionary or map.
Here is a sample code:
a!save( local!primaryKeys, a!forEach( fv!storedValues, property( property(fv!item, "data", null), "idPk", null ) ) )