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
yashag2255
Dual Super User II
Dual Super User II

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!

View solution in original post

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Top Solution Authors
Users online (1,498)