web
You’re offline. This is a read only version of the page.
close
Skip to main content
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

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:
I have the same question (0)
  • abm abm Profile Picture
    32,858 Most Valuable Professional on at
    Re: Populate a specific value on the invoice entity from List Record to contact form (CRM)

    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
    on at
    Re: Populate a specific value on the invoice entity from List Record to contact form (CRM)

    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
    32,858 Most Valuable Professional on at
    Re: Populate a specific value on the invoice entity from List Record to contact form (CRM)

    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

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 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard