cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
CMHants
Level: Powered On

HTML Body to String for use in search for users

Hi All,

 

So I'm triggering  flow using a HTTP push request made by a chatbot. the chatbot uses flow to send an email to the users manager letting them know they are off sick. Flow seemed to be a simpler solution than having to code chatbot dialogue. 

 

The issue i have is that when I hit the flow from the BOT I pass in the user principle name but I get all of the UTF8 characters, which dont work with seach for users. Is there a kooky bit of workflow definition that I could use to remove the UTF8 , only leaving the user ID to pass to search for users

 

the flow is this with the issue shown below  - many thanks for any advice you could offer

FLOW - ENDPOINT PRE RUN.PNGFLOW FAILED.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
CMHants
Level: Powered On

Re: HTML Body to String for use in search for users

Hi All

 

I've solved this one myself. I used variables and then parsed these  into an array, after that just added further variables and the array  position to extract the required info from the request body 

View solution in original post

2 REPLIES 2
dougallen
Level: Powered On

Re: HTML Body to String for use in search for users

@CMHants,

 

Are you saying that the text ITCSCJ is the actual username?  I would think you could use a combination or one of the string functions to get the data you want (REPLACE, SUBSTRING, etc).  Can you paste the whole output?  

Highlighted
CMHants
Level: Powered On

Re: HTML Body to String for use in search for users

Hi All

 

I've solved this one myself. I used variables and then parsed these  into an array, after that just added further variables and the array  position to extract the required info from the request body 

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 231 members 6,426 guests
Please welcome our newest community members: