please find the below code which is not working-
{% assign pdate = request.params.date %}{% assign pdatekey = request.params.datekey %}
{% assign pstartdate = request.params.startdate %}
{% assign penddate = request.params.enddate %}
{% fetchxml my_query %}
<fetch version="1.0" output-format='xml-platform' mapping='logical' distinct='false'>
<entity name="cr579_tmf_planview">
<attribute name="cr579_startdatekey" />
<attribute name="cr579_target" />
<attribute name="cr579_enddatekey" />
<attribute name="cr579_startdate" />
<attribute name="cr579_enddate" />
<order attribute="cr579_startdatekey" descending="false" />
<filter type='and'>
<condition attribute='cr579_target' operator='nq' value='{{pdate}}' />
<condition attribute='cr579_startdatekey' operator='ge' value='{{pdatekey}}' />
<condition attribute='cr579_enddatekey' operator='le' value='{{pdatekey}}' />
</filter>
</entity>
</fetch>
{% endfetchxml %}
{
"TMF_FilterCrushingExecutionTargetJSON" : [
{% for item in my_query.results.entities %}
{
"StartDateKey": "{{ item.cr579_startdate}}",
"EndDateKey": "{{ item.cr579_enddatekey}}",
"Target": "{{ item.cr579_target}}"
}{% unless forloop.last %},{% endunless %}
{% endfor %}
]
}