Skip to Content
0
Jul 26, 2023 at 09:17 AM

SAP CPQ 2.0: How to use ApiResponse = ApiResponseFactory.RedirectResponse(url) correct?

230 Views Last edit Jul 27, 2023 at 08:26 AM 2 rev

Dear SAP Community,
I try to define a simple redirect in a SAP CPQ IronPython Script with ApiResponseFactory.RedirectResponse the following way to assign it to a button afterwards.

url = "https://www.example.com/"<br>ApiResponse = ApiResponseFactory.RedirectResponse (url)<br>

But it gives me the statement back: "name 'ApiResponseFactory' is not defined" in the environment of the Workbench and when I have implemented in context of an quote.

What do I miss here?

Look forward to your recommendations. :)

Its maybe a little bit offensive but do you guys have maybe an idea how to create a redirect to another web application via a button on the quote and linked custom action which carries the respective logic? :)

Luka Pilipovic Patrick Latour Manku Tripathi Milovan Srejic Michael Wilhelm Yogananda Muthaiah