Skip to main content

Notifications

Power Automate - Using Connectors
Unanswered

Does the "When a HTTP request is received" trigger support optional elements?

(0) ShareShare
ReportReport
Posted on by 30

I'm building a flow that should get triggered whenever a webhook from Jira is activated. There are some elements that I'd like to use, but are optional and have the value "Null" if unassigned. Normally, to allow both a string and the null in a property, you'd write something like:

"types": ["string", "null"}

However, from what I've experienced, the event seems to only pass the values of elements that have a single type assigned to them - leaving them empty otherwise. But if I only use "string", any request with the value as null will fail - I can't use something like "minimum" either, since the element is present, just incorrectly assigned.

Is it even possible to have the event default strings with null to "", or do I have to make sure any value I care about is guaranteed to not be null?

  • Jakob Gillinger Profile Picture
    Jakob Gillinger 30 on at
    Re: Does the "When a HTTP request is received" trigger support optional elements?

    Like I said, that doesn't work, because the element is present - the problem is that it is assigned null. So instead of

    "timeZone": "Western Europe"

    the webhook sends:

    "timeZone": null

     

  • CFernandes Profile Picture
    CFernandes 8,146 on at
    Re: Does the "When a HTTP request is received" trigger support optional elements?

    @cegekaJG It should be possible to edit the Schema

     

    {
    "type": "object",
    "properties": {
    "name": {
    "type": "string",
    "required": false
    },
    "age": {
    "type": "integer",
    "required": true
    }
    }
    }

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

     

    P.S. take a look at my blog here and like & subscribe to my YouTube Channel thanks.

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,343

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,703

Leaderboard

Featured topics