How to send image from a rest api to external system

Poorna7
Tera Expert

I have a requirement to send photos from live_profile table to external system. Using Rest API Explorer I tried to create REST API on live_profile table but in the response there is no value setting in the photo.

I also tried to build api url on sys_user table but same we are not getting photo in the response. Also in the  “avatar” field getting a sysID opposed to filename.

Could you someone help how can we get photo in the API call which will be send to external system.

 

 

1 REPLY 1

Omkar Kumbhar
Mega Sage
Mega Sage

Hello @Poorna7 ,

When you upload the photo to the user profile it will automatically create a record in the sys_attachment table.

You need to use the rest message of the sys_attachment table and check if the image is getting passed and few validations.

OmkarKumbhar_0-1676445504248.png

 

Please check the below screenshot where i uploaded the photo and record got created in the sys_attachment table.

If I was able to help you with your case, please click the Thumb Icon and mark as Correct.