cancel
Showing results for 
Search instead for 
Did you mean: 

SAP BTP Workflow instance Started By is showing Client ID of Destination ,while API call from Fiori

Hi ,

I am calling start workflow instance API from Fiori app but Workflow Instance Started by is showing Client ID of destination rather my User Id. So can you please let me know - How i will able to map started by with my User ID in API call , so that i can able to access this workflow from my inbox.

Please note - I also tried to add startedBy="XXXXXXXX@gmail.com" as parameter while posting but the result is same.

{ "definitionId": "xxxxxxxx", "startedBy":"XXXXXXXX@gmail.com", "context": { "ProductId": xxxx }}

Please the screen shot of Destination and Workflow .

destination.png

wfinstance.png

Regards,

Amitav

View Entire Topic
drvup
Contributor
0 Kudos

Hey Amitav,

there is no way to get rid of this situation, as the techn. user is the one starting the workflow. In a reference scenario I also send the the id of the user who did start the workflow within the context and do show this on the UI.

0 Kudos

I have also done this ,but no success . Can you please explain/ help how you can explicitly set the startedBy property.

I tried this with this below script

$.info.startedBy="XXXXXXXX"

but am getting below error

TypeError: Cannot set property "startedBy"