cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mikekiser
Helper I
Helper I

Getting URL from data - another URGENT

Hello!

I need to extract the URL from this HTTP Trigger Output which is 

{
    "headers": {
        "Host""prod-07.southcentralus.logic.azure.com",
        "Request-Context""appId=cid-v1:da3c9a69-dcd0-475e-b95f-27b27fbb911b",
        "Request-Id""|9a5ad63c0c5e7041bf9342cc9409d0a9.58ca56a79ef2c14d.",
        "traceparent""00-9a5ad63c0c5e7041bf9342cc9409d0a9-58ca56a79ef2c14d-00",
        "Content-Length""350",
        "Content-Type""application/json; charset=utf-8"
    },
    "body": {
        "EnvelopeType""quorum.event",
        "Properties": {
            "created""2020-04-15T16:48:19.2756734Z",
            "messageId""bdb1b046-16c0-40f7-b60d-24956fc11370",
            "quorum.tenant""ALL"
        },
        "Type""quorum-integration.event.ip.product-created",
        "Data": {
            "productId""wellez114",
        },
        "Version""1.0"
    }
}
 
HOWEVER, when I use the url in my next HTTP call, the url is empty....can you please help?
 
my variable url is defined as body('Parse_JSON_2)?['body']?['Data']?['url']
 
BUT url is getting defined as ""  NULL.....
 
 
2020-04-15_04_05jpg.jpg
2020-04-15_12-08-39.jpg
Thanks
MIke
 
 
1 ACCEPTED SOLUTION

Accepted Solutions

Hi @mikekiser 

 

That is because the URL set variable is before the parse json action and so it is not finding anything to set the variable to and setting it as null. Can you drag that action below the parse json and check if you continue to face the same issue? 

 

Hope this Helps!

 

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!

View solution in original post

7 REPLIES 7

Hi @mikekiser 

 

Can you share a screenshot of the parse json action? 

 

Try replacing the json schema with this: 

{
    "type""object",
    "properties": {
        "headers": {
            "type""object",
            "properties": {
                "Host": {
                    "type""string"
                },
                "Request-Context": {
                    "type""string"
                },
                "Request-Id": {
                    "type""string"
                },
                "traceparent": {
                    "type""string"
                },
                "Content-Length": {
                    "type""string"
                },
                "Content-Type": {
                    "type""string"
                }
            }
        },
        "body": {
            "type""object",
            "properties": {
                "EnvelopeType": {
                    "type""string"
                },
                "Properties": {
                    "type""object",
                    "properties": {
                        "created": {
                            "type""string"
                        },
                        "messageId": {
                            "type""string"
                        },
                        "quorum.tenant": {
                            "type""string"
                        }
                    }
                },
                "Type": {
                    "type""string"
                },
                "Data": {
                    "type""object",
                    "properties": {
                        "productId": {
                            "type""string"
                        },
                        "url": {
                            "type""string"
                        }
                    }
                },
                "Version": {
                    "type""string"
                }
            }
        }
    }
}
 
and see if you continue to face the same issue. 
 
Hope this Helps!
 
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!

@mikekiser 

 

you have to ensure that the name of the parse json action is Parse JSON 2. 

 

Hope this Helps!

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!

Hi Thanks!

Here is the Parse Json schema....thanks so much

{
    "properties": {
        "body": {
            "properties": {
                "Data": {
                    "properties": {
                        "productId": {
                            "type""string"
                        },
                        "url": {
                            "type""string"
                        }
                    },
                    "type""object"
                },
                "EnvelopeType": {
                    "type""string"
                },
                "Properties": {
                    "properties": {
                        "created": {
                            "type""string"
                        },
                        "messageId": {
                            "type""string"
                        },
                        "quorum.tenant": {
                            "type""string"
                        }
                    },
                    "type""object"
                },
                "Type": {
                    "type""string"
                },
                "Version": {
                    "type""string"
                }
            },
            "type""object"
        },
        "headers": {
            "properties": {
                "Content-Length": {
                    "type""string"
                },
                "Content-Type": {
                    "type""string"
                },
                "Host": {
                    "type""string"
                },
                "Request-Context": {
                    "type""string"
                },
                "Request-Id": {
                    "type""string"
                },
                "traceparent": {
                    "type""string"
                }
            },
            "type""object"
        }
    },
    "type""object"
}

Hi @mikekiser 

 

Can you share the screenshot of the entire flow? I guess the error is due to the name of Parse JSON action. 

 

Hope this Helps!

 

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!

Hi,

Thanks for your response. The following is my Flow....

Thanks

Mike

2020-04-15_21-22-11.jpg

Hi @mikekiser,

 

How about you get the url from the dynamic content of trigger directly?

 

Or using the expression:

triggerBody()?['body']?['Data']?['url']

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Hi @mikekiser 

 

That is because the URL set variable is before the parse json action and so it is not finding anything to set the variable to and setting it as null. Can you drag that action below the parse json and check if you continue to face the same issue? 

 

Hope this Helps!

 

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!

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (1,698)