
Hello,
I have created a flow which takes info from a purchase request MS Form to a task on planner - these could vary from ordering one item to ordering 5 in one flow.
I want to be able to attach links to these items in the planner tasks, see picture of currently Update Task Details set up. My issue is that if someone orders less than 5 items not all the links will exist and therefore the dynamic content in '1 Link to item', '2 link to item' etc will be blank.
When I run the flow I then get this error: The 'inputs.parameters' of workflow operation 'Update_task_details' of type 'OpenApiConnection' is not valid. Error details: Input parameter 'body/references/2/resourceLink' is required to be of type 'String/uri'. The runtime value '" "' to be converted doesn't have the expected format 'String/uri'.
I assume this is because the blank spaces do not fit the data type - is there a work around for this to be able to have a variable number of links?
Thanks in advance
Hi @elle_bop ,
You could try:
1\Create an array type variable to save the 5 resource links.
2\Filter the array to get the items whose resource link not equals to null.
3\Use the filter result as the References
Best Regards
Bof