User identified in form is not getting assigned as task participant

Comments

4 comments

  • Avatar
    Suhail Faisal

    Hi,

    Could you please let us know your response to the below few points:

    1) Are you able to see the task in your Work Center->My Tasks?

    2) Can you kindly try opening the task link in a private browser?

    3) Any chances of cross-browser login would have caused the issue?

    Thanks

    0
    Comment actions Permalink
  • Avatar
    vd

    Hi, I have added more screen shots in case this helps -

    In the form, I ask the user to select the Contract Administrator (this is contractowner5), but the value is saved as an email address (I need it this way).

    I then created another not visible value (ContractOwnerDomain) on that form to store the domain name and user id (using the javascript below) to assign to the task later on in the process.

    I also added in the following javascript to keep only the userid and preface it with “acme_nt_dom\\” 

    function GetNetworkId()

    {

    debugger;

       var ee = contractowner5.value;

       var n = ee.search("@");

       var name = ee.substring(0,n);

       var netID = 'acme_nt_dom\\'+ name;

    console.log(netID);

      eFormHelper.setFieldValue({ fieldId: 'ContractOwnerDomain',value: netID});}

     

    I then assign the task to the ContractOwnerDomain

     

    But, when I test it, it gets assigned to agile_dev, rather than me, even though I was assigned at the contract administrator!

     

     

    0
    Comment actions Permalink
  • Avatar
    Suhail Faisal

    Hi,

    Locally I tried the scenario you mentioned and it got worked without any issues. Could you please try your scenario with people picker as well? Since here we have the option to map multiple user account properties to form controls, this way you can avoid using the JS as well.

    Thanks

    0
    Comment actions Permalink
  • Avatar
    vd

    Hi Suhail, thanks for the people picker suggestion.  I identified the problem with my issue and it was related to the javascript code.  Once I fixed the javascript code, everything worked as expected.

    Thanks again

    0
    Comment actions Permalink

Please sign in to leave a comment.