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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

Power automate to reset date in batches, and import movement journal

(3) ShareShare
ReportReport
Posted on by 17
Hello
 
I'd really appreciate your insight how to achieve in power auotmate.
 
I am trying to create an automated flow to move away from manual work for the business. I encountered three problems. If you could refer below current practice steps:
1. Automate flow works to write item batches, this has no problem.
2. Couldn't figure out the way to reset those dates using cloud flow. The logic is to simply override with null values for those dates from "Item batches" data entity when update a record in cloud flow. It does not accept null value. Error msg attached.
3. To create a header record, I have to ensure the next number of the journal number sequence. "Number sequence code V2" data entity has the information, but it is not found in power automate. I can only find it in DMF.
4. "InvenotryMovementJournlaEntriesV4" does not accept null value
In power automate, it seems following fields are required: Configuration, Color, Size, Version, License plate, GTD number, Owner, Inventory profile, Line number (I would hope it would auto increment)
We enter nothing in "Inventory movement journal headers and lines V4" data entity template if were to import via DMF.
 
 
Current practice
1. Import "Item batches" data entity via DMF
2. Manually Reset shelf-life dates (for particular items)
*Understand Mfg. date is a required field in Item batches and Expiration date auto-calculated in the back end by adding "Shelf-life period in days" from Released product.
Case 1) Manufacturing date not needed: remove Manufacturing date
Case 2) Expiration date not needed: Removed Best before date and Expiration date
Case 3) Both Manufacturing date and Expiration date not needed: Remove all
3. Manually create Inventory movement journal header to generate next Journal number e.g. INJ#
4. Import "Inventory movement journal headers and lines V4" data entity for the line details
 
Thanks,
Seu
NullValue not accepted.png
I have the same question (0)
  • Adis Profile Picture
    6,486 Super User 2026 Season 1 on at
    Hi,
     
    Not sure if it is only me, however, I cant see your screenshots.
    This is what I see..
     

    Kind regards, Adis

     

    If this helped, please mark it as "Verified" for others facing the same issue

    Keep in mind that it is possible to mark more than one answer as verified

  • Martin Dráb Profile Picture
    238,745 Most Valuable Professional on at
    Let me add a crucial piece of information, that I derived from the object names: this question is about Finance and Operation.
     
    I don't see pictures either (there seems to be a problem with pictures for several days).
  • SL-28072256-0 Profile Picture
    17 on at
    hello I actually figured this out! thanks
  • André Arnaud de Calavon Profile Picture
    303,247 Super User 2026 Season 1 on at
    Hi,

    Thanks for mentioning that you found your answer. Would you like to share this in detail as an reply, so others can learn from it as well?
  • SL-28072256-0 Profile Picture
    17 on at
     
    Sorry it took some time to get back to you. Sharing the findings: Could you help with 2. Mfg & Exp date reset using flow?
     
    Solved
    3. To create a header record, I have to ensure the next number of the journal number sequence. "Number sequence code V2" data entity has the information, but it is not found in power automate. I can only find it in DMF. > The next number is found with "SequenceV2Tables" in OData feed. 
     
    Not Solved
    2. Couldn't figure out the way to reset those dates using cloud flow. The logic is to simply override with null values for those dates from "Item batches" data entity when update a record in cloud flow. It does not accept null value.
     
    Manual practice:
    Using "Reset shelf life dates" under Reset action pane in item batches, remove dates that are not needed.
    Case 1) Manufacturing date not needed: Remove Manufacturing date
    Case 2) Expiration date not needed: Remove Best before date and Expiration date
    Case 3) Both Manufacturing date and Expiration date not needed: Remove all 
     
    Using Cloud Flow -
    Case1) & 3) Solved using "1900-01-01T00:00:00" in Mfg date parameter
    Case 2) NOT Solved. Expiration date not needed:
    Even if Expiration date parameter is set to "1900-01-01T00:00:00", when a Manufacturing Date (Mfg) exists, the system auto-calculates Best Before Date and Expiration Date based on the Shelf-Life Period in Days defined in the Released Product. For part numbers that do not expire, Shelf-Life Period in Days is set to 9999. This results in a calculated date instead of an empty value.
    Example: 
    • Mfg Date: 1/1/2025
    • Shelf-Life Period: 9999 days
    • Auto-calculated Best Before Date and Expiration Date: 5/18/2052
    Desired result:
    • Mfg Date: 1/1/2025
    • Shelf-Life Period: 9999 days
    • Auto-calculated Best Before Date and Expiration Date: Empty
     
     
    Exp date parameter.png
  • Suggested answer
    André Arnaud de Calavon Profile Picture
    303,247 Super User 2026 Season 1 on at
    Hi,
     
    Dynamics 365 F&O can't deal with null values as field value. It is either an empty string, a zero value, or in case of dates,  it is 1/1/1900. At least the time in GMT time zone. Maybe the time zone is the issue here. Have you tried setting only the date using e.g. the format 'yyyy-MM-ddZ'?

    I can recall that I had to use a trick in the past with a zero date, but can't remember in which flow. I think I used the date 1899-12-31 or 1899-12-30 as a workaround once.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Pallavi Phade Profile Picture

Pallavi Phade 102 Super User 2026 Season 1

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 55 Super User 2026 Season 1

#2
ManoVerse Profile Picture

ManoVerse 55 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans