EWA Posted December 12, 2023 Share Posted December 12, 2023 First time trying to use Add Connection and obviously getting errors. I wanted to add as affected or interested PM which is specified in one of the questions. I was getting errors so changed for the failed workflow to manually add myself... still getting an error. Does this node require Get User beforehand Xmlmc method invocation failed for BPM invocation node 's1/flowcode-9103611c': <methodCallResult status="fail"> <state> <code>0207</code> <service>apps</service> <operation>addConnection</operation> <error>/apps/com.hornbill.servicemanager/entities/RequestConnections/fc_modules/request_connections_helper.js(598): error X1001: Uncaught TypeError: Cannot read property 'h_firstname' of undefined</error> <flowcodeError> <where>Execute</where> <filename>/apps/com.hornbill.servicemanager/entities/RequestConnections/fc_modules/request_connections_helper.js</filename> <lineNumber>598</lineNumber> <columnPos>16</columnPos> <message>Uncaught TypeError: Cannot read property 'h_firstname' of undefined</message> <errorCode>1001</errorCode> </flowcodeError> </state> </methodCallResult> Link to comment Share on other sites More sharing options...
David Hall Posted December 12, 2023 Share Posted December 12, 2023 Hi @EWA Not 100% sure if this is the issue, but I see in the screenshot you have the 'Contact (From Variable)' option set to 'Manual' but with no value set... it may be trying to find a contact with an empty id. Try setting that option to 'Ignore' and then try it again to see if that then adds you as a connection as defined in the 'Co-worker' option. Kind regards, Dave. Link to comment Share on other sites More sharing options...
EWA Posted December 12, 2023 Author Share Posted December 12, 2023 Thank you that was the original settings.. which failed.. Link to comment Share on other sites More sharing options...
Steve Giller Posted December 12, 2023 Share Posted December 12, 2023 What is in field_9_value? My first troubleshooting step would be to post that to the Timeline so you know exactly what you are passing as a parameter. 1 Link to comment Share on other sites More sharing options...
EWA Posted December 12, 2023 Author Share Posted December 12, 2023 While we on this..I want the connection to automatically receives any updats/emails - same like the owner , I thought I could CC the connection into the relevant nodes rather than use the email connection but not sure it this can be achived. Link to comment Share on other sites More sharing options...
EWA Posted December 12, 2023 Author Share Posted December 12, 2023 38 minutes ago, Steve Giller said: What is in field_9_value? My first troubleshooting step would be to post that to the Timeline so you know exactly what you are passing as a parameter. I could see in the questions section that the my colleague name was populated but on timeline there is only request logged entry. Link to comment Share on other sites More sharing options...
Steve Giller Posted December 12, 2023 Share Posted December 12, 2023 That suggests there may be an issue in the Capture, I'd review that first. Link to comment Share on other sites More sharing options...
EWA Posted December 12, 2023 Author Share Posted December 12, 2023 39 minutes ago, Steve Giller said: That suggests there may be an issue in the Capture, I'd review that first. I thought that as well.. but what the issue could be. I changed the Data Query used to just users without the UserID but still the same issue Link to comment Share on other sites More sharing options...
EWA Posted December 15, 2023 Author Share Posted December 15, 2023 @Steve Giller with Sam help I managed to get it to work . I'm using the co-worker option and then use from variable and raw value. Not sure why there is co-worker - where you can choose variable and co-worker from variable. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now