cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

HTML Script when Retrieving Item descriptions

Hello,

 

When using the trigger “When a work item is updated” for VSTS in flow for some reason the trigger is copying the HTML script from VSTS items along with the item. Due to this every time the VSTS description is copied by the trigger it is adding script like “"System_Description""<div>test<br></div>". An example of this is shown in the screenshot below.

 

Capture1241.PNG

 

Does anyone know why this is happening or how I could fix it?

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
v-xida-msft
Community Support
Community Support

Hi @Anonymous,

 

Could you please share a screenshot of your flow's cnfiguration?

 

I have made a test on my side and don't have the issue that you mentioned. My flow's configuration as below:3.JPGThe flow works successfully as below:4.JPG

 

I think the issue is related to the Data Type of the Description field within a Work Item, the data type of the Description field is HTML data type. More details about the field data types within VSTS, please check the following article:

https://docs.microsoft.com/en-us/vsts/work/customize/reference/define-modify-work-item-fields?view=vsts

 

 

In addition, please check if you have typed html code within the Description field of the Work Item of your VSTS. Please also take a try to re-create a new connection to the VSTS connector and try your flow again to check if the issue is solved.

 

If the issue still exists and you want to reference the System_Description property (Description dynamic content) within following steps as plain text rather than HTML code, I think the "Html to text" action could achieve your needs. You could take a try with the following flow's configuration:5.JPG

 

More details about the "Html to text" action, please check the following article:

https://flow.microsoft.com/en-us/blog/seven-connectors-and-html/

 

Please also check and see if the following thread would help in your scenario:

https://powerusers.microsoft.com/t5/Building-Flows/Html-To-Text-End-Of-File-Check/m-p/106260/highlight/true#M10406

 

 

Best regards,

Kris

 

 

 

 

Community Support Team _ Kris Dai
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

2 REPLIES 2
v-xida-msft
Community Support
Community Support

Hi @Anonymous,

 

Could you please share a screenshot of your flow's cnfiguration?

 

I have made a test on my side and don't have the issue that you mentioned. My flow's configuration as below:3.JPGThe flow works successfully as below:4.JPG

 

I think the issue is related to the Data Type of the Description field within a Work Item, the data type of the Description field is HTML data type. More details about the field data types within VSTS, please check the following article:

https://docs.microsoft.com/en-us/vsts/work/customize/reference/define-modify-work-item-fields?view=vsts

 

 

In addition, please check if you have typed html code within the Description field of the Work Item of your VSTS. Please also take a try to re-create a new connection to the VSTS connector and try your flow again to check if the issue is solved.

 

If the issue still exists and you want to reference the System_Description property (Description dynamic content) within following steps as plain text rather than HTML code, I think the "Html to text" action could achieve your needs. You could take a try with the following flow's configuration:5.JPG

 

More details about the "Html to text" action, please check the following article:

https://flow.microsoft.com/en-us/blog/seven-connectors-and-html/

 

Please also check and see if the following thread would help in your scenario:

https://powerusers.microsoft.com/t5/Building-Flows/Html-To-Text-End-Of-File-Check/m-p/106260/highlight/true#M10406

 

 

Best regards,

Kris

 

 

 

 

Community Support Team _ Kris Dai
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 Kris, This help me to solve my issue. Thank you!

 

And on top of your screenshot, I would like to share the next step to call the HTMLtotext steps.  (i was trying hard to find how to display the "htmltotext convertion text" in my final result, so i think this screenshot might help out if the person has the similar issue that what I had.

hooipeng_1-1618460405238.png

 

 

 

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

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.

Users online (1,784)