Forum Discussion
Hi Viktor,
I want to insert new record in the below given array .If suppose there are 4 records under the value array. I want to add the 5th record in the array of value if the another input is { "src_code" : "Active"}
“value”:
[
{
“color”:null,“default”:false,“description”:null,“isActive”:null,“**label”:“None**”,“urls”:null,“valueName”:“None”
},
{
“color”:null,“default”:false,“description”:null,“isActive”:null,“**label”:“Country**”,“urls”:null,“valueName”:“Country”
},
{
“color”:null,“default”:false,“description”:null,“isActive”:null,“**label”:“Employee”**,“urls”:null,“valueName”:“Employee”
},
{
“color”:null,“default”:false,“description”:null,“isActive”:null,**“label”:“Both”,**“urls”:null,“valueName”:“Both”
}
]
{
"src_code":"Active",
"tgt_code":null
}
expected Output
“value”:
[
{
“color”:null,“default”:false,“description”:null,“isActive”:null,“**label”:“None**”,“urls”:null,“valueName”:“None”
},
{
“color”:null,“default”:false,“description”:null,“isActive”:null,“**label”:“Country**”,“urls”:null,“valueName”:“Country”
},
{
“color”:null,“default”:false,“description”:null,“isActive”:null,“**label”:“Employee”**,“urls”:null,“valueName”:“Employee”
},
{
“color”:null,“default”:false,“description”:null,“isActive”:null,**“label”:“Both”,**“urls”:null,“valueName”:“Both”
},
{
“color”:null,“default”:false,“description”:null,“isActive”:null,**“label”:“Active”,**“urls”:null,“valueName”:“Active”
}
]
Please let me know if it is unclear.
type or paste code here
cjhoward18
4 years agoEmployee
- fabriciocarboni2 years agoNew Contributor II
Im wondering why snaplogic snap mapper is generating a downstream output like this
"[{companyName=Georgia-Pacific LLC}]"
I got his error in the mapper error output when I tried to change the snowflake data type from VARIANT to OBJECT and I've got this error.
Related Content
- 10 months ago
- 3 years ago
- 5 years ago
- 4 years ago