Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Update field value from F&O to Invoice Capture App

(1) ShareShare
ReportReport
Posted on by 2
Hi Team, 
I have one requirement in D365 Invoice capture App. Once we upload the invoice as attachment it will get all the details from the attachment including purchase number. But some purchase number starts with 'D'(Which is nothing but Ibuy number) for those we need to get the D365 Purchase ID value by filtering the Ibuy number field from D365 Purchase table and get the Purchase ID Value in F&O and update it in Invoice capture App purchase ID field and also the Ibuy number into Invoice Capture Ibuy Field in invoice capture App. How we can achieve this?
Categories:
  • Suggested answer
    Holly Huffman Profile Picture
    4,381 on at
    Update field value from F&O to Invoice Capture App
    Good morning, afternoon, or evening - depending on your location :)
    Hope you are well today!
     
    To achieve this functionality in your D365 Invoice Capture App, here’s a high-level approach you could follow:
    1. Extract Purchase Number: After the invoice attachment is uploaded, ensure the application parses the attachment and extracts the purchase number.
    2. Identify Ibuy Numbers: Apply a conditional check to identify purchase numbers that start with ‘D’, which indicates they are Ibuy numbers.
    3. Query D365 Purchase Table: Utilize D365 APIs or other integration methods to query the Purchase Table in D365 Finance & Operations (F&O). Filter results based on the extracted Ibuy number. This requires ensuring access to the Purchase Table and knowing its schema.
    4. Retrieve Purchase ID: Fetch the corresponding Purchase ID value from D365 using the filtered Ibuy number.
    5. Update Invoice Capture App Fields: Through integration or API methods for the Invoice Capture App, update the relevant fields:
      • Map the retrieved Purchase ID to the Purchase ID field in Invoice Capture.
      • Map the Ibuy number to the Ibuy field in Invoice Capture.
    6. Automation: To streamline the process, consider implementing a background workflow or function triggered upon invoice upload. This can automate steps from purchase number extraction to field updates.
    7. Error Handling: Add logic to handle scenarios where the Ibuy number is not found in the D365 Purchase Table or other potential issues.
     
    Hope this helps :)

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,361 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,516 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans