BOX API Upload
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-02-23 02:44 PM
Hi
Please can I have some assistance with regards to uploading a document to Box via an API.
Currently our API's go through Mulesoft, I have managed to create API's in Blue Prism to Search, Delete Folder, Delete File, Get folders etc... However I can get the Document Upload request to work.
This is working in Postman, but I am unsure how to move this into Blue Prism. We are using Basic Access which works fine.
I have done all of it so far via Web API Services and would like to keep the upload in that part also
I have attached a file with what postman looks like and from BOX what they require.
Thank you
------------------------------
Matthew Cable
Consultant
Zurich
Europe/London
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
20-02-23 12:48 PM
HI @GeoffHirst
Thank you for the help, please see screen shot below for the full list of errors.
I can also confirm on the initialise page it is version 10.0.1
------------------------------
Matthew Cable
Consultant
Zurich
Europe/London
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
20-02-23 01:35 PM
Matthew,
This is indeed very strange. I cannot replicate what you are seeing at all. So, can you report back to me what version of the net framework you have installed?
regards
------------------------------
Geoff Hirst
Senior DX Engineer - Digital Exchange - EMEA
SS&C Blue Prism
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
20-02-23 01:59 PM
@GeoffHirst
I hope this is correct
------------------------------
Matthew Cable
Consultant
Zurich
Europe/London
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
20-02-23 02:19 PM
Hi Matthew,
What we need to establish is what verion of the Net 4 framework do you have. Sorry for not explaining that better earlier.
If you take a look at the following page this will show you how to determine what you have installed. We are operating on 4.8 or better now and I am hoping this is the issue you have.
There is a powershell script and also more information on using the registry. I personally like the powershell script as if you compare it with the version numbers provided on the table in the supplied page, you can determine exactly the version you have installed.
Let me know how you get on.
regards
------------------------------
Geoff Hirst
Senior DX Engineer - Digital Exchange - EMEA
SS&C Blue Prism
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
20-02-23 03:16 PM
Hi @GeoffHirst
Please see below outcome
Thank you
------------------------------
Matthew Cable
Consultant
Zurich
Europe/London
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
20-02-23 06:57 PM
I've stood up a v6.7.3 instance to test the VBOs. With that release I can recreate the errors Matthew is seeing. The problem here comes down to that version of Blue Prism using an older release of the .NET Framework (it targets 4.7) and most likely older versions of the various .NET and Newtonsoft libraries installed with Blue Prism. The takeaway here is that the newer VBOs are not going to work for Matthew on that version of Blue Prism.
Matthew - I can try implementing your specific action in a Web API and see if I can get it to work with my Box account. If so, you should be able to just copy my template.
Cheers,
------------------------------
Eric Wilson
Director, Integrations and Enablement
Blue Prism Digital Exchange
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
20-02-23 07:01 PM
This is a C# version issue. I stood up a v6.7.3 instance and tested both VBOs. I see the same compiler errors Matthew is seeing. The takeaway here is that unless you want to upgrade your Blue Prism environment, you won't be able to use these newer VBOs.
With that said, we'll take a shot at implementing the action you need in a Web API and see if we can make it work with Box. If so, you should be able to just copy the template.
Cheers,
------------------------------
Eric Wilson
Director, Integrations and Enablement
Blue Prism Digital Exchange
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
21-02-23 08:11 AM
I am trying via HTTP, the BOX API has a lot of compile errors so I am attempting just in my HTTP VBO and not using the box one.
However I have 1 compile error in HTTP Request Multipart, please see below
Thank you
------------------------------
Matthew Cable
Consultant
Zurich
Europe/London
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
21-02-23 12:33 PM
That's interesting as my VBO shows the only reference to MimeMapping on line #113. Is this what your code looks like?
I thought your original post mentioned that you were doing this with Web API?
Cheers,
------------------------------
Eric Wilson
Director, Integrations and Enablement
Blue Prism Digital Exchange
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
21-02-23 01:06 PM
Hi @ewilson
I am using the Web API which is what I would like us to carry on using, i thought you mentioned to try in the HTTP as well which is what I have attempted today.
Below is the code
------------------------------
Matthew Cable
Consultant
Zurich
Europe/London
------------------------------