cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
kelsodaws
Frequent Visitor

Send an HTTP request to Sharepoint failing to recognise list name from variable

The errors from my flow are below. I can't seem to get it to recognise the variable calendar name to create the item

 The error details are:

"A type named 'SP.Data.CSIS CalendarListItem' could not be resolved by the model. When a model is available, each type name must resolve to a valid type.
clientRequestId: 2aac0d85-609c-4cce-8373-c380d7adb6db
serviceRequestId: 400919a0-60eb-3000-a02a-7dc3aa039719

image.png

image.png

kelsodaws_3-1642800114679.png

Raw outputs are:

{
    "statusCode": 400,
    "headers": {
        "Pragma": "no-cache",
        "x-ms-request-id": "400919a0-60eb-3000-a02a-7dc3aa039719",
        "Strict-Transport-Security": "max-age=31536000; includeSubDomains",
        "X-Content-Type-Options": "nosniff",
        "X-Frame-Options": "DENY",
        "Cache-Control": "no-store, no-cache",
        "Set-Cookie": "ARRAffinity=9227faf24135ad53dd065beee547fecb0ff01774dd3486105eba5bed7b415073;Path=/;HttpOnly;Secure;Domain=sharepointonline-we.azconn-we.p.azurewebsites.net,ARRAffinitySameSite=9227faf24135ad53dd065beee547fecb0ff01774dd3486105eba5bed7b415073;Path=/;HttpOnly;SameSite=None;Secure;Domain=sharepointonline-we.azconn-we.p.azurewebsites.net",
        "Timing-Allow-Origin": "*",
        "x-ms-apihub-cached-response": "false",
        "Date": "Fri, 21 Jan 2022 20:49:59 GMT",
        "Content-Length": "519",
        "Content-Type": "application/json",
        "Expires": "-1"
    },
    "body": {
        "status": 400,
        "message": "A type named 'SP.Data.CSIS CalendarListItem' could not be resolved by the model. When a model is available, each type name must resolve to a valid type.\r\nclientRequestId: 2aac0d85-609c-4cce-8373-c380d7adb6db\r\nserviceRequestId: 400919a0-60eb-3000-a02a-7dc3aa039719",
        "errors": [
            "-1",
            "Microsoft.SharePoint.Client.InvalidClientQueryException"
        ]
    }
}

 

Please help!

@DamoBird365 

 

2 REPLIES 2
DamoBird365
Super User
Super User

Hi @kelsodaws 

 

Just spotted this, did you resolve?  I wonder if it is the space in the list name?

 

A type named 'SP.Data.CSIS CalendarListItem' could not be resolved by the model.

 

Try CSI%20CalendarListItem in the body

 

Damien

Hi, thanks for the response. Yes have resolved it. The space was the issue but replacing it did not solve it, i had to remove the space altogether for it to be recognized.

 

Now onto the next issue - do you know if you can add attachments using the same POST request? As i do not know the item ID i cannot add afterwards either?

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Super User 2 - 2022 Congratulations 768x460.png

Welcome Super Users

The Super User program for 2022- Season 2 has kicked off!

Users online (3,103)