cancel
Showing results for 
Search instead for 
Did you mean: 
Workflow Hero

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.

Jump to solution

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. 

Labels: (1)
0 Kudos
Reply
7 Replies
Workflow Hero

Re: 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.

Jump to solution

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

Reply
Workflow Hero

Re: 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.

Jump to solution

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.

Reply
Workflow Hero

Re: 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.

Jump to solution

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.

0 Kudos
Reply
Workflow Hero

Re: 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.

Jump to solution

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".

0 Kudos
Reply
Workflow Hero

Re: 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.

Jump to solution

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. 

0 Kudos
Reply
Workflow Hero

Re: 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.

Jump to solution

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.

0 Kudos
Reply
Workflow Hero

Re: 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.

Jump to solution

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.

0 Kudos
Reply