Hi, I have a record type in which I have set the filters to view the record

Hi,
I have a record type in which I have set the filters to view the record based on the logged In User using "in" operator . If there are no records for the user, I am getting the error as "cannot apply "in" operator to the record field".
Please provide suggestions....

OriginalPostID-113124

OriginalPostID-113124

  Discussion posts and replies are publicly visible

Parents
  • Hi Michael,

    Please find the scenario below:

    There will be three roles as Executive , Senior Manager and Supervisor.All the three roles can able to create the workflows.If Executive is logged in,the record has to list all the workflows which was created by three roles.If Senior Manager is logged In,only the workflows which belongs to his region has to be displayed . If Supervisor is logged in, then only his workflows has to be displayed in the records.
    Suppose if the Supervisor does not create any workflows, then the result will be empty. In this case, the "in" operator throws an error.

    My Expression will be like this:
    Record Field: workflowID
    Operator in
    value: rule!displayWorkflowsbasedOnRole(loggedinUser())

    Thanks,
    Chandhini R
Reply
  • Hi Michael,

    Please find the scenario below:

    There will be three roles as Executive , Senior Manager and Supervisor.All the three roles can able to create the workflows.If Executive is logged in,the record has to list all the workflows which was created by three roles.If Senior Manager is logged In,only the workflows which belongs to his region has to be displayed . If Supervisor is logged in, then only his workflows has to be displayed in the records.
    Suppose if the Supervisor does not create any workflows, then the result will be empty. In this case, the "in" operator throws an error.

    My Expression will be like this:
    Record Field: workflowID
    Operator in
    value: rule!displayWorkflowsbasedOnRole(loggedinUser())

    Thanks,
    Chandhini R
Children
No Data