cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Radoslavov
Continued Contributor
Continued Contributor

Get URL Paramethers

Hi All,

 

I'm having the following dilema; how to get URL paramethers:

Here is an example of forms pro survey send from another system that already pass some paramethers in the URL when sending it.

 

https://customervoice.microsoft.com/Pages/ResponsePage.aspx?id=CgHpGkfg6Uqa9f8VZDLApoueT_zjKsBHvzPp7...zdcustomer=KIRIL%20RADOSLAVOV&zdticket=148

 

What i'm trying to do is somehow to get this two paramethers from the URL zdcustomer and zdticket so i can use them afterwards to update the survey response so i can assiciate it with the external ticketing system.

Any suggestion how this can be achieved?

 

Regards

6 REPLIES 6
muralidharan
Resolver III
Resolver III

Hi @Radoslavov ,

I tried with some lengthy steps and it worked . You may be required to tweak as per your wish.

 

muralidharan_0-1621259468645.png

 

1. Split the text based on the '&'

2. Loop them and construct object.

3. Transfer the object to JSON and able to get the value based on the key.

4. In one of the step, I'm returning the id when the text contains ?id. 

 

 

muralidharan_1-1621259727055.png

 

 

Complete Flow structure:

muralidharan_2-1621259785780.png

 

 

Expressions used : 

 

 Compose : 
 @{split('https://customervoice.microsoft.com/Pages/ResponsePage.aspx?id=CgHpGkfg6Uqa9f8VZDLApoueT_zjKsBHvzPp7...&zdcustomer=KIRIL%20RADOSLAVOV&zdticket=148','&')}
 
 
 Compose 7 :
 @{if( equals(indexOf(split(item(),'=' )[0],'?id'),-1),split(item(),'=' )[0],'id')}
 
 Compose 4 : 
 
 @{addProperty(variables('tempObject'), outputs('Compose_7')  ,split(item(),'=' )[1])}

 

Hope this will help you.

 

Thanks,

Murali.

Radoslavov
Continued Contributor
Continued Contributor

Hi @muralidharan ,

 

this might do the work. however my problem is how to get to this part, because the user received an email with invitation to a survey

Radoslavov_0-1621339881677.png

So the url  is now with the desired paramethers, but i don't see any option to get that URL after that. The survey is send via exnternal system with already embeded link to an email template, so it is not send from D365 Customer Voice, and this is the big problem here. If i'm able to get this URL somehow the rest of the loging that you've show will do the work.

Hi @Radoslavov ,

Please have look at the below link and hopefully it should help you to extract the link from the email.

 

https://powerusers.microsoft.com/t5/General-Power-Automate/Extracting-all-URL-from-Email-body/td-p/5...

 

Thanks,

Murali.

Radoslavov
Continued Contributor
Continued Contributor

Still not relevant solution as the email with the URL to the survey form is send by external provider (Yahoo, Gmail, etc.) so Power Automate doesn't know about it or have any access to it. The only thing that is related to Microsoft here is the survey response received by the customer, but the survey link itself is embeded into an email template and at the end of it are added the link parameters mentioned above which makes the survey unique every time.

Hi @Radoslavov ,

Please let me know, are you be able to read the Survey response email or not ? and what and all you can access in the Power Automate ?

 

Thanks,

Murali.

 

Radoslavov
Continued Contributor
Continued Contributor

Sorry  for the delay, not really i wasnt able, however we've decided not to use Power Automate so this will remain unresolved

 

Thanks for the help anyway, appriate the time spend 🙂

 

Regards

Kiril

Helpful resources

Announcements
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

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

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (3,153)