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
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (9,467)