set field rule syntax to update Avatar

Is it possible to use the rule 'Set Filed" to load user avatar from url?
Photo's of our users are stored in url on different server.

Some thing like this?

If ${entity.Avatar == null || entity.Avatar == ''}
Set Avatar to ${concat('https://imageserver.com?imageid=', entity.Upn)}

Tags:

  • I think that you would have to run an REST-API call to get the content and add this, but this doesn't seem straightforward.

    Regards,

    Ben

    Ben Rabau 

    EMEA Professional Services 

  • Just a quick note:

    • Maybe the easiest is to generate an attachment from this image file
    • This would enable you to pick up the resource <id> from the attachments field (frs/file-list/<id>)
    • then use that same resource <id> as the content of the avatar field

    This still requires you to write some code to get the attachments from a file-name.

    Which honestly makes me feel that it would be easier to write a quick OO script to do this.

    Regards,

    Ben 

    Ben Rabau 

    EMEA Professional Services