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 / writing the same infor...
Power Apps
Answered

writing the same information as another datacard

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi

I have a Name field (Person field in SPO) and a date field, when a user is completing my form, which is a canvas app linked to SPO list, I'd like the same data that is entered in: DataCardValue20_2 to be written to DataCardValue28_2 (so the same person to be copied over to another datacard, rather than getting users to type this in when they get to different parts of the form)

And the same with Date and Time field if that is possible with date and time fields?

 

I also am tying to change an invisible field which updates the status of my form, but I have now a different scenario where, i'd like it to auto update to 'Part A Rejected' if the DataCardValue22_2 is set to Rejected, and change to 'Part B Complete' if DataCardValue22_2 is set to Accepted, I am using a toggle for this.

Any help will be appreciated.

 

Thanks

Categories:
I have the same question (0)
  • Verified answer
    eka24 Profile Picture
    20,925 on at
    Generally if you want to copy onto another: in the default property of DataCardValue28_2 Put : DataCardValue28_1.Text

    This will copy whatever in DataCardValue28_1 into DataCardValue28_2. For datefield, it will be DatePicker2 will be DatePicker1.SelectedDate
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @eka24 

    I've tried your suggestion and entered on DatacardValue28_2 the following under the default property but it doesn't write to that datacard, I've submitted the form and gone back to view it but field is empty:

     

    DataCardValue20_2.Selected

    and tried this

    DataCardValue20_2.Selected.Value

     

    It's a person field, does this need to use a different fx ?

     

    I've tried the date field and that works

  • eka24 Profile Picture
    20,925 on at

    Please take a screen shot of the form and share. it will help.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @eka24 

    Afraid due to the tightly secured env. i work in, i cannot take pic of the form, but its a normal edit form.

     

    When I enter DataCardValue20_2.Selected in the Default property of the datacard it doesn't complain, but it doesn't copy over the information found in DataCardValue20_2... my only guess is it's due to be a person field type?

  • eka24 Profile Picture
    20,925 on at
    Try watching this video on Patching Person Column etc:
    https://youtu.be/gsk14D-CYRE

    Hope it helps.
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @eka24 

    Is this the correct way of getting what is in the person field in DataCardValue20_2 into DataCardValue28_2 by patching DataCardValue28_2 field with what was mentioned in the video, excluding the gallery bit as it doesn't work for me

     

    Patch(ListName,{Person: DataCardValue20_2.Selected})

     

    I get a red line and it states 

    The specified 'Person' does not exist 

    The function patch has some invalid arguments

     

    any ideas?

  • eka24 Profile Picture
    20,925 on at
    It unfortunate you can't send a screenshot. Making this a little long. The problem is the name of the column in your list. I dont know whether the columnName is Person in your list. And is your list named as ListName? as you have stated in the patch.
    Using Excel as an example cant you upload and image of your table. Just do a replica table of your real table and send. A private message can be done where necessary
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    HI @eka24 

     

    apologies.

     

    I think I have it... but which property do I need to set this on... as its not a button so cant be OnSelect. I tried default property, but patch wont work on it?

  • eka24 Profile Picture
    20,925 on at
    if is patch then then it should be Onselect of a button or an Icon.
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    HI @eka24 

     

    PowerApps has been behaving very strangely, having messed around with

    '@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser" and that was working, but giving me an error when I tried to submit my form, I reverted back to my working form.

    This morning tried the same thing by putting the following in the DefaultSelectedItems property and it works fine, and writes the person field found in the below datacard to SPO: 
    DataCardValue20_2

    didn't need to patch it either!

     

    Very strange, Thanks for all your help

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 408

#2
timl Profile Picture

timl 340 Super User 2026 Season 1

#3
Vish WR Profile Picture

Vish WR 319

Last 30 days Overall leaderboard