I have a quick question of how to call add Features function from my code. Anybody could share your code snippet would be greatly appreciated. I got error message saying parameters are not valid if I try this:
Is there a reason why you aren't using the feature layer applyEdits method to add new features? There's a sample in the help here that shows how this works: