cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Advocate II
Advocate II

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
Community Support

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
Community Support

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 Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (10,531)