Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for column definition for hyperlink #640

Closed
HiteshRepo opened this issue Jan 5, 2024 · 2 comments
Closed

Support for column definition for hyperlink #640

HiteshRepo opened this issue Jan 5, 2024 · 2 comments
Assignees

Comments

@HiteshRepo
Copy link

If I create a list with hyperlink column in the site and then try to fetch the columns of that list I get below response from GRAPH:

API used: https://graph.microsoft.com/v1.0/sites/{{siteid}}/lists/{{listid}}/columns

...
{
    "columnGroup": "Custom Columns",
    "description": "",
    "displayName": "item-links",
    "enforceUniqueValues": false,
    "hidden": false,
    "id": "71e9d8d6-43b0-45aa-8581-7c65912c192b",
    "indexed": false,
    "name": "item_x002d_links",
    "readOnly": false,
    "required": false
},
...

From this response, it is not evident that column item-links is of Hyperlink column type.

Also if we populate an item for above column, this is what the response we get from GRAPH:

API used: https://graph.microsoft.com/v1.0/sites/{{siteid}}/lists/{{listid}}/items/{{itemid}}/fields

...
"item_x002d_links": {
    "Description": "item-1 url",
    "Url": "https://example.com/item-1"
},
...

The value for item-loc field is a map structure and there should be a column definition to accept this data.

It would be good to have implementaion for column definition of hyperlink type, so that we can identify the hyperlink column type from response, create the column and populate values accordingly to it.

Please let me know if such support already exists and I am unaware of it.

@rkodev
Copy link
Contributor

rkodev commented Feb 12, 2024

Hi @HiteshRepo
Thanks for using the Graph Go SDK.

With regards to this issue, this repository is dedicated to the Go SDK. For issues regarding the service, such as the implementation of the column type, it is best to create a post in the dedicated Microsoft Q&A

Service team members will be able to reply and address the issue there.

Copy link
Contributor

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants