web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Experimental Features
Unanswered

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@
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    52,868 Super User 2025 Season 2 on at
    Patch Script to Sharepoint List
    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

Coming soon: forum hierarchy changes

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 819 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 308 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 222 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics