Kamila
2 years agoContributor
Unable to change certification state
Hi Team,
I have tried to make a simple task - if user in not in group I would like to change a certification status to rejected.
This code is in DataQualityEventHandler:
Case Is = BREventOperationType.DataQuality.Certify.FinalizeSetQuestionairreState
Dim sGuid As String = "419eeb3d-eaec-43fc-bc0a-cab5862323f10"
Dim Guid_1 As New Guid(sGuid)
If BRApi.Security.Authorization.IsUserInGroup(si, si.UserName, "GROUP",False) = False Then
BRApi.DataQuality.Process.ExecuteQuestionnaireSignOff(si,si.WorkflowClusterPk,Guid_1,CertSignOffStates.ProfileRejected,"Comments")
End If
It always returns "Certified", but should "Rejected":
Any ideas what am I missing?