Skip to Content
avatar image
Former Member

How to call xsjs script from BODS

There is a task to send an email using the XSJS API - https://blogs.sap.com/2014/12/02/sap-hana-sps-09-new-developer-features-new-core-xsjs-apis/

Is it possible to call XSJS script from BODS?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Nov 18, 2017 at 12:53 PM

    BODS can call web service (see Integrator Guide: Consuming external web services in SAP Data Services), so you can write xsjs-script, which emulate soap-server response.

    But there is another way to send an email using XSJS API. You can insert record (via BODS) with the necessary information to table and write XS Job which send email for each record from this table.

    Also you could consider using VBScript instead of XSJS. https://blogs.sap.com/2015/08/25/add-attachment-to-your-mail-in-bods-a-step-by-step-process/

    Add comment
    10|10000 characters needed characters exceeded