cancel
Showing results for 
Search instead for 
Did you mean: 

Approve sales quote via web service

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member201819
Participant
0 Kudos

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.

Answers (3)

Answers (3)

HorstSchaude
Product and Topic Expert
Product and Topic Expert

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

gregory_root
Advisor
Advisor
0 Kudos

Anyone know when the documentation will be updated with the list of ESF2 objects? If it's been published, I haven't been able to find it.

HorstSchaude
Product and Topic Expert
Product and Topic Expert

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

Former Member
0 Kudos

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

former_member186648
Active Contributor
0 Kudos

Hi Christine,

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

Thanks, Pradeep.