Hello everyone,
do you guys know how to count each line in a html code?
I have the following assign activity:
Assign Phonenumbers=Phonenumbers.Replace(“,”,“ ”)
It looks like this in our ticket system (communciation via. API Interface):
12345
12345
12345
12345
Which html command can I add in my assign activity to see the following output in our ticket system:
12345
12345
12345
12345
12345
Thanks in advance!
Dennis
Hi try to splt the string by “enter”/“newline”
then assign each of them into array
then can manipulate the array using for each
and assign them to a new string (append the reult of for each )
something like :
yourString.Split(Environment.NewLine.TocharArray)
not working
this is the data in excel cell
[image]
I am using this but not working
[image]
regards
ahmad
1 Like
ppr
(Peter)
August 3, 2022, 7:53am
3
@bibalesecret
can you help us to understand for what is not covered from this topic with the suggestion from:
better to open a new topic. When 1 Topic = 1 case other researchers can find quicker solutions for a similar request
If We got you right you was looking for?
[grafik]
String.Join(Environment.NewLine,YourVar.split(","c).select(Function (x,i) (i+1).toString & ". " & x ))
Your solution helped me inside UiPath, but our ticket system couldn’t parse the syntax in the request field.
That’s why I needed a new solution for an html body, outside UiPath.
ppr
(Peter)
August 3, 2022, 8:07am
5
Wer’e not sure on some wordings from your question e.g.
and would assume you are asking for which code stamentent / VB.Net options, right?
we would need the excact details of your initial input (as far we had understood the response from the API interface)
Depending on this we can decide for solution apporaches
Yes, a syntax that can be read by a html body.
I would pause this question until I have more information from my collegues. I will reply with new information.
system
(system)
Closed
August 6, 2022, 10:26am
7
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.