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 / D365 F&O create Item a...
Power Automate
Answered

D365 F&O create Item arrival journal with Power Automate

(0) ShareShare
ReportReport
Posted on by 1,757
Hello, does anyone know how better to 'predict' the next arrival Journal number in D365 F&O?
In Power Automate I use the 'Create Record' action to create a new arrival journal in entity "ItemArrivalJournalHeadersV2", but I continue to fail.
 

D365 F&O only allows you to create a new item arrival journal in the "ItemArrivalJournalHeadersV2" entity if you define exactly the next sequential number. The problem is that the sequence does not seem to follow a +1 process. If the last journal is for example 5999, then the next journal number can be 6000, 6005 or 6412. I cannot get a grip on it. I have written a 'Do until' loop with 1000 iterations, but that only works so now and then.

Previous I thought I had a solution by building in some delays, but it still does not work.

 

Thank you in advance for your time/ideas.

Happy flowing,

Koen

Categories:
I have the same question (0)
  • Verified answer
    Heartholme Profile Picture
    1,278 Super User 2024 Season 1 on at

    Hi @Koen5 ,

     

    I've ran into this exact issue as well, with both this journal and other journals. ItemArrivalJournals does not follow a +1 sequence like you say. This is because whenever you post Item Arrivals, through PO's etc, the record is posted as an item arrival journal, but don't show up in the "ItemArrivalJournalHeadersV2" entity. Since this entity is only showing journals specifically posted through Item Arrival. I initially did something like you, and iterated upwards from the last journal in ItemArrivalJournals, but ran into the same issues as you did, where you can end up being so far behind on the ItemArrivalJournalHeadersV2 seq. number. Since you almost never create Item arrivals manually through a journal. At least not compared to other item arrivals. 

     

    So for a good solution to this, you have two options: 

    1. Coordinate with a developer to make a custom entity, where you can create item arrival journal without including the item arrival journal number. 
    2. Coordinate with a developer and have them setup an Azure function which writes to ItemArrivalJournals. Then you will be able to post HTTP request to the Azure function which is then posted to the system. For some reason, it's possible to post to this entity through Azure functions without needing the next Journal Batch Number in the sequence, but not from PowerAutomate. 

    In my opinion this is something that should be possible with PowerAutomate, so I suggest that you post it to the PowerAutomate suggestion page. I'll do the same, and hopefully selecting the next number in the number sequence for all journals will be in a future release. 

     

    Hopefully I were able to provide some clarity on the issue. 

     

    Br

    Joachim 

  • Unknown geen idee Profile Picture
    1,757 on at

    Dear Joachim,

    Thank you for your input. Knowing that you have experienced/tried the same at least makes me think that I am not a complete idiot in missing something obvious.

    Including a developer at this stage is not open to me (resources are tight), thanks for the suggestion though.

     

    Happy flowing,

    Koen

  • Heartholme Profile Picture
    1,278 Super User 2024 Season 1 on at

    @Koen5

     

    You most definately are not. I've spend a lot of hours trying the exact things you have. 

     

    Yes, it is for a lot of users, which is why I also think that this should be standard where you have to select the next in sequence, like it is for other developer applications on the Microsoft platform. So hopefully it will be added in the future. 

     

    You could try to go for a hybrid solution, where the user will first create the journal, and then trigger a subsequent flow from Forms/PowerApps, with the information on the lines is added from a different source for example. 

     

    Best of luck going forward. 

     

    { If my post answered your question, please Accept it as a solution ✔ }
    { This will in turn help others find solutions to similar questions }

    Best Regards
    Heartholme

     

     

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

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard