Forum Discussion
Extract domain from URL
- May 27, 2019
I did something like this using a function
first(skip(split(body('Parse_JSON_3')?['id'], '/'), 4))first grabs the 1st from the arrayskip skips the number items in the arraysplit splits on deliminatoryou could do something like first(skip(split("string", '/'), 2))
I did something like this using a function
Not familiar with Azure functions and I'm a bit lost. I've created a function and gave it an HTTP trigger. What I'm not sure about is where to put this expression in the function app. Do I paste it into the run.csx file?
I'm assuming when I call this from the logic app the HTTP request will contain the URL that I want to extract the domain for. Is there anything I need to do in the function app to configure this?
Thanks,
Andrew
- Nicholas DiCola (SECURITY JEDI)May 28, 2019Former Employee
i meant a function in Logic apps. when you click in a box for text or parameter you can add dynamic content (properties/output from previous steps) or click expression. Expression has functions for date, strings, etc etc. The below screen shot shows the flyout im talking about. in this example i typed HTTPS:// in the URI paramater then was going to add an expression after that.