Solved

When I update an item field from the current item, I also gets the html tag.How can I only get the value from the current item field.


I  have two list . i. OrderList ii.CustomerList . I am trying to update the CustomerList , CAddress field with the current item  field "Address" from OrderList, but when the workflow gets fired, it updates the CAddress field with  html tag and actual value. 

icon

Best answer by kchaluvadi 6 July 2017, 22:52

View original

7 replies

Userlevel 5
Badge +13

What type of field is CAddress? Is it multiple lines of text with Rich Text enabled?

Well , the CAddress in single line of text and it is the  target  field . The Source field is Address , which is  Mutiline Line text and Rich Text enabled.

Userlevel 5
Badge +13

CAddress needs to be rich text to be able to parse the HTML or your source field needs to not be rich text. You could use Regular Expression to remove the HTML potentially, but that would be more headache.

Userlevel 3
Badge +12

Hi Israr,

Make the source field, "Address" as plain text. Multi line text field with "rich text" enabled internally have html tags. So, make it as "Plain Text".

Yes , your suggestion  worked for me, but  what if we have to copy different field types where the source and target field are of different types. 

Userlevel 5
Badge +13

From plain to rich will work just fine; from rich to plain is where you have the issue. Again, I would say that the best way to approach that would be using regular expression in your workflow to strip out that HTML, but I don't necessarily think that would be easy.

Userlevel 3
Badge +12

There is no specific or straight answer for this in my opinion and its all depends on the data types. I would suggest to check available inline functions (if any suites), string to integer workflow action depending on the situation.

Reply