How to setup saleforce instance ID for up-serting data

I have been trying to set up attendance job for the youth profiles and currently I am stuck at setting up an “instance id” on the script (I inherited the code).

My confusion is that:

· An instance ID is setup as an external ID on programme activities object in Sales Force, and yet on doc string I should set it up in sales force. I need help, I have attached both the code and error. Thank you



Hi there. I’ve put together a gist that you can try using—it pulls that data array from ODK (which only ever contains one item) into its own item so you can use each and beta.each less. Does this work for you?