cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
ICM
Level: Powered On

Set date variable to currently selected CDS field

Hi,

 

I'm trying to set a variable to a field value of a currently selected CDS field.

I have a form that originates from a gallery list, having selected a specific record.

In the OnVisible property I'm trying to set a variable to one of the date fields of the current record. I need to reference the data directly and not the related data card.

This is an example of what I've tried -

 

Set(Time_Stamp, 'CDS Data'.Field1_TimeStamp)

 

Thanks in advance for any assistance.

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Set date variable to currently selected CDS field

Hi @ICM,

 

If you would like to save the timestamp of current record, then the formula should be:

Set(Time_Stamp, Gallery.Selected.Field1_TimeStamp)

See if this would work.

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Community Support Team
Community Support Team

Re: Set date variable to currently selected CDS field

Hi @ICM,

 

If you would like to save the timestamp of current record, then the formula should be:

Set(Time_Stamp, Gallery.Selected.Field1_TimeStamp)

See if this would work.

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Demo Extravaganza Championship Voting Open

Voting Ends: October 30, 2019!

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

Top Kudoed Authors
Users Online
Currently online: 372 members 4,837 guests
Recent signins:
Please welcome our newest community members: