Skip to main content
April 6, 2024
Solved

I was working with the configurations of the email template but when i have tried that i was getting the error in the process model

  • April 6, 2024
  • 3 replies
  • 0 views

rule!CRP_getUserOrGroupEmailIds(
  recipient: if(
    contains(
      cons!CRP_TXT_BUTTON_ACTION_FOR_RM_APPROVAL[4],
      pv!buttonAction
    ),
    ac!involvedUsers,
    if(
      contains(
        cons!CRP_TXT_BUTTON_ACTION_FOR_RM_APPROVAL[5],
        pv!buttonAction
      ),
      pv!requestMasterDetails['recordType!{7d4ba6cb-2d10-4167-b775-b01207e73ffb}CRP_requestMasterDetails.fields.{11a8daca-73c1-434d-b842-1d9095c26c07}initiatedBy'],
      pv!taskAssignee,
      
    )
  )
)

    Best answer by karumurua531442

    hi [mention:6e20419911ff4105a0cebb1e3f51066c:e9ed411860ed4f2ba0265705b8793d05] the error says that null parameter is passed into user() function could you check once the variables which you are sending are not null values. initially for debugging purpose just direct give once user and check whether the process model is running without errors, If that looks fine, implement the logic step by step and verify.

    And also may I know what is there inside this rule? rule!CRP_getUserOrGroupEmailIds

    3 replies

    karumurua531442
    April 6, 2024

    hi [mention:6e20419911ff4105a0cebb1e3f51066c:e9ed411860ed4f2ba0265705b8793d05] the error says that null parameter is passed into user() function could you check once the variables which you are sending are not null values. initially for debugging purpose just direct give once user and check whether the process model is running without errors, If that looks fine, implement the logic step by step and verify.

    And also may I know what is there inside this rule? rule!CRP_getUserOrGroupEmailIds

    April 6, 2024

    Hi Abhishek , Thanks for the quick response yes i found that the value is getting pass as a null for the ac!involvedUsers . That was main issue . 

    karumurua531442
    April 6, 2024

    Great!