Forum Discussion
DougHenning1
3 years agoCommunity Manager
Hey Don,
In the example code it includes the index in the output:
------------------------------
Doug Henning
------------------------------
In the example code it includes the index in the output:
"6": { "value": "{{loop.index}} {{ x|trim }}" }
Just delete {{loop.index}} from the beginning of the string so it's only referencing x:
"6": { "value": "{{x|trim}}" }
------------------------------
Doug Henning
------------------------------
DonLarson
3 years agoQrew Elite
Doug,
Success! Many thanks. It works.
I comprehend 40% of the syntax at best. :(
For everyone else this is the Body of the Post in the Pipeline
Here is the architecture of the sample
Now you can exploit Many to Many Relationships without having to hit the "Add Child" button.
Waiting for Prashant's video #2 on Jinja in the Pipeline.
------------------------------
Don Larson
------------------------------
Success! Many thanks. It works.
I comprehend 40% of the syntax at best. :(
For everyone else this is the Body of the Post in the Pipeline
{%- set plist = a.quick_fill_reference_fields.split(';') -%}
{
"to": "bsvvexhkj",
"data": [
{%- for x in plist if x|trim != '' %}
{
"6": { "value": "{{a.id}}" },
"8": { "value": "{{ x|trim }}" }
}{{ ',' if not loop.last }}
{%- endfor %}
]
}
Here is the architecture of the sample
Now you can exploit Many to Many Relationships without having to hit the "Add Child" button.
Waiting for Prashant's video #2 on Jinja in the Pipeline.
------------------------------
Don Larson
------------------------------