About Sharepoint file created trigger

hi fellas

I’m trying to setup a trigger for an agentic automation solution where the connector is Sharepoint and the trigger should fire when a new file is created in the specified folder on SP.

i’m having challenge in understanding the “in location” argument where it says ID of the folder to poll.
I have tried passing the parent folder ID of the SP where the document is to be uploaded/created.

note : i have not given full permissions to my SP connector only necessary permissions are provided.
appreciate any inputs..

Many Thanks.
SG.

Response:
{“requestId”:“”,“message”:"Error setting up GallupX poll for instance 250516 Response code: 400}
Error: Incident at element Event_start: Integration Services bad request

@golla.sandeep

As per error looks like you dont have permissions on the folder

Cheers

hi @Anil_G

just verified the access, i’m able to access the folder manually with the account i’ve configured for my SP connection.
Updated all R/W permissions for the SP connection

@golla.sandeep

What authentication have you used to create the connector?

also minimum scopes

cheers

its OAuth2 and yes, i have given more permissions than minimal now.. still hte same E400.
Thanks.
SG.

@golla.sandeep

did you add permissions and reautheticated?

also if you have permissions when you click folder icon you should see some folders there

cheers

yup, the connection is reauthenticated…

for some reason, i cant see the folders but the connection is intact, i tested the same connection to read files on the same SP site, and its working..

also, the authentication is via OAuth2 with clientID-Secret.
Does this has something to do with the folder discovery not working?

@golla.sandeep

are you specifically trying from the same location to get as well

is the connection updated in the activity?

just to verify try to drag any other activity and click on folder and see if you find anything

looks like site level permissions are missing sites.Read.All

cheers

are you specifically trying from the same location to get as well → Yes

just to verify try to drag any other activity and click on folder and see if you find anything → this aint working on other activities, I just mention the URL/relative path as String and it works for other activities.

Yes, the connection is updated..

Just found this :


I thought it accepts string input, activity says “ANY”

@golla.sandeep

tt is for text

just to make sure create a variable and check the type of it

looks like doc is wrong..IResource is needed for the file to be uploaded

Can you please share the link you are referring to

are you using classic?

cheers

Tried to recreate this event trigger issue in RPA workflow.. this is what I see

looks like doc is wrong..IResource is needed for the file to be uploaded - Right!!

Here’s the ref : Activities - File Created

@golla.sandeep

go to inspect and network tab , then try to re add the activity and see what failures yous ee there..that might give more info

cheers

yupp.. strange that the connector is able to fetch info from the site if I mention URL/relative path in activities but for Trigger there’s no such option and i dont understand why it is giving E400 and also the error doesn’t say “Sharepoint” it says OneDrive.. looks like SP and oneDrive some sort of strange relation. Microsoft really need to stop latching apps..
Below is the request and response i received from n/w log :


Looks like Something is definitely blocking this particular request..
Thanks alot for the help..
unfortunately, i cannot connect connect/share more information as i’m on enterprise platform, i’ll try to dig more… appreciate your help so far!.

SG.

1 Like