Skip to Content

Welcome!

Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.

Sign up

You need to be registered to interact with the community.
This question has been flagged
1 Reply
26 Views

Hello,

I am testing how to use the external api. Here is my code in golang.

I wanted to upload a file to purchase order and create a rest api from that. However, when I tested this, there was no error. But I can't seem to find any attachments on purchase order. I also don't seem to see an attachment_ids field. But no error was generated so I am getting confused. 


By any chance, can someone help me and point me to the right direction on how to upload a file to a purchase order through the api? and then display that at least?

Thank you!

Avatar
Discard

Hi,

From the code just remove the line "res_field": "pdf" and execute the function again and see if it works for you.

Also ensure from your side that the create is getting succeed


Thanks

Avatar
Discard

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!