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

How can I access the images in my SmartForms from the FSM API?

0 Kudos
226

HI

i createt one smartform  in to FSM ,  this smartform have  or cotains  images of  services  techinicas, 

How can I access the images in into SmartForms from the FSM API?

how is example of query in this API?

 

 

Accepted Solutions (0)

Answers (1)

Answers (1)

Filip_Zarnovicky
Participant
0 Kudos

Hello, all pictures are "saved" in object Attachment which is connected to object ChecklistInstanceElement. I will send my approach from business rule:
1. array "attachment"

SELECT a.id as id, a.type as type FROM ChecklistInstance ci JOIN ChecklistInstanceElement cie ON cie.checklistInstance = ci.id JOIN Attachment a ON a = cie.object WHERE ci.object.objectId = ${activity.id} AND cie.elementId = 'attachment1' AND (a.type = 'JPG' OR a.type='JPEG' OR a.type='PNG')

2. action to GET Attachment

https://eu.fsm.cloud.sap/cloud-attachment-service/api/v1/Attachment/${attachments[i].id}/content?dto...