Getting started with Stored SQL Procedures for TNEW Custom Fields

Hi, 

I'm looking for some help getting started with building stored procedures for TNEW custom fields vs sending them to CSI.  

Having trouble getting started and not finding much documentation on this, I don't know what variables are sent to the procedure from TNEW, like session key, order number, etc.  

Like for instance LRP_TNEW_GET_ORDER_CONTRIBUTIONS is a stored procedure that looks up order info, so if I have TNEW run that stored procedure, will it send it the order number?

Anyone have any examples of something simple, like using a stored procedure in a custom from field to update an attribute in a constituent record or something like that?

Thanks in advance for any help!

Mark

Parents
  • I've written a couple now and the link to the quite sparse documentation is below

    Just a tip that other than the parameters below you must include ALL the form fields on the custom form need to be represented as parameters on the stored procedure otherwise it'll fail.

    The sproc can do anything like adding data to order note fields, update interests, or whatever you set you mind on.  I started with copying Beth Hawryluk's custom sproc from the the Education and TNEW presentation back from TLCC 2017 (slide #37) https://www.tessituranetwork.com/Passthrough?itemUri=/tlcc/2017/Pres/08_08_EDU_TNEW.pptm


    Tess help documentation:

    https://www.tessituranetwork.com/TNEW_7/Content/Topics/LTR_TNEW_CUSTOM_FORM_DATA.htm


    Using Local Stored Procedures to Save Data:

Reply
  • I've written a couple now and the link to the quite sparse documentation is below

    Just a tip that other than the parameters below you must include ALL the form fields on the custom form need to be represented as parameters on the stored procedure otherwise it'll fail.

    The sproc can do anything like adding data to order note fields, update interests, or whatever you set you mind on.  I started with copying Beth Hawryluk's custom sproc from the the Education and TNEW presentation back from TLCC 2017 (slide #37) https://www.tessituranetwork.com/Passthrough?itemUri=/tlcc/2017/Pres/08_08_EDU_TNEW.pptm


    Tess help documentation:

    https://www.tessituranetwork.com/TNEW_7/Content/Topics/LTR_TNEW_CUSTOM_FORM_DATA.htm


    Using Local Stored Procedures to Save Data:

Children