The choice fields in the body of my email, Animal Type and Sex are displaying their number equivalents.
I have applied Co-pilot's suggestion but it broke the entire code.
Has anyone encountered this? I need help pls
Thanks!
Solved! Go to Solution.
I too ran into this quirk today.
After a little research, I found this article that helped me How to get OptionSet/ Choice text from DataVerse in Power Automate.
This is what my flow looks like.
Trigger - When a row is added, modified or deleted
1. Action - Get a row by ID
Row ID - the Unique identifier column within your table.
Initialize variable
Value - Based on the article I mentioned, this is the expression that gets the text of the choice value.
In my instance, it looks like this:
outputs('Get_a_row_by_ID')['body']['cc_animaltype@OData.Community.Display.V1.FormattedValue']
Condition - checking if the shelter status equals the choice value of Shelter Status - Claimed for Foster, which the value for me is 333330006.
Send an email
Here you can construct your email as before and add the variable/s that get the choice text.
For example:
Animal Type: variables('varAnimalTypeLabel')
I am not sure on the approach for multiple choice values, but I would assume you can add an additional 'Initialize Variable' to capture the text of another choice.
This is the final output from my flow.
Hi @Dianah_Ebere,
<img src="@{body('Get_a_row_by_ID')?['cr0f4_photourl']}" alt="@{body('Get_a_row_by_ID')?['cr0f4_photoname']}" style="width: auto; height: 150px;">
outputs('Get_a_row_by_ID')['body']['cc_animaltype@OData.Community.Display.V1.FormattedValue']
Any issue, let me know and I will respond ASAP.
I too ran into this quirk today.
After a little research, I found this article that helped me How to get OptionSet/ Choice text from DataVerse in Power Automate.
This is what my flow looks like.
Trigger - When a row is added, modified or deleted
1. Action - Get a row by ID
Row ID - the Unique identifier column within your table.
Initialize variable
Value - Based on the article I mentioned, this is the expression that gets the text of the choice value.
In my instance, it looks like this:
outputs('Get_a_row_by_ID')['body']['cc_animaltype@OData.Community.Display.V1.FormattedValue']
Condition - checking if the shelter status equals the choice value of Shelter Status - Claimed for Foster, which the value for me is 333330006.
Send an email
Here you can construct your email as before and add the variable/s that get the choice text.
For example:
Animal Type: variables('varAnimalTypeLabel')
I am not sure on the approach for multiple choice values, but I would assume you can add an additional 'Initialize Variable' to capture the text of another choice.
This is the final output from my flow.
heey corry,
in the Initialize variable step , when I write the fx outputs('Get_a_row_by_ID')['body']['ac_animaltype@OData.Community.Display.V1.FormattedValue'] , it not been datavers it shows as fx as in the below screenshot
and in Get a row by Id is:
please help
You are using a ‘Compose’ variable instead of the Initialize’ variable. Search for Initialize Variable when adding an action and check it matches my screenshot.
The Row ID looks fine. To make sure, when adding the dynamic value to Row ID, it will say it’s the Unique Identifier just below the dynamic option in the list.
You can also look at your table columns in your solution to find the Unique Identifier.
@Corry
Thanks for this explanation,
Please, I have got 2 follow up questions;
1. How were you able embed the image url into the email such that it shows the actual image?
2. I am still experiencing some errors using the initialize variable, the output isn't giving the expected value..., so I am unable to still see the text value of my choice field.
See image below:
Hi @Dianah_Ebere,
<img src="@{body('Get_a_row_by_ID')?['cr0f4_photourl']}" alt="@{body('Get_a_row_by_ID')?['cr0f4_photoname']}" style="width: auto; height: 150px;">
outputs('Get_a_row_by_ID')['body']['cc_animaltype@OData.Community.Display.V1.FormattedValue']
Any issue, let me know and I will respond ASAP.
Hi all.
I wanted to follow up with a little more explanation with the variable expression as the article I referenced is a little confusing. Below are my steps to retrieve the information I need for the Initialize Variable.
Summary of Steps
Steps with Images
Dear Community Members, As you may have read, the Power Platform communities are transitioning to a new platform and to access will be set to READ-ONLY mode during the transition. Key DatesTo ensure current learners have adequate support in the final week of the cohort, the Power Up Program Community will transition to READ-ONLY mode starting July 22nd, the platform will transition to READ-ONLY mode until July 28th. Power Apps, Power Automate, and Power Pages communities will be read-only July 16-22, 2024.During this period, members will not be able to start new threads or Kudo, Comment, or Reply to any posts, but will be able to search and review past threads or solutions. On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities. Learners will be able to sign in to the new Power Up Program community experience, starting July 29th. If you registered for community using your learnwithpowerup account, you will not receive an email, but should be able to sign in successfully if you are signed in to My hub. If you need help with your community account, please submit a request at aka.ms/PPCommSupport We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead!
Since its inception in 2022, the Power Up Program has evolved based on feedback from learners and Microsoft Partners and customers. Today's Power Up learners can expect to learn the fundamentals of Microsoft Power Platform in the accelerated seven-week, video-based Power Up Maker course. Hear from Principal Program Manager, Dimpi Gandhi to discover the latest enhancements and meet the Microsoft MVPs, Rory Neary and Charlie Phipps, who partnered with the Microsoft Power Up Program to create the Power Up Maker course to guide learners to use the Microsoft Power Platform to develop custom applications, build dazzling report dashboards, or create efficiencies through automation.
The Power Up Program is a free upskilling program where nontechnical people can learn the fundamentals of Microsoft Power Platform. The Power Up Maker course is a seven-week self-paced virtual learning plan that include video-based objectives featuring Power Apps, Power BI and Power Automate. As a member of the Power Up Community, you can grow your skills and build connections. You can post questions to get help with the curriculum and hands-on exercises from experts and peers in the product boards. Check out the Community Information & Feedback board to find help or provide feedback with the community experience, and please take time to post in the Social board to tell us more about yourself. If you're new to the Power Up Program and looking for information to register. You can sign up at PowerUp.Microsoft.com.