# Pre send - Celigo.integrator.Hook

**URL:** <https://connective.celigo.com/t/pre-send-celigo-integrator-hook/509>\
**Category:** Integrator.io\
**Tags:** hooks, javascript, logs, netsuite\
**Created:** [March 24, 2023, 1:01pm UTC](https://connective.celigo.com/t/pre-send-celigo-integrator-hook/509 "2023-03-24T13:01:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![baileyfeldewerd](https://avatars.discourse-cdn.com/v4/letter/b/9fc29f/32.png) [@baileyfeldewerd](https://connective.celigo.com/u/baileyfeldewerd)\
**Post date:** [March 24, 2023, 1:01pm UTC](https://connective.celigo.com/t/pre-send-celigo-integrator-hook/509/1 "2023-03-24T13:01:06Z")

</div>

I am attempting to create a preSend Celigo Hook. I have taken the sample from here:

[https://github.com/CeligoServices/SuiteScript-Hooks/blob/master/preSend/samplePreSendHook.js](https://github.com/CeligoServices/SuiteScript-Hooks/blob/master/preSend/samplePreSendHook.js)

However, it is not working. The logs are showing that the record was sent to Celigo, however it is not causing the flow to run. I also cannot find any logs that the hook ran in the Celigo Realtime Import Restlet Runner. I am using suitescript 1.0 as directed. Could you help me to figure out why this is causing the flow not to run?

 ![5301043caa20740200000001-848f2bc07350486d80ce21921e38f6c7.png](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/1/11c24d66ba144e1a422b34395e87b60e9d04fb03.png)

 ![5301043caa20740200000001-1618fb475f71482f911bfd0fafad1281.png](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/4/49a01f8baec0b6befd10d734e620d92500d68275.png)

Thanks,

---

<div class="post-metadata">

**Author:** ![tylerlamparter](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/tylerlamparter/32/9204_2.png) [@tylerlamparter](https://connective.celigo.com/u/tylerlamparter)\
**Post date:** [March 24, 2023, 4:19pm UTC](https://connective.celigo.com/t/pre-send-celigo-integrator-hook/509/2 "2023-03-24T16:19:57Z")

</div>

@baileyfeldewerd on the export step, what option is selected here? If your hook is in suitescript 1.0, then it needs to be using suitebundle 1.0 or suiteapp 1.0.

 ![5301043caa20740200000001-c51f0b77b2d24e66b0857fa3a936ad94.png](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/0/028104bb27ffb2c55aaa4c3bbe9e14da003b8d71.png)

 ![5301043caa20740200000001-b3b7a8fd44f24133a7c3a85be9b2ed30.png](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/5/5c352f09ae55febd387f11fdd350d54e78216bc9.png)

---

<div class="post-metadata">

**Author:** ![baileyfeldewerd](https://avatars.discourse-cdn.com/v4/letter/b/9fc29f/32.png) [@baileyfeldewerd](https://connective.celigo.com/u/baileyfeldewerd)\
**Post date:** [March 24, 2023, 4:24pm UTC](https://connective.celigo.com/t/pre-send-celigo-integrator-hook/509/3 "2023-03-24T16:24:31Z")

</div>

@tylerlamparter

Yes, I have had it set to the 1.0 SuiteBundle. Which is what I have installed in Netsuite.

 ![5301043caa20740200000001-6281a87795ec4a948d4b820db8f9df83.png](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/8/89810842584124b19ccaf1920e6b70c15c73d3a3.png)

---

<div class="post-metadata">

**Author:** ![tylerlamparter](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/tylerlamparter/32/9204_2.png) [@tylerlamparter](https://connective.celigo.com/u/tylerlamparter)\
**Post date:** [March 27, 2023, 6:05pm UTC](https://connective.celigo.com/t/pre-send-celigo-integrator-hook/509/4 "2023-03-27T18:05:55Z")

</div>

@baileyfeldewerd It looks like the execution log for this is actually under the "Celigo Consumer Runner" script deployment. I went to script execution logs for the entire NetSuite instance to find where it was going.

 ![5301043caa20740200000001-a8783e6f13844f29b5938ec23554098e.png](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/3/3cdaa7d21d839259b273bd1ca91c1c038823accf.png)

---

<div class="post-metadata">

**Author:** ![baileyfeldewerd](https://avatars.discourse-cdn.com/v4/letter/b/9fc29f/32.png) [@baileyfeldewerd](https://connective.celigo.com/u/baileyfeldewerd)\
**Post date:** [March 29, 2023, 3:55pm UTC](https://connective.celigo.com/t/pre-send-celigo-integrator-hook/509/5 "2023-03-29T15:55:14Z")

</div>

@tylerlamparter

That's correct! After looking at these logs and changing the sample script to actually perform the update I was trying to do, everything worked!

Thank you!
