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

BTP Workflow: Maintain or hide sender information in workitem details

lf752516
Explorer
0 Kudos
728

Hello experts,

within the details of a SAP BTP workflow item the sender information is visible. But when a technical user started the workflow, a cryptic name is displayed in the My Inbox message like this:

Created by: sb-clone-cf544e07-e88d-4ae7-be14-cf4ea96a6904!b125270|workflow!b1015 .

Unfortunately, the enduser reading the work item is confused with this information. So we are looking for an option to hide or change this information.

The information is stored in the variable ${info.startedBy}.

But this cannot be overwritten: $.info.startedBy = "newName".
Error Message: TypeError: Cannot set property "startedBy" of info[taskDefinitionId=scripttask2, workflowInstanceId=35a11e96-b841-11ed-be5f-eeee0a816563

For the work item list displayed in the "Main" part of the MyInbox it is possible to display a custom name using the attribute "CustomCreatedBy". But this is not working for the workitem details.

So, how can we hide or change the displayed sender information "Created By: ..." within the workitem details?

picture-created-by.png

With kind regards

Frank Lange

Accepted Solutions (0)

Answers (5)

Answers (5)

0 Kudos

Hi Frank

I found the following forum to configure custom attributes in my inbox the problem is that i cannot identify where to add this custom attributes in the process that i created it.

https://help.sap.com/docs/workflow-capability/workflow-cloud-foundry/display-custom-attributes-in-my...

You already try this solution from your end ?

Best regards

David.

lf752516
Explorer
0 Kudos

Hello David,

no, it must work like it is.

Regards

Frank

0 Kudos

Hi Frank, has you been able to find a solution for this ??

lf752516
Explorer
0 Kudos

Hi Ivan,

the process was started by an internal technical user, so the workflow shows this user correctly, but I would like to change this display like: send by "Background service"

It looks better for the user.

Or can I hide diplay of this row?

Regards

Frank

Ivan-Mirisola
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi hermes007,

When I see the following syntax "sb-clone[...]worflow!x9999", I see an internal technical user - meaning, it refers to an OAuth2 client id being used by the requester application when it called the workflow process end-point.

What you really want is to enable "Propagate Principal" on your workflow definition, so it is able to determine the user that has to start the workflow process.

If you have that enabled already, please check that you have the correct destinations in place. Check the following documentation (search for 'Propagate Principal'): https://help.sap.com/docs/WORKFLOW_MANAGEMENT/6f55baaf330443bd8132d071581bbae6/3e3515b732904cba82f8d...

There you will find a link to the documentation that has the destination's requirements and details.

If you are kick-starting the process outside of the workflow context (i.e.: you are starting it from an API call), then you ought to authenticate to it using a technical user and credential type = password.

Best regards,
Ivan