Can anyone suggest the steps to read and update data from sharepoint list using botflow.
Solved
How to read and update data in a Sharepoint list using Foxtrot RPA
Best answer by mbalslow
Hi @priyaes,
Apologies for the late response - busy days...
To answer your different points:
- API call to Sharepoint Online
- This is not possible with the standard REST action in Foxtrot, unfortunately, as it is not advanced enough. You will need to write a bit of code to get started. One way is to use Python and this package. If you have no to limited programming experience, this might be too complicated and complex. Of course, if you would like our assistance in implementing this, let me know. Here is an example snippet getting all the items of a list:
from settings import settings
from office365.runtime.auth.authentication_context import AuthenticationContext
from office365.sharepoint.client_context import ClientContext
ctxAuth = AuthenticationContext(url=settings["sharepoint_url"])
if ctxAuth.acquire_token_for_user(username=settings["sharepoint_username"], password=settings["sharepoint_password"]):
ctx = ClientContext(settings["sharepoint_url_site"], ctxAuth)
else:
print(ctxAuth.get_last_error())
def get_data(list):
list_object = ctx.web.lists.get_by_title(list)
items = list_object.get_items()
ctx.load(items)
ctx.execute_query()
data = []
for item in items:
data.append(item.properties)
return data
get_data("Name of your Sharepoint list")
- This is not possible with the standard REST action in Foxtrot, unfortunately, as it is not advanced enough. You will need to write a bit of code to get started. One way is to use Python and this package. If you have no to limited programming experience, this might be too complicated and complex. Of course, if you would like our assistance in implementing this, let me know. Here is an example snippet getting all the items of a list:
- Saving the file after downloading it.
- This is a standard scripting question. I made a very simple (no audio) video some time ago to another client illustrating how you would go about clicking to download a file and then save it using standard actions. Of course, how you click to download the file in the first place is a bit different on Sharepoint compared to the video, but the concept afterwards with the download bar should be the same.
- Video: https://www.screencast.com/t/aUGqz9LVX
Translate
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.