0
jsonata : complexe expression not working?
New Here
,
/t5/acrobat-services-api-discussions/jsonata-complexe-expression-not-working/td-p/13814548
May 24, 2023
May 24, 2023
Copy link to clipboard
Copied
Hi,
I tried theses expressions, but nothing display
- {{$join(specificRequest.certificationCategory)}}
- {% conditional-section expr(specificRequest.certificationCategory != null) %}Non{% end-section %}
- {% conditional-section expr(“FORMATION_ACTIONS” in specificRequest.certificationCategory) %}has FA{% end-section %}
- {% conditional-section expr($contains($join(specificRequest.certificationCategory), “COMPETENCE_ASSESSMENT”)) %}tototoot {% end-section %}
- {{expr($count(specificRequest.certificationCategory))}}
The first displays:
FORMATION_ACTIONSCOMPETENCE_ASSESSMENTEXPERIENCE_ACQUISITION_ACTIONSLEARNING_ACTIONS
The second displays the text correctly
The third and fourth display nothing
The last displays 4
The json looks like that, and everythongs works on jsonata.
{
"specificRequest": {
"certificationCategory": ["FORMATION_ACTIONS", "COMPETENCE_ASSESSMENT"]
}
}
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Adobe Employee
,
/t5/acrobat-services-api-discussions/jsonata-complexe-expression-not-working/m-p/13818745#M6281
May 25, 2023
May 25, 2023
Copy link to clipboard
Copied
I've tried out the template with the json data you've provided.
- For 1,5 I think you might've used a different json which contains four entries while generating the output.
- For 2,3 please use normal double quotes(") instead of specials double quotes(“).
Please let us know if you have any more doubts.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Stephane29154717bl5j
AUTHOR
New Here
,
LATEST
/t5/acrobat-services-api-discussions/jsonata-complexe-expression-not-working/m-p/13818750#M6282
May 25, 2023
May 25, 2023
Copy link to clipboard
Copied
Thanks, I'l succeed getting all working using computing moore stuff in my backend.
I provide more boolean to my template. It works.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

