Closed mickaelgudin closed 8 months ago
@mickaelgudin I have implemented the changes
@Sarveshgithub thank you for the implementation.
I reviewed your changes, you should use replaceAll and not replace in the js method appendWhere, otherwise we cannot specify the recordId on multiple criterias, same goes for connectedUserId.
Can you implement this fix? Thank you in advance.
@mickaelgudin Agree, good catch, applied fix
the idea is simple in the where clause :
WHERE AccountId <> {recordId}
WHERE CreatedById = {connectedUserId}
we replace {recordId} by the record id(if there is one set) and the {connectedUserId} with the id of the connected user