Microsoft-graph-docs: Missing documentation on Creating or Updating Sharepoint Listitems that contain Hyperlink fields

Created on 11 Nov 2017  路  20Comments  路  Source: microsoftgraph/microsoft-graph-docs

Issue: Any attempt to create or update a Sharepoint List item with a Hyperlink field will result in an error. Can you please provide how to accomplish this in your documentation?

{
    "error": {
        "code": "invalidRequest",
        "message": "The request is malformed or incorrect.",
        "innerError": {
            "request-id": <request-id>,
            "date": "2017-11-11T17:18:18"
        }
    }
}

Article: Updating Sharepoint List Items / Creating Sharepoint List Items

sharepoint product docs

Most helpful comment

We are hitting these limitations with the Graph as well. Managed Metadata (Taxonomy), People and Groups column types. Any update or time-frame for this to be included or documentation written for how we accomplish this? Thanks.

All 20 comments

It's the same with taxonomy and user fields. Thanks.

Lookup Fields also, same issue

I don't get an error, but successfully insert an object with empty required fields. Both a user field and a lookup field.

Hi Team, Is there any update on this. As most of the lists will have one or other type of look up columns , without being able to insert it , will not help developers using Graph API for list operations.

I have also encountered same issue not able to insert list item with people field. these limitations makes developer move away from graph api.

Up !!!

Hi , any news on the subject ?
I encounter the same issue with taxonomy field... It's very annoying

PNP Js is better than Graph For SharePoint !
Actually, first Version of Graph is really not complete

We are hitting these limitations with the Graph as well. Managed Metadata (Taxonomy), People and Groups column types. Any update or time-frame for this to be included or documentation written for how we accomplish this? Thanks.

We have invested heavily on the Graph API. Any support from authors? @Lauragra @rgregg @dmahugh ?

We are also heavily invested in the Graph API and are in need of this functionality.

Ill leave this here just in case. I recently manged to create an item with a people field (Single User or Group) with Graph API v1.0.
The most rapid way to test is using the graph explorer. Making a post to the /items endpoint with the following body:

{
  "fields": {
    "Title": "This is of course the title of the SP list item",
    "AwesomeDudeLookupId": 42
  }
}

The main to thing to pay attention to is that the field is called AwesomeDude and the id of the user must be known. This is a start.
Additionally, the return object under the fields property will have this field name.
A reference: https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/resources/fieldValueSet

@trgraglia Okay, but how to resolve this? If we have a list of hypelinks, it's not working.

"fields": {
"TestFields": [
            {
                "LookupId": 175,
                "LookupValue": "175"
            },
            {
                "LookupId": 176,
                "LookupValue": "176"
            }
        ]
}

Is there an update on this? Is this feature planned at least?

@trgraglia Okay, but how to resolve this? If we have a list of hypelinks, it's not working.

"fields": {
"TestFields": [
            {
                "LookupId": 175,
                "LookupValue": "175"
            },
            {
                "LookupId": 176,
                "LookupValue": "176"
            }
        ]
}

@CaramelHeaven this only currently works on fields which allow one value. It does not work on fields which allow multiple selections.

Issue since 2017? Any possible updates or workarounds? How do you create a hyperlink object with Graph API for Sharepoint?

Same problem here. Please need fix.

I also have an issue with graph api while posting an URL/Hyperlink to a SharePoint list.

{ "fields": { "Title": "Test URL", "MyLink": { "Description": "Google", "Url": "https://www.google.ca" } } }

MyLink is a Hyperlink List Column in SharePoint.

I'm receiving this error :
{ "error": { "code": "-1, Microsoft.SharePoint.Client.InvalidClientQueryException", "message": "A value without a type name was found and no expected type is available. When the model is specified, each value in the payload must have a type which can be either specified in the payload, explicitly by the caller or implicitly inferred from the parent value.", "innerError": { "request-id": "7d26cc4f-4203-4930-81d6-586ab367966d", "date": "2020-01-29T22:20:23" } } }

This page documents the implemented SPFieldTypes. As of now, there are a lot of them that are not implemented in Graph (including Hyperlink). https://docs.microsoft.com/en-us/graph/api/resources/columndefinition?view=graph-rest-beta

Any Update on this.... Other fields are inserting into the list normally, hyperlink is killing me....... I even created manually and did the GET request to see the structure. Its sys invalid request

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nilleb picture nilleb  路  4Comments

r3dh0t picture r3dh0t  路  4Comments

fredericklin picture fredericklin  路  3Comments

aaronrogers picture aaronrogers  路  3Comments

dcnoren picture dcnoren  路  4Comments