Question

Profile Photos migration

Hi Team,

 

I have a use case where our customers have more than 3000 records having profile photos linked with records. We have to migrate those photos to new Creatio production instances.

 

What we are trying is in below steps : 



Step 1: uploading the photos/Images in Attachment table.

Step 2: Adding a record in SysImage Table using business process from Attachment Table(step1).

Step 3: Updating the created record Id of SysImage in "PhotoId" of Contact section.



Issue : All the steps are working fine but Image is not reflecting against the contact using this approach.



Can anyone please tell us the reason for it? 

 

Support team suggestion https://community.creatio.com/questions/import-photo-image-imageapiservice



I have gone through this link, but didn't understand Ryan's suggestion correctly. 



My questions related to Ryan's code  is below : 



1. "var url = "https://somewebsite/someimage.png" -- What is this url supposed to be? 



2.  Do I need to write the give code in source code schema and then use it ?



3.  Since the customers have 3000 photos of contacts then how this code will find correct photo of correct contact? Actually what modifications is required before using this piece of code ?

 

 

 

 

Like 1

Like

1 comments

Hi Akshit,

 

Answers to questions related to Ryan's code:

 

1) This is the URL to a separate resource where an image is located (direct link to an image)

2) You can do it either in the source code inside the app or create an integration that will connect to the Creatio app and perform an update of the image

3) You have to create a logic that will go through 3000 records (a cycle I guess or an array and execute the logic for each item of this array using standard C# approaches of processing several records)  and execute the logic for these records.

 

Best regards,

Oscar

Show all comments