I want to get the records from a related table in dataverse and produce a table to go into an email.
Container ID Bladder No Seal No
ABC00111 BN0011 SN005548
ABD00445 BN0445 SN015581
I am able to get the related table information using Get Row by ID, then List Rows.
When I tried to use the output from the List Rows set I don’t get the fields showing as dynamic content, so I can’t append them to an array.
I was provided with a way to get the records in this post, using a Compose action using an xpath expression to retrieve the data from the List Row step.
The compose output is an array but seems to be treated like a string.
I have tried to remove the square brackets using another compose action but I get an error.
When the compose outputs are appended to the array, each output is one record.
How do I take the 3 sets of compose outputs and turn them into a table?
Many thanks
Rosie
Solved! Go to Solution.
Hi @Rosie
Yes the one table you may need to iterate all the values at the same time and construct a new JSON object.
If its separate table then see below.
Duplicate the same steps for BladderNo and SealNo.
Finally you can map all the three outs of Create HTML table in your email.
Thanks
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my blogHopefully this will get what you're looking for. If this isn't what you're after or have any issues - let me know.
See full flow below. I'll go into each of the actions.
List rows - ContainerDetails is the same as what you already have.
Select takes the output from List rows - ContainerDetails and maps the fields you want in your HTML table. Below are the expressions used:
//From
first(outputs('List_rows_-_ContainerDetails')?['body/value'])?['qp_Containers_qp_Orders_qp_Orders']
//Container ID
item()?['qp_containerid']
//Bladder No
item()?['qp_bladderno']
//Seal No
item()?['qp_sealno']
Create HTML table uses the output from the Select.
This would give you the following output.
Hi @Rosie
Do you want to turn into one table header as ContainerID, BladderNol SealNo and then all three rows as next lines?
If its three different tables then its much easier if not its going to be a custom implementation of the data which you need to combine in a different format (JSON array).
Thanks
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my blogHello,
Ideally one table but that sounds very complicated.
If it ends up looking the same then three tables might be ok.
Thanks
Rosie
Hi @Rosie
Yes the one table you may need to iterate all the values at the same time and construct a new JSON object.
If its separate table then see below.
Duplicate the same steps for BladderNo and SealNo.
Finally you can map all the three outs of Create HTML table in your email.
Thanks
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my blogThanks so much, that helps me get further along with a better formatted result.
Ultimately I would like to combine them into one table.
Is there a good resource you know of I could follow on how to do that?
Hi @Rosie
Could you provide an example of how you like to show the table header and values?
Thanks
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my blog@Rosie Are you able to show your JSON output from your List rows - ContainerDetails action? If you could add the output in your post as a code sample </> then I could copy the data. I think we can extract out this data directly from that action into objects that you can then use within your HTML table.
Hello, I have to click download to get the output, for some reason it does not display the output link.
I put in a Parse json step so I could more easily see the output.
Here it is from the List rows step:
{"statusCode":200,"headers":{"Vary":"Accept-Encoding","x-ms-service-request-id":"507dd382-d0d9-4173-b101-9f85af3f7f8f,1b427fcf-758d-44ef-8559-e6a5efaf5dfe","Cache-Control":"no-cache","Set-Cookie":"ARRAffinity=70b4fb972ddbadf5335293fdaecf0f9b6af12694d3ca8d2e4052f297da06add2eb29bb4b19df1459d2ea781b605f33064b9fea1f144b525b9d7676625c4ffb5408DB098088D1FD6D1356514174; domain=portnelsonuat.crm6.dynamics.com; path=/; secure; HttpOnly,ReqClientId=ad02bab0-394f-44d3-bd16-9527ae1c1651; expires=Wed, 08-Feb-2073 02:29:45 GMT; path=/; secure; HttpOnly,ARRAffinity=70b4fb972ddbadf5335293fdaecf0f9b6af12694d3ca8d2e4052f297da06add2eb29bb4b19df1459d2ea781b605f33064b9fea1f144b525b9d7676625c4ffb5408DB098088D1FD6D1356514174; domain=portnelsonuat.crm6.dynamics.com; path=/; secure; HttpOnly","Strict-Transport-Security":"max-age=31536000; includeSubDomains","REQ_ID":"1b427fcf-758d-44ef-8559-e6a5efaf5dfe","AuthActivityId":"f5a99caa-e222-4cbb-8bad-f628cb7c9920","x-ms-dop-hint":"8","x-ms-ratelimit-time-remaining-xrm-requests":"1,200.00","x-ms-ratelimit-burst-remaining-xrm-requests":"5999","OData-Version":"4.0","Preference-Applied":"odata.include-annotations=\"*\"","X-Source":"311765219464208317923620416615596179611941772451318820614017514422510410158248214541,23583104222159105109103993252108207014714030165219513323148311872310118510983132","Public":"OPTIONS,GET,HEAD,POST","Date":"Wed, 08 Feb 2023 02:29:47 GMT","Allow":"OPTIONS,GET,HEAD,POST","Content-Type":"application/json; odata.metadata=full","Expires":"-1","Content-Length":"3936"},"body":{"@odata.context":"https://portnelsonuat.crm6.dynamics.com/api/data/v9.1/$metadata#qp_orderses(qp_order,qp_Containers_qp_Orders_qp_Orders(qp_containerid,qp_bladderno,qp_sealno))","#Microsoft.Dynamics.CRM.DeleteMultiple":{"title":"DeleteMultiple","target":"https://portnelsonuat.crm6.dynamics.com/api/data/v9.1/qp_orderses/Microsoft.Dynamics.CRM.crmbaseentity/Microsoft.Dynamics.CRM.DeleteMultiple"},"@Microsoft.Dynamics.CRM.totalrecordcount":-1,"@Microsoft.Dynamics.CRM.totalrecordcountlimitexceeded":false,"@Microsoft.Dynamics.CRM.globalmetadataversion":"60420318","value":[{"@odata.type":"#Microsoft.Dynamics.CRM.qp_orders","@odata.id":"https://portnelsonuat.crm6.dynamics.com/api/data/v9.1/qp_orderses(e58db826-58a7-ed11-aad0-0022481438cf)","@odata.etag":"W/\"60420442\"","@odata.editLink":"qp_orderses(e58db826-58a7-ed11-aad0-0022481438cf)","qp_order":"Test Feb Pick Up 01","qp_ordersid@odata.type":"#Guid","qp_ordersid":"e58db826-58a7-ed11-aad0-0022481438cf","qp_Containers_qp_Orders_qp_Orders@odata.associationLink":"https://portnelsonuat.crm6.dynamics.com/api/data/v9.1/qp_orderses(e58db826-58a7-ed11-aad0-0022481438cf)/qp_Containers_qp_Orders_qp_Orders/$ref","qp_Containers_qp_Orders_qp_Orders@odata.navigationLink":"https://portnelsonuat.crm6.dynamics.com/api/data/v9.1/qp_orderses(e58db826-58a7-ed11-aad0-0022481438cf)/qp_Containers_qp_Orders_qp_Orders","qp_Containers_qp_Orders_qp_Orders@odata.type":"#Collection(Microsoft.Dynamics.CRM.qp_containers)","qp_Containers_qp_Orders_qp_Orders":[{"@odata.type":"#Microsoft.Dynamics.CRM.qp_containers","@odata.id":"https://portnelsonuat.crm6.dynamics.com/api/data/v9.1/qp_containerses(25d77134-58a7-ed11-aad0-00224814f88b)","@odata.etag":"W/\"60420440\"","@odata.editLink":"qp_containerses(25d77134-58a7-ed11-aad0-00224814f88b)","qp_containerid":"FEBU0001","qp_bladderno":"BL00019","qp_sealno":"SL0019","_qp_orders_value@OData.Community.Display.V1.FormattedValue":"Test Feb Pick Up 01","_qp_orders_value@Microsoft.Dynamics.CRM.associatednavigationproperty":"qp_Orders","_qp_orders_value@Microsoft.Dynamics.CRM.lookuplogicalname":"qp_orders","_qp_orders_value@odata.type":"#Guid","_qp_orders_value":"e58db826-58a7-ed11-aad0-0022481438cf","qp_containersid@odata.type":"#Guid","qp_containersid":"25d77134-58a7-ed11-aad0-00224814f88b","qp_Orders@odata.associationLink":"https://portnelsonuat.crm6.dynamics.com/api/data/v9.1/qp_containerses(25d77134-58a7-ed11-aad0-00224814f88b)/qp_Orders/$ref","qp_Orders@odata.navigationLink":"https://portnelsonuat.crm6.dynamics.com/api/data/v9.1/qp_containerses(25d77134-58a7-ed11-aad0-00224814f88b)/qp_Orders"},{"@odata.type":"#Microsoft.Dynamics.CRM.qp_containers","@odata.id":"https://portnelsonuat.crm6.dynamics.com/api/data/v9.1/qp_containerses(e0e36b40-58a7-ed11-aad0-00224814f88b)","@odata.etag":"W/\"60420433\"","@odata.editLink":"qp_containerses(e0e36b40-58a7-ed11-aad0-00224814f88b)","qp_containerid":"FEBU0002","qp_bladderno":"BLN00029","qp_sealno":"SLN0029","_qp_orders_value@OData.Community.Display.V1.FormattedValue":"Test Feb Pick Up 01","_qp_orders_value@Microsoft.Dynamics.CRM.associatednavigationproperty":"qp_Orders","_qp_orders_value@Microsoft.Dynamics.CRM.lookuplogicalname":"qp_orders","_qp_orders_value@odata.type":"#Guid","_qp_orders_value":"e58db826-58a7-ed11-aad0-0022481438cf","qp_containersid@odata.type":"#Guid","qp_containersid":"e0e36b40-58a7-ed11-aad0-00224814f88b","qp_Orders@odata.associationLink":"https://portnelsonuat.crm6.dynamics.com/api/data/v9.1/qp_containerses(e0e36b40-58a7-ed11-aad0-00224814f88b)/qp_Orders/$ref","qp_Orders@odata.navigationLink":"https://portnelsonuat.crm6.dynamics.com/api/data/v9.1/qp_containerses(e0e36b40-58a7-ed11-aad0-00224814f88b)/qp_Orders"}],"qp_Containers_qp_Orders_qp_Orders@odata.nextLink":"https://portnelsonuat.crm6.dynamics.com/api/data/v9.1/qp_orderses(e58db826-58a7-ed11-aad0-0022481438cf)/qp_Containers_qp_Orders_qp_Orders?$select=qp_containerid,qp_bladderno,qp_sealno"}]}}
This is from the parse json step:
In the dynamic content I only get the Body and Item fields
{
"body": [
{
"@odata.type": "#Microsoft.Dynamics.CRM.qp_orders",
"@odata.id": "https://portnelsonuat.crm6.dynamics.com/api/data/v9.1/qp_orderses(e58db826-58a7-ed11-aad0-0022481438cf)",
"@odata.etag": "W/\"60420442\"",
"@odata.editLink": "qp_orderses(e58db826-58a7-ed11-aad0-0022481438cf)",
"qp_order": "Test Feb Pick Up 01",
"qp_ordersid@odata.type": "#Guid",
"qp_ordersid": "e58db826-58a7-ed11-aad0-0022481438cf",
"qp_Containers_qp_Orders_qp_Orders@odata.associationLink": "https://portnelsonuat.crm6.dynamics.com/api/data/v9.1/qp_orderses(e58db826-58a7-ed11-aad0-0022481438cf)/qp_Containers_qp_Orders_qp_Orders/$ref",
"qp_Containers_qp_Orders_qp_Orders@odata.navigationLink": "https://portnelsonuat.crm6.dynamics.com/api/data/v9.1/qp_orderses(e58db826-58a7-ed11-aad0-0022481438cf)/qp_Containers_qp_Orders_qp_Orders",
"qp_Containers_qp_Orders_qp_Orders@odata.type": "#Collection(Microsoft.Dynamics.CRM.qp_containers)",
"qp_Containers_qp_Orders_qp_Orders": [
{
"@odata.type": "#Microsoft.Dynamics.CRM.qp_containers",
"@odata.id": "https://portnelsonuat.crm6.dynamics.com/api/data/v9.1/qp_containerses(25d77134-58a7-ed11-aad0-00224814f88b)",
"@odata.etag": "W/\"60420440\"",
"@odata.editLink": "qp_containerses(25d77134-58a7-ed11-aad0-00224814f88b)",
"qp_containerid": "FEBU0001",
"qp_bladderno": "BL00019",
"qp_sealno": "SL0019",
"_qp_orders_value@OData.Community.Display.V1.FormattedValue": "Test Feb Pick Up 01",
"_qp_orders_value@Microsoft.Dynamics.CRM.associatednavigationproperty": "qp_Orders",
"_qp_orders_value@Microsoft.Dynamics.CRM.lookuplogicalname": "qp_orders",
"_qp_orders_value@odata.type": "#Guid",
"_qp_orders_value": "e58db826-58a7-ed11-aad0-0022481438cf",
"qp_containersid@odata.type": "#Guid",
"qp_containersid": "25d77134-58a7-ed11-aad0-00224814f88b",
"qp_Orders@odata.associationLink": "https://portnelsonuat.crm6.dynamics.com/api/data/v9.1/qp_containerses(25d77134-58a7-ed11-aad0-00224814f88b)/qp_Orders/$ref",
"qp_Orders@odata.navigationLink": "https://portnelsonuat.crm6.dynamics.com/api/data/v9.1/qp_containerses(25d77134-58a7-ed11-aad0-00224814f88b)/qp_Orders"
},
{
"@odata.type": "#Microsoft.Dynamics.CRM.qp_containers",
"@odata.id": "https://portnelsonuat.crm6.dynamics.com/api/data/v9.1/qp_containerses(e0e36b40-58a7-ed11-aad0-00224814f88b)",
"@odata.etag": "W/\"60420433\"",
"@odata.editLink": "qp_containerses(e0e36b40-58a7-ed11-aad0-00224814f88b)",
"qp_containerid": "FEBU0002",
"qp_bladderno": "BLN00029",
"qp_sealno": "SLN0029",
"_qp_orders_value@OData.Community.Display.V1.FormattedValue": "Test Feb Pick Up 01",
"_qp_orders_value@Microsoft.Dynamics.CRM.associatednavigationproperty": "qp_Orders",
"_qp_orders_value@Microsoft.Dynamics.CRM.lookuplogicalname": "qp_orders",
"_qp_orders_value@odata.type": "#Guid",
"_qp_orders_value": "e58db826-58a7-ed11-aad0-0022481438cf",
"qp_containersid@odata.type": "#Guid",
"qp_containersid": "e0e36b40-58a7-ed11-aad0-00224814f88b",
"qp_Orders@odata.associationLink": "https://portnelsonuat.crm6.dynamics.com/api/data/v9.1/qp_containerses(e0e36b40-58a7-ed11-aad0-00224814f88b)/qp_Orders/$ref",
"qp_Orders@odata.navigationLink": "https://portnelsonuat.crm6.dynamics.com/api/data/v9.1/qp_containerses(e0e36b40-58a7-ed11-aad0-00224814f88b)/qp_Orders"
}
],
"qp_Containers_qp_Orders_qp_Orders@odata.nextLink": "https://portnelsonuat.crm6.dynamics.com/api/data/v9.1/qp_orderses(e58db826-58a7-ed11-aad0-0022481438cf)/qp_Containers_qp_Orders_qp_Orders?$select=qp_containerid,qp_bladderno,qp_sealno"
}
]
}
Hopefully this will get what you're looking for. If this isn't what you're after or have any issues - let me know.
See full flow below. I'll go into each of the actions.
List rows - ContainerDetails is the same as what you already have.
Select takes the output from List rows - ContainerDetails and maps the fields you want in your HTML table. Below are the expressions used:
//From
first(outputs('List_rows_-_ContainerDetails')?['body/value'])?['qp_Containers_qp_Orders_qp_Orders']
//Container ID
item()?['qp_containerid']
//Bladder No
item()?['qp_bladderno']
//Seal No
item()?['qp_sealno']
Create HTML table uses the output from the Select.
This would give you the following output.
Thanks so much @grantjenkins.
The select is very interesting and when I was following @abm solution I thought it must be possible to use this with multiple values, I tried but didn't succeed.
Thanks so much for the time you have given me.
Dear Community Members, We'd like to let you know of an upcoming change to the community platform: starting July 16th, the platform will transition to a READ ONLY mode until July 22nd. During this period, members will not be able to Kudo, Comment, or Reply to any posts. 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. What to Expect in the New Community: A more unified experience where all products, including Power Apps, Power Automate, Copilot Studio, and Power Pages, will be accessible from one community.Community Blogs that you can syndicate and link to for automatic updates. We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead!
We are excited to announce the Summer of Solutions Challenge! This challenge is kicking off on Monday, June 17th and will run for (4) weeks. The challenge is open to all Power Platform (Power Apps, Power Automate, Copilot Studio & Power Pages) community members. We invite you to participate in a quest to provide solutions to as many questions as you can. Answers can be provided in all the communities. Entry Period: This Challenge will consist of four weekly Entry Periods as follows (each an “Entry Period”) - 12:00 a.m. PT on June 17, 2024 – 11:59 p.m. PT on June 23, 2024 - 12:00 a.m. PT on June 24, 2024 – 11:59 p.m. PT on June 30, 2024 - 12:00 a.m. PT on July 1, 2024 – 11:59 p.m. PT on July 7, 2024 - 12:00 a.m. PT on July 8, 2024 – 11:59 p.m. PT on July 14, 2024 Entries will be eligible for the Entry Period in which they are received and will not carryover to subsequent weekly entry periods. You must enter into each weekly Entry Period separately. How to Enter: We invite you to participate in a quest to provide "Accepted Solutions" to as many questions as you can. Answers can be provided in all the communities. Users must provide a solution which can be an “Accepted Solution” in the Forums in all of the communities and there are no limits to the number of “Accepted Solutions” that a member can provide for entries in this challenge, but each entry must be substantially unique and different. Winner Selection and Prizes: At the end of each week, we will list the top ten (10) Community users which will consist of: 5 Community Members & 5 Super Users and they will advance to the final drawing. We will post each week in the News & Announcements the top 10 Solution providers. At the end of the challenge, we will add all of the top 10 weekly names and enter them into a random drawing. Then we will randomly select ten (10) winners (5 Community Members & 5 Super Users) from among all eligible entrants received across all weekly Entry Periods to receive the prize listed below. If a winner declines, we will draw again at random for the next winner. A user will only be able to win once overall. If they are drawn multiple times, another user will be drawn at random. Individuals will be contacted before the announcement with the opportunity to claim or deny the prize. Once all of the winners have been notified, we will post in the News & Announcements of each community with the list of winners. Each winner will receive one (1) Pass to the Power Platform Conference in Las Vegas, Sep. 18-20, 2024 ($1800 value). NOTE: Prize is for conference attendance only and any other costs such as airfare, lodging, transportation, and food are the sole responsibility of the winner. Tickets are not transferable to any other party or to next year’s event. ** PLEASE SEE THE ATTACHED RULES for this CHALLENGE** Week 1 Results: Congratulations to the Week 1 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Community MembersNumber SolutionsSuper UsersNumber Solutions Deenuji 9 @NathanAlvares24 17 @Anil_g 7 @ManishSolanki 13 @eetuRobo 5 @David_MA 10 @VishnuReddy1997 5 @SpongYe 9JhonatanOB19932 (tie) @Nived_Nambiar 8 @maltie 2 (tie) @PA-Noob 2 (tie) @LukeMcG 2 (tie) @tgut03 2 (tie) Week 2 Results: Congratulations to the Week 2 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 2: Community MembersSolutionsSuper UsersSolutionsPower Automate @Deenuji 12@ManishSolanki 19 @Anil_g 10 @NathanAlvares24 17 @VishnuReddy1997 6 @Expiscornovus 10 @Tjan 5 @Nived_Nambiar 10 @eetuRobo 3 @SudeepGhatakNZ 8 Week 3 Results: Congratulations to the Week 3 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 3:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji32ManishSolanki55VishnuReddy199724NathanAlvares2444Anil_g22SudeepGhatakNZ40eetuRobo18Nived_Nambiar28Tjan8David_MA22 Week 4 Results: Congratulations to the Week 4 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 4:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji11FLMike31Sayan11ManishSolanki16VishnuReddy199710creativeopinion14Akshansh-Sharma3SudeepGhatakNZ7claudiovc2CFernandes5 misc2Nived_Nambiar5 Usernametwice232rzaneti5 eetuRobo2 Anil_g2 SharonS2
On July 16, 2024, we published the 2024 release wave 2 plans for Microsoft Dynamics 365 and Microsoft Power Platform. These plans are a compilation of the new capabilities planned to be released between October 2024 to March 2025. This release introduces a wealth of new features designed to enhance customer understanding and improve overall user experience, showcasing our dedication to driving digital transformation for our customers and partners. The upcoming wave is centered around utilizing advanced AI and Microsoft Copilot technologies to enhance user productivity and streamline operations across diverse business applications. These enhancements include intelligent automation, AI-powered insights, and immersive user experiences that are designed to break down barriers between data, insights, and individuals. Watch a summary of the release highlights. Discover the latest features that empower organizations to operate more efficiently and adaptively. From AI-driven sales insights and customer service enhancements to predictive analytics in supply chain management and autonomous financial processes, the new capabilities enable businesses to proactively address challenges and capitalize on opportunities.
We're embarking on a journey to enhance your experience by transitioning to a new community platform. Our team has been diligently working to create a fresh community site, leveraging the very Dynamics 365 and Power Platform tools our community advocates for. We started this journey with transitioning Copilot Studio forums and blogs in June. The move marks the beginning of a new chapter, and we're eager for you to be a part of it. The rest of the Power Platform product sites will be moving over this summer. Stay tuned for more updates as we get closer to the launch. We can't wait to welcome you to our new community space, designed with you in mind. Let's connect, learn, and grow together. Here's to new beginnings and endless possibilities! If you have any questions, observations or concerns throughout this process please go to https://aka.ms/PPCommSupport. To stay up to date on the latest details of this migration and other important Community updates subscribe to our News and Announcements forums: Copilot Studio, Power Apps, Power Automate, Power Pages