function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Karen JoyKaren Joy 

Flow Designer Dynamic Choice: How to access Name field of related object

When creating a dynamic choice, Is there a way to access the fields of a related object for the Choice Name?

Here is an example:
An account record is the master of a master-detail relationship with a custom object called "Hh Enrollment"
"Hh Enrollment" has a lookup field to another custom object called "LOC"

The dynamic choice filters the "Hh Enrollment" object as required and lists the choices according to the field chosen in Choice Label assignment, which, in this case, is the field that is the lookup to "LOC".  Since that field is a lookup field, the choices end up being the ID's of the LOC records, which are not very meaningful to a user.

Is there a way to show another field of the related object?

Karen
Grazitti TeamGrazitti Team
Hi Karen,

The way to expose the related objetc details would go like this.

From the record id that is the account id you need to have to use the lookup element of the flow and then pass the values of the results into the flow varibales and use them .

Hope this helps.
let us know if you have any question .
please don't Forget to Mark this as your best answer if it works fine for you

Regards,
Grazitti Team
Web: www.grazitti.com