1

I want to run a trigger to post data to a URL when a value is added in a Google Sheet.

But as the UrlFetchApp.fetch() does not work on onEdit trigger, is there a turnaround we can do , so I get the value whenever a new value is added in the sheet

7
  • 1
    You might check this issue tracker 1 that you may use customFunction and connect it to onEdit() to make it work. Note that issue tracker 2, UrlFetchApp is no longer supported in a simple onEdit trigger. You can try the work around that can be found in the issue tracker 1 but as a Googler said that they "disabled Urlfetch in onEdit triggers because to enable this feature may introduce a security concern." Hope this info helps. Commented Feb 5, 2017 at 8:16
  • @Mr.Rebot yes thank you for your help. Commented Feb 5, 2017 at 13:32
  • @Mr.Rebot how can I mark this question as answered? Commented Feb 5, 2017 at 13:33
  • An "installed" "On Edit" trigger has different permissions than a "simple" "On Edit" trigger. Change the function name from the reserved function name of "onEdit()" to something else, and then click the Resources menu, and "Current project's triggers." Commented Feb 5, 2017 at 22:58
  • @StacyThompson Do you mean that you'll accept my comment if posted as answer? Commented Feb 6, 2017 at 0:13

1 Answer 1

1

You might want to check this issue tracker 1 that you may use customFunction and connect it to onEdit() to make it work. Note that issue tracker 2, UrlFetchApp is no longer supported in a simple onEdit trigger. You can try the work around that can be found in the issue tracker 1 but mentioned that they "disabled Urlfetch in onEdit triggers because to enable this feature may introduce a security concern."

Hope this info helps.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.