Send Image of a Student from ERPNext to another Endpoint

Hello Everyong,

I’m a beginner working with Education Module/ERPNext, and I am struggling to send one image an endpoint.

Is it possible for me to make a custom script or an event, when someone add a new Image to a Student, to capture this image and send it to an endpoint as a data/file?

Here is the picture of example:

And after a add one image, it goes like this:

Any tips on what I should look up into, to solve this problem? and if I would like to do is even possible to do? haha

please, help me

There will be one field named ‘image’. You can return the value of that field.

Thanks Sherin, I actually found it today, now I’m trying to find a way to send it to another endpoint.

Do you know if it’s possible to install python libraries inside frappe?

My ideia is to send this image to Storage Container, and I’d write this logic inside a Server Script, is it possibel to do?

I found a possible solution for me in this Thread: Install third party python libraries (e.g. PDFMiner)

I’ll try that haha

You can use frappe.make_post_request to send data.

frappe.make_post_request(url, auth=None, headers=None, data=None)
1 Like

Oh that’s great to know I can do that, thank you so much Sandeep!

1 Like