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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to Pass date to a ...
Power Apps
Unanswered

How to Pass date to a Flow

(0) ShareShare
ReportReport
Posted on by 16

I would like to update record in Dynamic 365.

 

Created a flow in PowerApps where i am passing, other parameters and they are getting updated On Save.

 

OnSelect of Save button:

 

UpdateRecord.Run(
Gallery1.Selected.activityid,
LookUp(data,_eis_area_label = DataCardValue26.Selected.Value,eis_area),
LookUp(data,_eis_district_label = DataCardValue27.Selected.Value,eis_district),
LookUp(data,_eis_region_label = DataCardValue24.Selected.Value,eis_region)
)

 

along with them i want to pass date and update it.

Pic1.PNG
Categories:
  • Meneghino Profile Picture
    6,949 on at

    There are two things you can try:

    1) Simply passing the date as a date

    2) Passing the date as text in format "yyyy-mm-dd", i.e. today would be "2018-03-19"

     

    One of these or both should work.

  • AnuNampallu Profile Picture
    16 on at

    On Save it should pick the date from screen.

     

    But in PowerApps, card for Date is divided saperately for day,hour and minutes.

    I belive i need to concatinate them and pass.

     

    i tried this----

     

    UpdateContext({Scheduledstart:Text(DateValue1.SelectedDate + Time(Value(HourValue1.Selected.Value),Value(MinuteValue1.Selected.Value),0))});
    UpdateRecord.Run(
    Gallery1.Selected.activityid,
    Scheduledstart,
    LookUp(data,_eis_area_label = DataCardValue26.Selected.Value,eis_area),
    LookUp(data,_eis_district_label = DataCardValue27.Selected.Value,eis_district),
    LookUp(data,_eis_region_label = DataCardValue24.Selected.Value,eis_region)
    )

     

    as of now i,m getting invalid number of arguments(which is true), as i didnt handle this extra parameter over there.

     

    if this approach is fine, how should i handle it in flow.

  • Meneghino Profile Picture
    6,949 on at

    You said 'date', what you mean is 'datetime', these are two different variable types.

    However, your issue seems that you do not have the right number of parameters.

    This is not set by PowerApps, but in Flow.  Once the Flow is updated with the right number of parameters, you need to delete it and reconnect to it in PowerApps (I believe it is not possible to refresh as with other data sources).

    Please let me know if this helps, and if not we can hop on a quick Skype call later today or tomorrow.

  • AnuNampallu Profile Picture
    16 on at

    When i tried to update Flow, i'm not able to see Start Date automaticlly in Dynamic content.(Where i could see earlier columns like area,region and district).

    Is there anything that i am missing?.

     

    checked other card properties, for Update property they have - 

    DataSourceInfo(Meetings, DataSourceInfo.AllowedValues, "_eis_district_label")

    but for Start Date -

    DateValue1.SelectedDate + Time(Value(HourValue1.Selected.Value), Value(MinuteValue1.Selected.Value), 0)

     

    By any chance, Is this is the reason behind not automatically getting Start Date in Dynamic Content.

     

     

     

     

     

  • Meneghino Profile Picture
    6,949 on at

    In Flow you can normally use the 'ask in PowerApps' option to add a parameter to the flow.

  • AnuNampallu Profile Picture
    16 on at

    I did tried with 'ask in PowerApps', where it was creating new column rather than showing all columns in datasource.

     

    However, created another flow from scrach and while Update Record(action), i could able to see columns automatically when clicked on 'ask in PowerApps'.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 393 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 278 Most Valuable Professional

Last 30 days Overall leaderboard