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 Apps / Calculated date field ...
Power Apps
Unanswered

Calculated date field doesn´t get populated when pasting into another field

(0) ShareShare
ReportReport
Posted on by 19

Hi all

 

My goal is to automatically update a date field by 1 year once a certain date has been reached.

Name of the field: Next review date (type: simple - date only)

To update it I´ve created another calculated field which takes the next review date and adds a year to it.

Markus_Benning_0-1690276412847.png

 

In the next step I´ve created a workflow which copies the "Next Review date Plus Year" value and paste it into "Next Review date" if certain conditions meet the requirements.

The workflow runs sucessefully but after it ran the next review date is blank.

Markus_Benning_1-1690276654115.png

 

What can I do?

 

Thank you very much ahead of time!

 

Btw. this is the whole workflow:

1. Workflow runs every day at 05:00 am

2. Graps information by fetch XML

3. Paste the calculated date into "Next Review date" field

 

1.

Markus_Benning_2-1690277769584.png

2.

Markus_Benning_1-1690277724968.png

3. 

Markus_Benning_3-1690277833492.png

 

 

 

Regards

 

Markus

I have the same question (0)
  • Parvez Ghumra Profile Picture
    1,579 Moderator on at

    @Markus_Benning What is the trigger of your Cloud Flow? Can you also share a screenshot of the logic of the Update action in your Cloud Flow in the designer

  • Markus_Benning Profile Picture
    19 on at

    Done

  • Parvez Ghumra Profile Picture
    1,579 Moderator on at

    @Markus_Benning What are the properties of your Compose action and what expression are you using to set the value of Next Review Date in your Update action?

  • Markus_Benning Profile Picture
    19 on at

    The compose step fundementally doesn´t play no role I just tried if the the workflow works if I put the output of the fetch xml query into compose. I do not even use the compose values in the further setp.

    Not sure if I understand you correctly. You want to know the expressions that I use to check if conditions are met? If that´s the case I only grap those records which do meet the following requirements that way:

     

    <fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
    <entity name="car_contracts">
    <attribute name="car_contractsid" />
    <attribute name="car_contractname" />
    <attribute name="createdon" />
    <order attribute="car_contractname" descending="false" />
    <filter type="and">
    <filter type="and">
    <condition attribute="car_nextreviewdate" operator="last-seven-days" />
    <condition attribute="statecode" operator="eq" value="0" />
    </filter>
    </filter>
    </entity>
    </fetch>

     

    The logic is that for each record which matches the above criteria the next review date gets updated.

    If that´s not your question please let me know.

     

     

  • mjburley Profile Picture
    370 on at

    I fell into exactly the same trap a couple of weeks back using a fetchXML query. 

     

    You do not name the "car_nextreviewdate" as one of the attributes to return, it's just used in the filter!

     

    Just add the line 

    <attribute name="car_nextreviewdate" />

  • Markus_Benning Profile Picture
    19 on at

    Unfortunately that did not work for me. However, I´ve now solved it with Compose. Thank you for you help!

  • Verified answer
    Markus_Benning Profile Picture
    19 on at

    I solved the issue by using compose function.

    Now the date gets populated in the required field.

    This was obviously a format issue.

    Markus_Benning_0-1690380381263.png

     

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard