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

Get link from microsoft form

Dear All,

I have a survey form with a picture link to create a task, how do I get the condition that when the answer has a link, I will attach it to the planner

 

1.PNG2.PNG

3 ACCEPTED SOLUTIONS

Accepted Solutions

Hi @yashag2255 

Can you say more about the function check url?

22.PNG

 

View solution in original post

Deleted.

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

View solution in original post

Hi @giangnguyen ,

 

Sorry post again.

Please consider using starts with to determine if answer starts with https:// or http://  to check if the answer has a link.

23.PNG

Also if the question is required, you could set Required to avoid empty value.

22.PNG

 

Best Regards,

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

View solution in original post

9 REPLIES 9
yashag2255
Dual Super User II
Dual Super User II

Hi @giangnguyen 

 

You can add a condition and check if the URL Field  (the field where you are getting the url from the MS Form) contains data and if it is yes then in the yes branch add an action and put the update task details actions in there and put the link field in the reference resource. And if the condition is No, then add another action of the update task details and leave the reference resource empty. 

 

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 @yashag2255 

Can you say more about the function check url?

22.PNG

 

View solution in original post

@giangnguyen 

 

What is the datatype of this field? if it is text, then you can do this: on the left side in the condition (where you selected the field right now) remove that and in the expression editor, write length() and in the bracket select the url field. This way you will get the length and then is not equals to in the condition and on the right side put 0. \

sqw.png

 

 

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!

@yashag2255 

The function options only check that this information is entered or not entered, but to add it it needs to have the URL updated, (URL), if no value is entered or the value is not a url.

 

value is URL

url2.PNG

value is not a link (url)

url3.PNG

url4.PNG

Hi @giangnguyen 

 

The best way to check if the string is a URL is matching the regex. Right now flow does not have a feature for that inbuilt. So you can use the PlumSail Regex connector to do so (it is a paid one though). 

 

You can follow the expression for HTTPS and not HTTPS URLs as show below.

https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)
[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)

More details on using the PlumSail connector for regex here:

https://medium.com/plumsail/how-to-use-match-test-replace-regular-expressions-in-microsoft-flow-and-...

 

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!

Deleted.

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

View solution in original post

Hi @giangnguyen ,

 

Sorry post again.

Please consider using starts with to determine if answer starts with https:// or http://  to check if the answer has a link.

23.PNG

Also if the question is required, you could set Required to avoid empty value.

22.PNG

 

Best Regards,

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

View solution in original post

@v-bacao-msft 

Thanks so much.

@v-bacao-msft @giangnguyen 

 

Using starts with will only check if the string starts with http:// or https:// but this does not confirm if the entered value is a URL. Someone might just enter http://hello and it would still consider that as a URL. Please note this before incorporating it into a solution. 

 

edit: www.google.com would be a valid URL too and this will be ignored if the above conditions are incorporated.

 

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
MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Users online (44,111)