Skip to main content

Notifications

Power Automate - Building Flows
Suggested answer

Optional URL field

(1) ShareShare
ReportReport
Posted on by 4
Hi, I've seen some similar posts about flows not working with optional date fields when left blank, but I'm having an issue with an optional URL field when left blank and I can't seem to transpose the suggested solution provided for dates.
 
I have a form where users can paste the URL they need support with, if necessary. I have a power automate flow that converts this form to a list item. If the response provides a URL, the flow works fine. But if there is no URL provided, the flow fails with the notification
 
The 'inputs.parameters' of workflow operation 'Create_item' of type 'OpenApiConnection' is not valid. Error details: Input parameter 'item/IssueSource' is required to be of type 'String/uri'. The runtime value '""' to be converted doesn't have the expected format 'String/uri'.
 
I'd really like to leave the URL option in the form. Does anyone have a work-around where the flow will still work if this section is left blank?
  • Suggested answer
    David_MA Profile Picture
    David_MA 8,970 on at
    Optional URL field
    Use a coalesce expression to populate it. For example: coalesce(triggerOutputs()?['body/IssueSource'], ''). This post explains what the expression does: Power Automate Coalesce Function Explained (zeitgeistcode.com)
  • Suggested answer
    SpongYe Profile Picture
    SpongYe 5,378 on at
    Optional URL field
    Hi,
     
    Can you try to make the IssueSource optional, instead of required and check if it is empty:
     
    Something like this;
    if(empty(outputs('Get_response_details')?['body/IssueSource']), null, outputs('Get_response_details')?['body/IssueSource'])
     
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,508

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,839

Leaderboard