Office365-REST-Python-Client icon indicating copy to clipboard operation
Office365-REST-Python-Client copied to clipboard

How can I update a SharePoint item without triggering a MS Flow Workflow

Open SergCR opened this issue 3 years ago • 0 comments

Hi, I am relatively new to this API. I've been using code similar to this to update SharePoint list items:

ctx_auth = AuthenticationContext(url=sharepoint_site_url) ctx = ClientContext(sharepoint_site_url, ctx_auth) target_list = ctx.web.lists.get_by_title(sharepoint_root_folder_name) # Fetch item by id and add properties to it. item = target_list.get_item_by_id(item_id) item.properties.update({ "NewItem": "99" }) item.update() ctx.execute_query()

But everytime I update an item Microsoft Flow (formely Power Automate) workflows are triggered, which sometimes create some conflicts in my implementation.

I have tried using the update_overwrite_version() method but changes do not appear to stick.... I mean that "Modified Date" and "Modified By" appear to update, but none of the other fields gets updated with the data I put in.

Can you assist with any guidance on how to update a SharePoint list item without triggering a MS Flow workflow?

Thank you!

SergCR avatar Apr 09 '22 05:04 SergCR