SharePoint Spoke File Size Limit

Paul Kunze
Kilo Sage

Hello all,

we are integrating SharePoint in ServiceNow by building a Flow that contains Flow Actions from the OOTB SharePoint Spoke.

The questions are:

  • What is the allowed file size for the Flow Action "Copy Attachment To Folder"?
    • The official ServiceNow documentation does not mention any size. But we see that it must be really small because our 2 MB files are not getting transferred (small files work fine).
    • The Microsoft documentation mentions a limit of 250 GB so the limit will not be on that side.
  • Can the size limit be configured or customized somewhere if we want to keep using the OOTB Spoke?
  • What is a simple alternative if the allowed size is too low for our use case? I know that custom REST messages would be possible but we want to avoid big effort and complexity, especially because there is already a Spoke available.

 

PaulKunze_0-1768813001539.png

3 REPLIES 3

SumanthDosapati
Mega Sage

@Paul Kunze 

Do you find any logs in the flow execution history?

 

Regards,
Sumanth

nayanmule
Kilo Sage

@Paul Kunze  , check if this docs help you - https://www.servicenow.com/docs/bundle/zurich-platform-security/page/administer/security-center/refe...

 

You can increase the value in the system property - com.glide.attachment.max_size to allow maximum size of a file (in MB).

 

If my response has helped you, mark it as helpful and accept the solution.

Regards,

Nayan

Paul Kunze
Kilo Sage

Hi, thanks for the responses.

The system property "com.glide.attachment.max_size" has the default value of 1024 MB so this is not the issue.

PaulKunze_0-1768835152529.png

 

Actually I just saw that the Flow is not triggered if the file is too big. I am first converting the whole file to Base64, then sending it via Ajax to the backend and processing the file using GlideSysAttachment. Is it possible that a Base64 string cannot contain several Megabytes?

 
var attachment = new GlideSysAttachment();
var attachmentSysId = attachment.write(grRecord, fileName, contentType, GlideStringUtil.base64DecodeAsBytes(base64EncodedContent));