Dear All,
We would like to filter cases by "Created By Me" and "I'm following". The Createdby is simple, but the "I'm following" is a bit more difficult to achieve and we would like to follow best practice on it.
I saw the option "CaseRequesterIdList" which could be used next to "CreatedByIdList" for the users following, but I didn't see a logic to add more than one user to the CaseRequesterIDList... Or there any other recommendation on how to achieve the filter option and allow those, who are following access to the case (read)?
Thanks and regards,
Philipp
Hi,
A case has only one requester (either an internal user id or an external requester entry). the CaseRequesterId List you see in the Case_GetCases action only means that you want to retrieve all cases which are requested by one of the following ids.
i would suggest that you create a new entity for eg CaseFollower where you store follows of a user to a specific case. in addition and to follow case management framework naming conventions server actions Case_AddFollower and Case_RemoveFollower. The "Search" action eg. Case_GetCasesAdvanced is definitly a little bit more work, esp. when you also want to include other filter and sort options as well.
Best
Stefan
actually that one caught my attention :-) I quickly created a small extension, see OML attached. With the following actions
Case_AddFollower
Adds a user id as follower to a given case id
Case_RemoveFollower
Removes an existing follower from a case
Case_CheckFollower
Checks if a user is following a given case
Case_GetAllFollowers
Retrieves all followers for a case
Case_GetByFollowerId
Retrieves case details for a given following user id.
Hope you find that useful. I think that this would also be a candidate for a marketplace share. Would like to hear your additional requirements.