# Issues with quotation marks

**URL:** <https://discourse.nodered.org/t/issues-with-quotation-marks/41335>\
**Category:** General\
**Created:** [20 February 2021 05:58 UTC](https://discourse.nodered.org/t/issues-with-quotation-marks/41335 "2021-02-20T05:58:40Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![dan560](https://avatars.discourse-cdn.com/v4/letter/d/e480ec/32.png) [@dan560](https://discourse.nodered.org/u/dan560)\
**Post date:** [20 February 2021 05:58 UTC](https://discourse.nodered.org/t/issues-with-quotation-marks/41335/1 "2021-02-20T05:58:41Z")

</div>

Hey guys,  
I can successfully run this call service in home assistant, however node-red seems to be having issues with the " "

```auto
{
    "filename": "/config/www/cctv/ground_floor/{{ now().strftime('%Y%m%d') }}/gl_{{ now().strftime('%Y%m%d-%H%M%S') }}_motion.jpg"
}

```

Any ideas on the right course of action?

Kind Regards,  
Dan

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [20 February 2021 06:47 UTC](https://discourse.nodered.org/t/issues-with-quotation-marks/41335/2 "2021-02-20T06:47:32Z")

</div>

You have not given sufficient context. Where does the text you posted appear?

---

<div class="post-metadata">

**Author:** ![dan560](https://avatars.discourse-cdn.com/v4/letter/d/e480ec/32.png) [@dan560](https://discourse.nodered.org/u/dan560)\
**Post date:** [20 February 2021 08:04 UTC](https://discourse.nodered.org/t/issues-with-quotation-marks/41335/3 "2021-02-20T08:04:41Z")

</div>

in home assistant

---

<div class="post-metadata">

**Author:** ![dan560](https://avatars.discourse-cdn.com/v4/letter/d/e480ec/32.png) [@dan560](https://discourse.nodered.org/u/dan560)\
**Post date:** [20 February 2021 08:06 UTC](https://discourse.nodered.org/t/issues-with-quotation-marks/41335/4 "2021-02-20T08:06:41Z")

</div>

This is the home assistant developer service call, however, when called in node-red it doesn't create the file.

```auto
filename: /config/www/cctv/ground_floor/{{ now().strftime("%Y%m%d") }}/gl_{{ now().strftime("%Y%m%d-%H%M%S") }}_motion.jpg
entity_id: camera.ground_level_camera_image

```

---

<div class="post-metadata">

**Author:** ![dan560](https://avatars.discourse-cdn.com/v4/letter/d/e480ec/32.png) [@dan560](https://discourse.nodered.org/u/dan560)\
**Post date:** [20 February 2021 08:09 UTC](https://discourse.nodered.org/t/issues-with-quotation-marks/41335/5 "2021-02-20T08:09:57Z")

</div>

it appears in the data section of the call service node:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/f/0fb770f5e07b54989a03a26c90cf23a985554bcb.png)  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/f/3f971896221a74c18c38c0f0e1e1c8b6f81f9547.png)

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [20 February 2021 08:40 UTC](https://discourse.nodered.org/t/issues-with-quotation-marks/41335/6 "2021-02-20T08:40:01Z")

</div>

> [@dan560](#):
>
> it appears in the data section of the call service node:

Sorry, I don't know about that node. Are you sure the `{{...}}` syntax is valid there? If no-one here is able to help then maybe a HA forum would be a better bet.

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [20 February 2021 09:08 UTC](https://discourse.nodered.org/t/issues-with-quotation-marks/41335/7 "2021-02-20T09:08:45Z")

</div>

As far as i am aware The {{..}} is not valid in json input field.

You would need to use function/template/change node to create the json and then feed it in by using dropdown msg.payload. Or use JSONata if available in dropdown.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [20 February 2021 12:35 UTC](https://discourse.nodered.org/t/issues-with-quotation-marks/41335/8 "2021-02-20T12:35:15Z")

</div>

You could also escape the brackets, that should work.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [6 March 2021 12:35 UTC](https://discourse.nodered.org/t/issues-with-quotation-marks/41335/9 "2021-03-06T12:35:43Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
