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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / The API operation 'Pos...
Power Automate
Unanswered

The API operation 'PostItem' requires the property

(0) ShareShare
ReportReport
Posted on by 42

I have written a power automate flow, that gets the data from Microsoft booking calendar and then writes them into a sharepoint list.
However, when I ruin the flow, I get the following error from the "create item"
The API operation 'PostItem' requires the property 'item/FirstName' to be a string of maximum length '255' but is of length '636'.

In my flow, Get events (V4) , reads each appointment into a variable. And in the Create item, I write this variable contents to the sharepoint list.

1. If there away to make sure that the variable length is 255 or less?
2. Or any other way to fix this. I even made the sharepoint column multiple lines of text and still get the error.

Any help is greatly appreciated.

 

don75_0-1616792280305.png

don75_2-1616792449923.png

 

 

Categories:
I have the same question (0)
  • DamoBird365 Profile Picture
    8,942 Microsoft Employee on at

    Hi @don75 

     

    Two options, you can use an expression to check the length

    @{length(outputs('Compose'))}

     

    OR simple reduce the length of the string using substring:

    @{substring(outputs('Compose'),0,5)}  //returns the string from char 0 with a length of 5.

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
    Cheers,
    Damien


    P.S. take a look at my new blog here

  • Verified answer
    don75 Profile Picture
    42 on at

    Thanks for the response. I removed the create item and added it back. Everything worked perfect.

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

Forum hierarchy changes are complete!

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 Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard