AIP Logic output as automated email notification in automate?

Hi!

I made an AIP logic function which reads an object from ontology and derives insights, and would like to use the automate console to have the output of the function be sent in a weekly email (to myself only).

When I do a function generated notification type the function does not display (my guess is that’s only code based functions)

Functions effect is not right for this as I’m doing a schedule based automation

Logic effect also does not look right for this as it says Ontology Edit Functions, and mine is a read only

If there is another way to automate sending the aip logic as an email or displaying it somewhere I am open

Thank you!

1 Like

Two things I’d check:

  1. You’ve published the AIP Logic function
  2. The function outputs a Notification type

Point 2 might be the issue, as I don’t think AIP Logic has a native output of that type.

I’d try either adding a code block at the end of your AIP Logic function that wraps it – the docs give you a pretty straight forward way of doing this – or if that doesn’t work, create a code repo with a wrapper function that takes the output from your AIP Logic function, wraps it and returns it as a Notification type.

2 Likes

Thanks for the workaround! Good idea with wrapping the AIP logic