Hi all. I am trying to send complex data as a query parameter from a APPFarm UI app to an APPFarm service. The Create UI does not allow me to select runtime datasources on the service side that contains a “Many” datasource. You have to select one of the properties of the object in order to be allowed to do this.
I would like to be able to pass on a collection of objects from the UI App to the service. Maybe I am far off here, but any suggestions is appreciated
Thank you for registering this. At this time, there is no option to pass a cardinality many data source directly to the service in this way. A challenge is registered to be able to databind a data source to the Run Service action node, to be able to send data directly to the service.
Currently, the objects need to be persisted, the IDs for these objects need to be sent in the service call and then the objects can be read again in the service based on these IDs. One potential workaround for a cardinality many data source is to send a string of IDs with a comma in between as a query parameter to the service, and then use Javascript on the other side to update this string into a multi reference property, for instance My Data Source.My Multiref Property:
let arrayString =
"677e6b51a76f6b272bbc4f60,
677e6b52a76f6b272bbc4f65,
677e6b52a76f6b272bbc4f6b,
67f390a98ce84970509cc589"
return arrayString.split(", ")