cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Field Service Management - Use of the currentProfile variable in the field visibility condition

samot
Participant
0 Kudos

Hi,

we have observed the following behavior:

When we set this visibility condition - "${activity.assignmentStatus.name} == 'Akceptácia' || ${activity.assignmentStatus.name} == 'Výjazd' || ${activity.assignmentStatus.name} == 'Práca' || ${activity.assignmentStatus.name} == 'checkout' || ${activity.assignmentStatus.name} == 'Konfigurácia v ABS' || ${activity.assignmentStatus.name} == 'Zaznamenanie dát zariadenia'", on the Handover action of the Activity, then this Action is visible in the mobile Android application even for the users, which don't have appropriate permissions set in their User groups.

We have thought about the ${currentProfile}/${currentUser} variable. However it is not clear to us, how should we implement this variable into our already existing visibility condition stated higher. Our goal is to differentiate between users with User group "Partner Admin" and "Partner Technician", where only the users with group "Partner Admin" should see the action "Handover".

Thank you.

Accepted Solutions (1)

Accepted Solutions (1)

samot
Participant
0 Kudos

We have found out what we needed here - https://help.sap.com/viewer/fsm_admin/Cloud/en-US/expression-format.html, and ajusted our visibility condition like so: (${activity.assignmentStatus.name} == 'Akceptácia' || ${activity.assignmentStatus.name} == 'Výjazd' || ${activity.assignmentStatus.name} == 'Práca' || ${activity.assignmentStatus.name} == 'checkout' || ${activity.assignmentStatus.name} == 'Konfigurácia v ABS' || ${activity.assignmentStatus.name} == 'Zaznamenanie dát zariadenia') && ${currentUser.crowdType} === 'PARTNER_ADMIN'

Answers (0)