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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Populate a specific va...
Power Automate
Unanswered

Populate a specific value on the invoice entity from List Record to contact form (CRM)

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi all, 

 

I'm new to MS Flow. This is probably my third time to build a flow. 

 

Anyhoooo, I want this flow to update 5 fields (i.e. Invoice URL 1, Invoice URL 2 ... Invoice URL 5) on the contact form when an invoice (including an invoice URL) is created in D365 CE. 

 

Here is what I built so far:Full FlowFull FlowInvoice URL fields on Contact FormInvoice URL fields on Contact Formimage.png

When an invoice is created -> wait for 30s -> List 5 invoices (Sort by DueDate asc) which have the same ContactID as the new invoice created -> List this contact -> Update 5 URL fields on this contact, i.e. the URL from the first invoice goes to Invoice URL 1, the URL from the second goes to Invoice URL 2......

 

The above flow works fine without errors. However, I'm having trouble with identifying top 2d, top 3rd, top 4th and top 5th from the invoice list and populating each of them to the 5 URL fields. 

 

Hopefully, I have explained myself. 

 

Please share your thoughts. 

 

Many thanks. 

Categories:
  • abm abm Profile Picture
    33,004 Most Valuable Professional on at

    Hi @Anonymous 

     

    Think I understood your issue. So in your screenshot I can't see the mapping of those fields Invoice URL 2 to 5.  Do you have each defined fields in D365? 

     

    Please let me know.

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up.

     

    Thanks

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    HI @abm ,

     

    Thanks for your reply. 

     

    Do you mean the invoice URL field in the Invoice entity? Here is a screenshot of the invoice form which has a field of invoice URL. 

    InvoiceInvoice

    I want to pick up the top 5 invoices under this contact person and populate their 5 URLs into 5 fields in the contact entity. 

    image.png

    Have I answered your questions? 

    I was hoping to use "list Invoice records by ContactPerson" to query these invoices. 

    image.png

    Please share your thought

    Many thanks. 

  • abm abm Profile Picture
    33,004 Most Valuable Professional on at

    Hi @Anonymous 

     

    Thanks for your reply and screenshot.

     

    The reason you can't map to other fields is it's the same field mapping you need to do in other fields.

     

    What you need to do is use an index to determine whether it is the first record, second, third and so on. Then map the same field you mapped under the other fields depends on the index.

     

    If you need further help please let me know.

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up.

     

    Thanks

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 292 Super User 2026 Season 2

#2
Henil Profile Picture

Henil 128

#3
anirudhev Profile Picture

anirudhev 124

Last 30 days Overall leaderboard