cancel
Showing results for 
Search instead for 
Did you mean: 

Configure Google Drive

DishaKulkarni
Level 4
Hello,

I am trying to upload a file to Google Drive via BluePrism
To test the Connector for Google Drive, I downloaded he asset from digital exchange 
The process worked fine for files.create method and gave HTTP Status Code: 200
22015.png

The configurations were as follows
22016.png
Data 2 field has location of a random pdf from my pc
22017.png

22018.png

I have Google OAuth enabled and valid


My question is, which Google drive did the file get created in and How to check the result of action
Since I have not given any location of drive anywhere.


------------------------------
Disha Kulkarni
------------------------------
16 REPLIES 16

The mistake was in true which was supposed to be True.
Parent id(only 1 in this case)  is a long string within double quotes

All the expressions are valid and I am getting an error like this

21817.png


------------------------------
Disha Kulkarni
------------------------------

Hi Disha,

Here I suspect the issue is mainly with the body content of the request that is being sent. From the prior screenshot, I can see you are directly passing the parent without any double quotation mark as a part of the text. So what I mean is, let say if the name of the parent is 'abc'. You are sending the value in the action parameter as:  "abc"  Here, what happens is when it is sent to your  request, the body template would be:

"parents": [abc]

This won't be recognized as a proper string value in the JSON format. Instead, try sending the value of the parent in your action stage as """" & "abc" & """" This will ideally append your double quotation marks to the parent and hence the template will look like:

"parents": [ "abc"]

Try this and let us know if you get the same error or not.

------------------------------
----------------------------------
Hope it helps you out and if my solution resolves your query, then please mark it as the 'Best Answer' so that the others members in the community having similar problem statement can track the answer easily in future

Regards,
Devneet Mohanty
Intelligent Process Automation Consultant | Sr. Consultant - Automation Developer,
Wonderbotz India Pvt. Ltd.
Blue Prism Community MVP | Blue Prism 7x Certified Professional
Website: https://devneet.github.io/
Email: devneetmohanty07@gmail.com

----------------------------------
------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
Hope this helps you out and if so, please mark the current thread as the 'Answer', so others can refer to the same for reference in future.
Regards,
Devneet Mohanty,
SS&C Blueprism Community MVP 2024,
Automation Architect,
Wonderbotz India Pvt. Ltd.

Did the changes, I am getting the same error as stated earlier

------------------------------
Disha Kulkarni
------------------------------

The problem seems to be in the body of the request (the particular code). Could you please suggest changes if any and how to write the code?

------------------------------
Disha Kulkarni
------------------------------

Hi Disha,

Can you post a screenshot or copy here the text that you currently have in the Body Template?

------------------------------
Shashank Kumar
DX Integrations Partner Consultant
Blue Prism
Singapore
+6581326707
------------------------------

--foo_bar_baz
Content-Type: application/json; charset=UTF-8
{
"name": "[name]",
"parents": "[ [parents] ]"
}
--foo_bar_baz
Content-Type: [mime_type]; boundary=foo_bar_baz

[data]
--foo_bar_baz--

------------------------------
Disha Kulkarni
------------------------------

Hello,
Are there any changes to be made here in the template?

------------------------------
Disha Kulkarni
------------------------------