web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Add Row to a table bas...
Power Apps
Unanswered

Add Row to a table based on entry from another table

(0) ShareShare
ReportReport
Posted on by 88

Hi all,

 

I have a business process flow that is going to be used for our organisations unit mobilisation process.

 

In our SDC (Sales Data Capture) table we provide a unit code for a newly mobilised contract. The flow I am using sends an approval request to the approver, the approver then puts a unit code into the comments and I use the comments response as the field to populate the unit code column in the SDC table. Note, the unit code column is a lookup to a unit code master table that is updated via a dataflow from Oracle JD Edwards.

 

At the moment I have the below:

 

THowkins96_0-1679484520584.pngTHowkins96_1-1679484532687.png

 

But this flow is failing, presumably because of the column being a lookup? The records I am trialing it with do exist but have been getting the below error:

 

"URL was not parsed due to an ODataUnrecognizedPathException. Resource not found for the segment provided in the URL."

 

Can anyone please assist in how I can firstly populate the unit code field with approval response comment and secondly how I can then use that field to add a new row to my second table.

 

Thanks

Tom

I have the same question (0)
  • Mira Ghaly Profile Picture
    11,413 Moderator on at

    @THowkins96 

    To set a lookup column you will need to get the GUID of the unit code, so I assume the unit code you are getting in the comments in the name of the unit code so you need to use List Rows on the unit code table with a filter expression like

    publisherPrefix_primarycolumnname eq 'Code Unit Name' and then to set the lookup it should be set in the below way.

    /unitcodetablelogicalnameinplural/GUIDfromtheListRowsfirstitem

     

    Hope this gives you an idea !

     

  • THowkins96 Profile Picture
    88 on at

    Hi @Mira_Ghaly 

     

    Would you be able to break that down a bit more for me please, I am not too confident with Power Automate so might need this explained to me in a more in depth way so I can follow please?

     

    I managed to get this far with your response currently.

     

    THowkins96_0-1679486019785.png

     

  • Mira Ghaly Profile Picture
    11,413 Moderator on at

    @THowkins96 

    Yes sure so on List rows on the Filter rows add the query to get the unit code id from the name

     

    I am not sure about your column names so it will be something similar to the below

     

    xx_name eq 'pass here value from code unit'

    Mira_Ghaly_0-1679487015922.png

    Compose Expression

    first(outputs('List_rows')?['body/value'])['mg_sampletableid']

     

  • THowkins96 Profile Picture
    88 on at

    Thanks, would the select columns name be the schema name? If yes, would the below be correct?

     

    THowkins96_0-1679489331599.png

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 793 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 333 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard