In the below flow, I have it set that when an item is created, the item is updated with a custom Contract Reference.
The next action, grabs that reference and creates a folder in a document library with the same name.
The next action is supposed to go back to the item and write the folder location URL path to the "Document Folder" column.
However, when the flow is run, it fails on the second "Update item" action and results in the following error.
* Note, the custom reference number is written to the list item and the folder is correctly created in the document library.
OpenApiOperationParameterTypeConversionFailed. The 'inputs.parameters' of workflow operation 'Update_item' of type 'OpenApiConnection' is not valid. Error details: Input parameter 'item/DocumentFolder' is required to be of type 'String/uri'. The runtime value '"Contract Documents/"' to be converted doesn't have the expected format 'String/uri'.
What's the Date Type of Document Folder? Is this a string? Also check the runtime and see what value is returned for Folder Path?
A screenshot will be helpful.
So, the "Contract Ref" column gets auto populated with this custom reference:
On the "Create folder in document library" action, a folder created and named the same as the custom reference number.
Then I have the second Update Item action where I choose Folder Path and place it in the "Document Folder" column which is of the type: URL or Picture
Refer to this article : Setting and Updating SharePoint Hyperlink fields in Flow and Logic Apps - Collab365
URLs are basically special objects and you should use a REST API call to update url fields.
Hope this helps, let me know if you need more help
Check out the News & Announcements to learn more.
Participate in the Power Virtual Agents Community Challenge
Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.
DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.