Hi Everyone!
Ive been trying to do this using automation. I'm able to remove only one set of IDs from the field. I have issues removing all the others.
This is the custom field value:
[5005e00000WW2BuAAL|https://urlhere/5005e00000WW2BuAAL ], [5005e00000WU4YGAA1|https://urlhere/5005e00000WU4YGAA1 ], [5005e00000WU1fGAAT|https://urlhere/5005e00000WU1fGAAT ]
I want to remove everything else and keep the IDs before the first square bracket and the pipe.
I want to have this in another field:
5005e00000WW2BuAAL,5005e00000WU4YGAA1,5005e00000WU1fGAAT
With remove, replace, substring I can remove the first one. Im not able to remove the other two Ids, or three or four.
but this field can change, I can add more, delete some. So the automation should be able to capture IDs (which might not start with 5005. I haven't tried using that approach though)
Any help is appreciated!
Regards
Aaron
Hi @Aaron Pavez _ServiceRocket_
The custom field appears to contain a list of links, with a comma delimiter. Is that correct?
If so you could use the list and text functions to help parse the data:
For example:
{{issue.myCustomField.split(",").trim().substringBetween("[", "|").join(",")}}
Kind regards,
Bill
Hi!
That's what I thought. I have to do several things with the same string. But I didn't know how to combine the functions.
and yes they are links. When I save them to a variable you see them like I posted.
Let me test it and I'll be right back my hero!!
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Aaron Pavez _ServiceRocket_
Just following up to check if that worked with your testing. Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Aaron Pavez _ServiceRocket_
Just following up to check if this answered your question. If so, please consider marking this one as "answered". That will help others with a similar need find solutions faster. If not, please let the community know what help you need with the rule changes.
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Aaron Pavez _ServiceRocket_
The links require a SalesForce login. Can you update your post with links that can be accessed anonymously?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.