Skip to main content
desmondw112619
October 11, 2024
Solved

What is the proper way to write a list of a record type to a single record type?

  • October 11, 2024
  • 1 reply
  • 0 views

I am creating a practice application that takes in a pet's owner, and the pets that the owner has. Because the owner can have more than one pet, I have created an editable grid that passes the input pets in to a rule input that stores them as a "list of recordType!w0428pv pet". I would like to be able to use the write records smart service to take that list and input it in to the database as individual records but I'm not sure if that is possible or the right way to go about doing this. I believe the process variable is storing the array of pets correctly, as it looks correct in the preview on the design page. Any advice would be greatly appreciated! 

Best answer by shubhama926776

 [mention:54d31198361747a581179a7e5b91da4e:e9ed411860ed4f2ba0265705b8793d05] 

The publish error message indicates two main issues. Try the following steps to resolve them:

1) Ensure all rule output nodes are connected to valid target nodes.

2) Check if the process variable for "pets" is an array of W0428PV Pet objects.

1 reply

shubhama926776
October 15, 2024

 [mention:54d31198361747a581179a7e5b91da4e:e9ed411860ed4f2ba0265705b8793d05] 

The publish error message indicates two main issues. Try the following steps to resolve them:

1) Ensure all rule output nodes are connected to valid target nodes.

2) Check if the process variable for "pets" is an array of W0428PV Pet objects.