WebAPI 10: error on QuoteAgent SaveQuoteLineImageAsync function

lock
push_pin
done
Beantwortet
10

Hello everyone,

In our custom app, we are supposed to replace product images for products in the quote.
We first search the quote lines

And after that we replace the image for each line using the function SaveQuoteLineImageAsync.
Unfortunately, we get a "Not Implemented" error on this call:

We have tried WebAPI in versions 10.2 and 10.5, with the same result.
This customer is using one of our quote connectors. 
We have searched, but could not find the proper method for overwriting. Does the error have to do with the Quote connector or is the method really not yet implemented in Rest API?

Thank you in advance!
Best regards, Andrey

1. Apr. 2025 | 10:57 AM

Alle Antworten (10)

With the SCILification of the quote module, everything that is done in the GUI is also possible in the REST Api. Looking at that I don't think it is possible to replace the image on quote line level. Only to specify a image on product level, which then is set on the quote line during creation. 

You can set the image of a product using the blob rest endpoint:

https://docs.superoffice.com/en/api/reference/restful/agent/BLOB_Agent/v1BLOBAgent_SetProductImage.html

1. Apr. 2025 | 12:08 PM

Hello David,

thank you for your reply. 
The customer uses a "generic" product for the quotes, changes the name and price directly in quote line, and also wants to set the image.

Andrey

 

1. Apr. 2025 | 12:47 PM
That currently isn't possible within SuperOffice
1. Apr. 2025 | 12:58 PM

Should be possible with the function I mean:

 

1. Apr. 2025 | 03:13 PM
Yeah, but neither the get not the save functionality is implemented in the code like you experienced, and since the functionality also isn't available in the SuperOffice GUI, i doubt you can do this. (GetQuoteLineImage on the blob agent does seem to work, but there is no SaveQuoteLineImage)
1. Apr. 2025 | 03:23 PM

We actually removed these methods in v11... So they will not be so confusing in the future.

2. Apr. 2025 | 02:19 PM
Hello Tony,
Thank you for your reply.
We are already using some of the BLOBAgent methods, including SaveImageStream and GetBlobStream.
Will these also disappear?

3. Apr. 2025 | 10:12 AM
I think Tony purely was talking about the GetQuoteLineImage and SaveQuoteLineImage methods of the quote agent, since those throw a not implemented exception.
3. Apr. 2025 | 10:14 AM

I have defined a wish for the methods. It would help/simplify things if they were implemented.

3. Apr. 2025 | 11:57 AM

Antwort hinzufügen