Forum Discussion
Hello, I tried this and changed the XML to show the following and I got the desired "Test" but it was not linked. is there something else I need to do with the quotes in the XML since the quotes are there in the pipeline parameter?
<a href = $item.Link_To_SF_CT_Record>Test</a>
Somehow, I am unable to upload my slp pipeline which have the solution, but here I am attaching the SS for your reference.
<html>
<body>
<a href="$item.Link_To_SF_CT_Record">Test</a>
</body>
</html>
nickhumble - could you simply enable the "Null-safe access" option and always reference the values you're looking for? If it doesn't exist, it will just be a null value. This would bypass the need for the get() method, which as you have found out, can't be used under multiple levels of object nesting.
- nickhumble2 years agoNew Contributor II
Thanks koryknick - this might just be the simplistic genius i was looking for!
If that doesn't work for you, then try this:
$.get('/position/field_2354910', {}).get('value')
Since the Object.get() method allows you to provide a default if the field doesn't exist, this example returns an empty object, so calling the next get() on the empty object will also return null.
Hope this helps!
- nickhumble2 years agoNew Contributor II
Thanks - my problem was i couldn't get a non-null value using .get, no matter what i tried. I wondered whether the forward slashes were confusing it or something, but .hasPath worked ok so i'm a bit stumped.
Your earlier suggestion has worked well though - thank you.