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 / Patch function is not ...
Power Apps
Unanswered

Patch function is not patching the calculated Data Card to SharePoint List

(0) ShareShare
ReportReport
Posted on by 6

Hello All,

I am building a Power App for Contract repository based on a SharePoint list. The current App is using a Gallery leading the multiple screen form. I followed Reza's instructions on this video https://youtu.be/9gI9OscTLD0, and everything worked great, except the one calculated data card is not patching the SharePoint list for new entries.

Here is the Patch function:

Patch function .jpg 

My list has a calculated text column that generates a Contract ID from the Supplier's Code (a lookup from another list) plus the contract start date.    

 

 

'Contract ID creator in Contract Data form 
varFormContData.'Supplier Name: Title'.Value & "-" & Text(varFormContData.'From:',"yyyy mm")

 

 

 My form has two pages, and the calculated data card is on the first page, so I did add a Set(varContID) function to the Next Page button to calculate the "Contract ID" card and set the "Contract ID" Card's Default value to the  "varContID."

Set var ContID to nextpage bttn.jpg 

And here is the "Contract ID" data cards default value 

Card CntID default value .jpg

 

So far I tried to: 

1. adding the formula to the "default" property of the card, which partially worked if I opened the record from the gallery in edit mode but had no success on patching the record from a new entry.

2. created a Variable and set the "default" value to my variable and triggered the variable by the next page navigation button and gave me the same results

3. at last tried to place the Set(var) just before the Patch function but no luck on this either.

 

Unfortunately, My knowledge ran out but not my will to finish this small project. I would highly appreciate it if you could give some ideas.

 

Cheers,

Categories:
  • Pasta_K Profile Picture
    46 on at

    hello, this is kind of a workaround but since your that column is a calculated field in your list, would it be okay to just add a label into that card (with your variable as the value), assuming its not an editable field?

  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @AytacKazgan :

    The point is that the Calculated filed is read only for canvas app:

    vbofengmsft_0-1646632088649.png

    I think this link will help you a lot:

    Known issues 

    I suggest you try the solution provided by @Pasta_K .

    Best Regards,

    Bof

  • AytacKazgan Profile Picture
    6 on at

    Hi @Pasta_K ,

    Firstly, thanks for the help. It is a good idea but I'd like to pass this data to my SharePoint list since I was planning to use this ID to track payments in another SharePoint list. 

  • AytacKazgan Profile Picture
    6 on at

    Hi @v-bofeng-msft ,

    Thanks for this important detail that I wasn't aware of 👍 

    My list column is a text column and calculation is being done in the canvas application. I am not sure if this will change things? 

    Cheers,  

  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @AytacKazgan :

    Maybe you could set the data cards Update property to:

    vbofengmsft_0-1646637891464.png

     

    vbofengmsft_1-1646637919339.png

     

    Best Regards,

    Bof

     

  • AytacKazgan Profile Picture
    6 on at

    Hi @v-bofeng-msft ,

    I have used the "Update" property as you suggested, but I got the same results as before. 

    The below picture is after entering a new contract and opening the form in edit mode. 

    As you can see, the varContID is null

    Update property usedUpdate property used 

    I have a feeling that somehow I need to pass the varContID value to varFormContData before patching to my SharePoint list.  Unfortunately, my technical knowledge is not as big as my ambition so I can't figure out how. 

    Cheers,  

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard