Skip to main content

Notifications

Power Apps - Microsoft Dataverse
Answered

Patch function is not working asking for Owner need to be provided.

(0) ShareShare
ReportReport
Posted on by
here is a patch code on button onselect:
 
Patch(
    'Reservation History',
    Defaults('Reservation History'),{
       
        'Change Type': DataCardValue79_1,
        'Please provide justification':DataCardValue81_1.Value,
        'New License Count':Value(DataCardValue52_1.Text),
        'New License Count (Year 2)':Value(DataCardValue53_1.Text),
        'New License Count (Year 3)':Value(DataCardValue54_1.Text),
        'New License Count (Year 4)':Value(DataCardValue55_1.Text),
        'New License Count (Year 5)':Value(DataCardValue56_1.Text),
        'Old License Count': Value(DataCardValue65_1.Text),
        'Old License Count (Year 2)':Value(DataCardValue66_1.Text),
        'Old License Count (Year 3)':Value(DataCardValue67_1.Text),
        'Old License Count (Year 4)':Value(DataCardValue68_1.Text),
        'Old License Count (Year 5)':Value(DataCardValue69_1.Text),
        'License':Gallery2.Selected.License,
        'Budget Approver':Gallery2.Selected.'Budget Approver',
        'Requester':Gallery2.Selected.'Requester Name',
       
    }
);


Showing error while clicking the button : Error- "The owner is not provided"

so i added this in the code for owner cloumn:
 
'Owner':LookUp(Users,'User Name' = User().FullName).

still having the same issue
  • Verified answer
    FLMike Profile Picture
    FLMike 27,710 on at
    Patch function is not working asking for Owner need to be provided.
    Hi,
     
    If you are still getting the error its because the value you are passing in the Owner isn't correct. In your table is owner an EMail address or an object?
     
    Usually its an email address. So try to pass an email address for yourself.

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,343

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,703

Leaderboard

Featured topics