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 Automate / Update List using look...
Power Automate
Unanswered

Update List using lookup field

(0) ShareShare
ReportReport
Posted on by 26

Hello,

 

Need help on creating scheduled flow:

Products List

Product Code

Product Name

Product Expiry

 

Orders List

Product Name(Lookup)

Product Code

Order Date

Quantity

 

Each Product Name has unique Product code.

 

I need to update Product Code in Orders list at regular intervals.  I tried to get help from this post but no luck so far. This is what i have tried so far and I am stuck at highlighted step below:

  • Define Interval
  • Get Items - Products List
  • Apply to each
  • Condition - To match item that needs to be updated
  • Update Item if condition matches

 

Thanks in advance.

 

 

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

    Hi @kodnil2020 

    So the step that you can't achieve is to update the product Code in the Order Record?

    Can you paste a screenshot of this step please ?

     

  • kodnil2020 Profile Picture
    26 on at

    Hi @Mira_Ghaly

     

    1. How to match product name from 2 lists?

    2. What to mention in ID field to update the exact match?

    Capture.PNG 

  • Mira Ghaly Profile Picture
    11,413 Moderator on at

    @kodnil2020

    After retrieving your product list and in the first loop, make another Get Items action on the orders and add Filter Query: order product name column eq product name from the first loop this way you get all orders related to products.

    Then 2nd loop to update the product code to the product code from your product list first loop.

     

    If this helps you please mark as an accepted solution 

  • kodnil2020 Profile Picture
    26 on at

    Can you please share some sample for filter query?

  • Mira Ghaly Profile Picture
    11,413 Moderator on at

    @kodnil2020 

    Filter Query on Get Items as below:

    Mira_Ghaly_0-1595723452671.png

     

     

  • kodnil2020 Profile Picture
    26 on at

    @Mira_Ghaly ,

    I am getting below error on filter query:

    message""The expression \"Product1 eq items('Apply_to_each')?['Product_Name']?['Value']\" is not valid.
     
    Below is the screen shot of the flow:SS1.PNG

     

    SS2.PNG

     

    SS3.PNG

     

  • Mira Ghaly Profile Picture
    11,413 Moderator on at

    @kodnil2020 

    on the Filter Query Left side add the Column name in the orders table 

    Product_x0020_Name eq 'add the value from the Dynamics Content'

    Mira_Ghaly_0-1595757870278.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 Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard