I am trying to add 2 rows in an excel table whose file is located in a sharepoint site.
To get the details of the file - and double check that I have the correct id's - I do the following :
GET https://graph.microsoft.com/v1.0/drives/{drive-id}/list/items/{item-id} -> all ok, I see the details of the excel file (createdBy, ModifiedBy, etc..)
But when doing :
POST https://graph.microsoft.com/v1.0/drives/{drive-id}/list/items/{item-id}/workbook/tables/{table-name}/rows/add
I get the following error message : Resource not found for the segment 'workbook' I don't understand
Has someone any idea what I am doing wrong and could this error message mean ?
The documentation I base on this is here : https://learn.microsoft.com/en-us/graph/api/tablerowcollection-add
Thank you
Andreas
Well, the correct url is actually the following :
POST https://graph.microsoft.com/v1.0/drives/{drive-id}/list/items/{item-id}/driveitem/workbook/tables/{table-name}/rows/add
note the driveitem added in the url !
The way I got there is the following :
to get the drive ID do:
https://graph.microsoft.com/v1.0/sites/{hostname}.sharepoint.com:/sites/{SiteName}:/drives
Then the list of the items
https://graph.microsoft.com/v1.0s/drives/{drive-id}/list/items
and the id of the item you are looking for
https://graph.microsoft.com/v1.0/drives/{drive-id}/list/items/{item-id}
Related
I am somewhat new to references subject within the Contentful… I am looking for a quick help on how to search for a referenced content using POSTMAN. Thanks in advance, here is the scenario.
Main content_type: “person”, which has two fields 1) name “Short Text” and a 2) “videos” field that is defined as reference, which intern has many such references for "video"s for a given person type of content. The referenced content_type “video” has two fields video “title” and “videoURL” for that video.
I need to build a search API to get the value of “videoURL” based on two criteria i.e person.name from the main content type + video.title from the referenced "video" content type . This is because the same person content can have many “videos” fields pointing to different video contents , however I am interested in a video delivered by a person which has a particular title.
I tried many combinations, but missing the link between the main content person and the child content video. Can you please help me to build this API so that I can use postman API platform , to test using GET request . Thanks a lot I appreciate your help.
I found this from suggestion from contentful website to match
the items[0].fields.videos.sys.id with the "includes.Entry array video.sys.id "
I was able to see physically that we have a matching sysid for video in main content and includes as well, but not able to come up with a suitable GET request to run in the POSTMAN tool.
Any help will be grately appreciated. Thanks again
I have an use case to generate a report to get the list of message ID and their respective file ID (attachment). The report should show all message and the respective attachment attached to the message.
Currently I have some third parties software which connected to NS schema and replicated the entire schema in my SQL database. Below are the schema that I have replicated, however, I cannot find the linkage / joining for the relevant tables to link up message and file.
SuiteTalk (Browser Schema)
SuiteAnalytics via ODBC (Connect Schema)
SuiteAnlaytics via netsuite2.com (Record Catalogue)
I have also tried to generate via Saved Search, which I started with message : Internal ID as the base and tried to include the file ID as the additional column as part of the search result. However, I cannot find any file relevant field for it. I am not sure if this saved search is even possible.
Kindly check with all experts here, if there is alternative or modification of the saved search to achieve the desired result. Thank you very much.
In a saved search with a Type of "Message", you can add a column (results tab) for the field "Attachments : Internal ID".
I am mostly new to PowerApps but I am creating a stand-alone app that uses Power Automate to upload records to a SharePoint library. I have that working, and on one of the forms I have search functionality so that the gallery is filtered by the value in a few text boxes.
What I want to do is on the form where they upload new records, I want to look up to see if metadata already exists and eventually populate text boxes with the information from those records. Right now I am using a button with this code in the OnSelect event to just find how many records exist with that project number:
Set(varCount, CountRows(Filter(ProjectDocuments,'txtProj#'.Text, ProjNum )))
I also tried this.
If(CountRows(Filter(ProjectDocuments,'txtProj#'.Text, ProjNum )) > 0, Set(varCount, 1), Set(varCount,2))
I am getting a warning about large datasets only. However, when I try to run it nothing happens. When I look at the monitor details I get this error first:
"The query is not valid.\r\nclientRequestId: 816f2bfb-ab50-4285-b9c9-a7e03548d15f\r\nserviceRequestId: 816f2bfb-ab50-4285-b9c9-a7e03548d15f"
Then this one:
"Error when trying to retrieve data from the network"
The connection works when I am filtering a gallery, but not when I'm trying to use the count. Does anyone have any idea what is happening?
Thanks!
I'm not sure, but I suspect that there's an error in your Filter. The second argument should result in a logical true/false (include the record or not). Yours looks to resolve to a string.
Filter(ProjectDocuments,'txtProj#'.Text, ProjNum )
I think you mean
Filter(ProjectDocuments,'txtProj#'.Text = ProjNum )
I am trying to filter Google Cloud Security Command Center finding notifications by filter using this link. https://cloud.google.com/security-command-center/docs/how-to-api-filter-notifications
state or parent works fine to filter for. source_properties is one of the fields. Within source_properties ResourcePath is one of the fields, but when I submit to create a field I get back ERROR: (gcloud.scc.notifications.create) INVALID_ARGUMENT: Invalid Filter. If specified, filter should be on a field in the request.
Have tried "state = "ACTIVE" AND source_properties.resourcepath.folders = "456353778849""" filters like this. Anyone had any luck with this and what syntax do you use?
Use this format state="ACTIVE" AND source_properties.resourcepath:"456353778849"
The colon : is a "contain" notation.
I'm having this problem and I didnt find any answers on the web.
I have a content type named "Document X" with the original "Document" as parent. (ID is 0x010100ACEA2663B318874AA9192CA9AF678614)
I already have a content type named "Document X 1" with "Document X" as parent. (ID is 0x010100ACEA2663B318874AA9192CA9AF67861401)
When I create a new content type named "Document X 2" with the parent "Document X", I get the error "A duplicate content type 'Document X 2' was found"...
I checked the ULS and the error isn't reported there. I can create new content type from any other content type (out of the box or others I created like "Calendar X") but I cant create new one from that "Document X". (And no I dont have any content type named like that.. whatever name I use, I get the same error)
Full error is:
A duplicate content type "Document X" was found.
Troubleshoot issues with Microsoft SharePoint Foundation.
Correlation ID: b9d36bb8-1a8e-4ef4-bbd0-fbdf8e70d73b
Date and Time: 1/24/2011 3:00:36 PM
This error is happening on my content type hub site but I use and create content type on this site only. I dont create them using Visual studio, its in a production environnement and we have to create them with the Site Settings or Designer but both give me the same error.
I know I dont have much info to give here, I just dont know where to look first..
If anyone have any idea that could help me, I would really appreciate it as I lost a few hours on this already and dont know where to look anymore...
Thanks a lot!
I found my problem, so if this can help some people some day.
Looks like SharePoint have some problems sometimes to update a field in the content database.
The field NextChildByte from the dbo.ContentTypes table is the problem.
Lets say I create a content type with ID 0x010100ACEA2663B318874AA9192CA9AF678614 with Document as parent (0x0101)
SharePoint will create an entry in the dbo.ContentTypes table.
When I create an other content type with the first one as parent.. The ID of this new content type will be 0x010100ACEA2663B318874AA9192CA9AF678614*01*) This 01 came from the NextChildByte field from the dbo.ContentTypes table.
Now SharePoint should update the dbo.ContentTypes table and set the field NextChildByte to 2 so the next content type created using the same parent will be 0x010100ACEA2663B318874AA9192CA9AF678614*02*
My problem was.. SharePoint didnt update the NextChildByte field so SharePoint was trying to create a content type with ID 0x010100ACEA2663B318874AA9192CA9AF678614*01* when it already existed...
In my case.. I finally have been able to delete the content type 0x010100ACEA2663B318874AA9192CA9AF678614*01*. When I recreated it, SharePoint did update the NextChildByte to 2 so I was able to create a more child content type after that.
EDIT: I found afterwards this blog post. Looks like this script could have fix it for me. This would be the best option since updating the database is not a solution.
http://www.mattjimison.com/blog/2011/06/21/a-duplicate-content-type-found-error/
Cheers!
After struggling with this issue for a good while (the fixes mentioned here didn't work for me), I have managed to find an alternative way to fix it.
In my case this error was happening when trying to use a Site Template (classic templates).
Before saving the site as a template, I opened the site using SharePoint Designer, navigated to All files -> _cts folder and deleted the content types from the site level. In my case there was already a content type with the same name in the Site collection level.