cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Quote 2.0: Post requests of a Rest Client

Lola_234
Explorer
0 Kudos
830

Dear SAP Community,

I am currently sending a post request with the following command in an if loop : 

RestClient.Post(url, data, headers) . The paramaters url, data and headers are already specified . The problem is that i have further commands after sending the request from the CPQ system in the if loop, that I want to execute. Once The RestClient is run, the further requests are no longer executed. 

Does anyone have any suggestions or idea, where or how I can solve such an issue ?

Best regards 

Lola

 

 

 

View Entire Topic
Lola_234
Explorer
0 Kudos

Hi Fancy, 

if myvariable  == myvalue:
response = RestClient.Post(url, data, headers)
context.Quote.AddMessage("message text", MessageLevel.Error, True)

The post request is running perfectly but the next command won't be executed.

Best regards

Lola