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 Script to Sharep...
Power Apps
Suggested Answer

Patch Script to Sharepoint List

(1) ShareShare
ReportReport
Posted on by 8
 
The below script will just not work:
Patch(
    'SIP PERFORMA LIST',
    Defaults('SIP PERFORMA LIST'),
    {
        StudentName: Text(StudentName.Selected.displayname),
        ApplicationDate: DateValue(TextInputApplicationDate.Text),
        SIPSubject: TextInputSIPSubject.Text,
        TeacherName: TextInputTeacherName.Text,
        currentGrade: TextInputCurrentGrade.Text,
        EOYTarget: TextInputEOYTarget.Text,
        ReasonForSIP: TextInputReasonForSIP.Text,
        LinkToExamBoardSpec: TextInputLinkToExamBoardSpec.Text,
        AreaOfContentToReview: TextInputAreaOfContentToReview.Text,
        ExamSkillsSpecificTargets: TextInputExamSkillsSpecificTargets.Text,
        Link2examboardAssessment: TextInputLink2examboardAssessment.Text,
        StrategiesActions: TextInputStrategiesActions.Text,
        WhoWillMentorSupervise: TextInputWhoWillMentorSupervise.Text,
        WhoWillBeInvolved: TextInputWhoWillBeInvolved.Text,
        Weekly_Meetings: If(CheckboxWeeklyMeetings.Value, "True", "False"),
        BiWeekly_Meetings: If(CheckboxBiWeeklyMeetings.Value, "True", "False"),
        HalfTermly_Meeting: If(CheckboxHalfTermlyMeeting.Value, "True", "False"),
        MonthlyMeeting: If(CheckboxMonthlyMeeting.Value, "True", "False"),
        Timescales: TextInputTimescales.Text,
        SuccessCriteria: TextInputSuccessCriteria.Text,
        Attainment: TextInputAttainment.Text,
        NextMeetingDate: DateValue(TextInputNextMeetingDate.Text),
        ActionTaken_PhoneCall: If(ActionTaken_PhoneCall.Value, "True", "False"),
        ActionTaken_Download: If(ActionTaken_Download.Value, "True", "False"),
        ActionTaken_LetterToGoHome: If(ActionTaken_LetterToGoHome.Value, "True", "False"),
        ActionTaken_GSHasOverview: If(ActionTaken_GSHasOverview.Value, "True", "False")
    }
);
SubmitForm(SIP_PROFORMA);
 
What am i doing wrong?
 
Especially these lines:
 
ActionTaken_PhoneCall: If(ActionTaken_PhoneCall.Value, "True", "False"),
ActionTaken_Download: If(ActionTaken_Download.Value, "True", "False"),
ActionTaken_LetterToGoHome: If(ActionTaken_LetterToGoHome.Value, "True", "False"),
ActionTaken_GSHasOverview: If(ActionTaken_GSHasOverview.Value, "True", "False")
 
My columns in sharepoint are set to single line text - but the erros say :
rror - the type of this argument 'ActionTaken_Download.' does not match the expected type 'Text@
Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,960 Moderator on at
    HI
     
    for these
     
    ActionTaken_PhoneCall: If(ActionTaken_PhoneCall.Value, "True", "False"),
    ActionTaken_Download: If(ActionTaken_Download.Value, "True", "False"),
    ActionTaken_LetterToGoHome: If(ActionTaken_LetterToGoHome.Value, "True", "False"),
    ActionTaken_GSHasOverview: If(ActionTaken_GSHasOverview.Value, "True", "False")
     
    Is ActionTaken_PhoneCall.Value a boolean? if not then that is the issue.
     
    Also it looks like some of the message is missing, can you make sure the entire message (error) is there.
     
    Also, if those things are null or blank then Value won't be a boolean which will also be a problem.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 542 Most Valuable Professional

#2
Haque Profile Picture

Haque 206

#3
Kalathiya Profile Picture

Kalathiya 201 Super User 2026 Season 1

Last 30 days Overall leaderboard