Question

Mobile section icons

Dear community,

 

I am tring to change the icon of two custom section in the mobile app. 

I found the code that is required :

"Icon": {
 // Unique image ID.
"ImageId": "4c1944db-e686-4a45-8262-df0c7d080658"
 },
 
"IconV2": {
 // Unique image ID.
"ImageId": "9672301c-e937-4f01-9b0a-0d17e7a2855c"
 }

But I'm not sure where to find the id of my images. I've looked in the DB talbe "SysImage" but the images are not upload in the mobile app. 

 

Where can I upload the images for the icon in order to change the file in the mobile app?

 

Thank you in advance,

Clara

Like 0

Like

4 comments

Hi Clara

 

Please find the schema "MobileImageList", where you may see all available images:

 



At the same time, it is not necessary to specify Icon in the manifest, only IconV2 is enough:

 

So, in order to change the image, you can use the next code sample:

 

"IconV2": {
 // Unique image ID. 
"ImageId": "MobileImageListServiceContractModuleImageV2"
 }

 

Where "ImageId" = the name of the schema with icons "MobileImageList" plus one of the Image name, like you see on the screen above: e.g "AccountModuleImageV2"  so the code will be

 

"IconV2": {

// Unique image ID.

"ImageId": "MobileImageListAccountModuleImageV2"

}

 

Please also delete the comments like " // Unique image ID. " , JSON doesn't like it.

 

Here is anothe code sample from the Academy:

 

"ServicePact": {

"Group": "main",

"Model": "ServicePact",

"IconV2": {

"ImageId": "MobileImageListServiceContractModuleImageV2"

},

"Hidden": true

},

 

Best Regards, 

 

Bogdan L.

 

 

 

 

 

Thank you very much!

 

Do you also know what format I should use for the icon? 

For now I'm using the same svg images uploaded in the cloud envirnoment. 

Do I have to set a specific size for them or  does the program produce an automatic resize?

 

Best regards,

Clara

 

Clara,

 

Seems like the format is "svg" by default. 

 

And the size needs to be looked at in debug.

 

Regards, 

 

Bogdan L.

Bogdan Lesyk,

 If you need to add a new custom icon. How we can add it to the system?

Show all comments