I'm currently building a flow to pull data from a CRM entity (leads entity) and email it out to somebody (essentially an email notification that a lead has been assigned to somebody).
But, certain fields that I'm pulling are only giving me the value rather than the text.
i.e. the Lead Rating field, instead of showing 'Warm' it's giving me '2'.
I also have a lookup field to an Account, and instead of getting the Account name in the email, I'm getting the Account ID value.
Is there a way I can get the text rather than the values?
For reference, I'm pulling the data using CDS.
Hi @bjarvis
For lookup fields by default you only get the GUID. To get the account name you need to use another flow step called Get Record and pass the Id from our current step. For option set I will get back to you soon.
Thanks
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my blogPower Automate Video TutorialsHi @bjarvis
So to get the option set value text you need to add a compose statement and add the below. Here I am using a for each loop for getting all the records. My option set field is called ajb_rankingstatus. You won't get this from the dynamic properties. You need to add this under the expression function. That will do the trick 🙂
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my blogPower Automate Video Tutorials@abm thanks for the replies - the first one worked perfectly, however with the second answer for option sets i'm getting an error.
The field is 'leadsourcecode'
my expression is:
the error i'm getting is:
Hi
Did you added the compose step inside the loop? You can directly add the expression under the filed without using compose as well.
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my blogPower Automate Video TutorialsSorry, I think I've misunderstood your instructions here.
Should the compose with expression be inside an 'Apply to each' action?
If so, what is the input to the Apply to each? I only have the option for 'Value' as per the image below.
Hi @bjarvis
I was suggesting based on your error. If you using Get Record and returning only one record you don't need a loop so that compose can be outside the loop. Like I mentioned earlier you can do without compose as well. Directly map the field using the expression which I mentioned earlier.
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my blogPower Automate Video TutorialsDive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!
User | Count |
---|---|
45 | |
44 | |
38 | |
33 | |
24 |
User | Count |
---|---|
48 | |
34 | |
32 | |
32 | |
29 |