Microflow Problem

0
I want to make a microflow that assigns a doctor to a patient. Patients can only have one doctor and a doctor can have multiple patients. I want to assign a doctor to a patient based on a attribute value (integer value, the doctor with the highest value should be chosen) of the doctor. The problem is that I have no idea how I should work with associations in the microflow. The parameter of the microflow is the object patient, and I already include an activity that retrieves a list of all the doctor. But what should I do now?
asked
2 answers
0

You should just retrieve a single doctor and sort the retrieve by highest integer value of the attribute you selected. Then change the patient's association to the doctor to the object you retrieved.

Btw it would be good if your question title was a bit more descriptive.

answered
0

Thanks for your reaction, the microflow is working now! Next time I will make the question more descriptive!

answered