Skip to Content

Approve sales quote via web service

Dear community,

we would need to approve sales quotes using web service communication.

I created a customer specific solution with a web service for the action "Approve" on sales quotes.

I tried to use A2X and B2B authentication but calling the webservice does not work.

Does anybody has experience with this action?

With business user authentication the result is an error message "Assertion failed", although the business user is the assigned approver for the sales Quote.

Kind regards,

Christine

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    Feb 03, 2017 at 07:07 PM

    Hello Horst,

    I am currently facing a similar problem: When creating an instance of the BO "Employee Time", I would like to immediately approve it via ABSL-code.

    There is an action "EmployeeTime.Approve()" available, but when I try to use it, the error "Approval functions can only be called within script files of approval actions." is shown in the error console.

    Honestly, I have no idea what this means, can you please shed some light on this issue?

    Thank you and Kind Regards
    Pablo

    --------------------------------------------

    Edit:

    Finally, the simple solution was just that you first have to call "SubmitForApproval()" before you can call "Approve()" in ABSL.

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 30, 2016 at 12:29 PM

    Hello Christine,

    As the CustomerQuote in ByD is not using the ESF2 framework you cannot enhance it with an own action. :-(

    So the old way of having a "shadow" BO with the action calling the CustomerQuote->Approve is required.

    Sorry,
    Horst

    Add comment
    10|10000 characters needed characters exceeded

    • Hello Gregory,

      You want to add a node to a Business Object Extension.
      Therefore you go to the the documentation and drill down to

      Scripting Languages -> Scripting Language for the Studio -> Business Object Definition Extension -> Node

      and you will find the actual list.

      HTH,
      . Horst

  • Oct 21, 2016 at 02:42 AM

    Hi Christine,

    Is this webservice created in SDK? If yes, how are you testing the webservice? via ABSL? or WSID?...

    Thanks, Pradeep.

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 29, 2016 at 01:03 PM

    I created the webservice in the Cloud Application Studio to call the Action CustomerQuote.Approve.

    I opened an incident about this issue and the answer was, that this Action is not supported to be called directly.

    The approval functionality is part of a separate engine and not available for partners at the moment.

    If someone knows another way, how to approve sales quotes from an external application (with webservice), it would be great to know.

    Kind regards, Christine

    Add comment
    10|10000 characters needed characters exceeded